Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.FACTS.STATCOM_Test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.FACTS.STATCOM_Test,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_FACTS_STATCOM_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.FACTS.STATCOM_Test,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_FACTS_STATCOM_Test",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08538/0.08538, allocations: 12.59 MB / 28.22 MB, free: 0.7734 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 111.4 kB / 31.84 MB, free: 3.906 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.339/1.339, allocations: 205.1 MB / 240.4 MB, free: 12.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 180.5 kB / 290.7 MB, free: 13.4 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4281/0.4281, allocations: 78.51 MB / 419.3 MB, free: 11.24 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002535/0.002535, allocations: 131 kB / 0.5553 GB, free: 28.83 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1052, allocations: 68.13 MB / 0.6219 GB, free: 15.97 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.FACTS.STATCOM_Test): time 0.005567/0.1108, allocations: 5.284 MB / 0.627 GB, free: 10.66 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002774/0.1136, allocations: 1.381 MB / 0.6284 GB, free: 9.27 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003143/0.114, allocations: 8 kB / 0.6284 GB, free: 9.262 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000371/0.1144, allocations: 162.5 kB / 0.6285 GB, free: 9.102 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007204/0.1151, allocations: 373.4 kB / 0.6289 GB, free: 8.734 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001284/0.1164, allocations: 0.63 MB / 0.6295 GB, free: 8.109 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008944/0.1173, allocations: 1.062 MB / 0.6305 GB, free: 7.043 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003246/0.1176, allocations: 235.9 kB / 0.6308 GB, free: 6.797 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003856/0.118, allocations: 442.1 kB / 0.6312 GB, free: 6.363 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005601/0.1186, allocations: 0.5288 MB / 0.6317 GB, free: 5.832 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.1187, allocations: 76 kB / 0.6318 GB, free: 5.758 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002388/0.119, allocations: 140 kB / 0.6319 GB, free: 5.621 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.1191, allocations: 207.1 kB / 0.6321 GB, free: 5.418 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003455/0.1195, allocations: 461.3 kB / 0.6326 GB, free: 4.965 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.1205, allocations: 1.093 MB / 0.6336 GB, free: 3.867 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1205, allocations: 0 / 0.6336 GB, free: 3.867 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1205, allocations: 0 / 0.6336 GB, free: 3.867 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.623e-05/0.1205, allocations: 3.984 kB / 0.6336 GB, free: 3.863 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.004814/0.1254, allocations: 1.783 MB / 0.6354 GB, free: 2.023 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.1254, allocations: 19.92 kB / 0.6354 GB, free: 2.004 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001118/0.1255, allocations: 102.7 kB / 0.6355 GB, free: 1.895 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002668/0.1282, allocations: 447 kB / 0.6359 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009013/0.1291, allocations: 0.6396 MB / 0.6365 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002224/0.1294, allocations: 197.8 kB / 0.6367 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.98e-05/0.1295, allocations: 52 kB / 0.6368 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.131, allocations: 0.7681 MB / 0.6375 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.131, allocations: 0 / 0.6375 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.528e-05/0.1311, allocations: 27.94 kB / 0.6375 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.1311, allocations: 15.94 kB / 0.6376 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.1326, allocations: 0.7039 MB / 0.6383 GB, free: 14.96 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004194/0.1368, allocations: 2.664 MB / 0.6409 GB, free: 12.15 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.1384, allocations: 1.043 MB / 0.6419 GB, free: 11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009798/0.1394, allocations: 487 kB / 0.6423 GB, free: 10.52 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.222e-05/0.1395, allocations: 20.53 kB / 0.6424 GB, free: 10.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00117/0.1406, allocations: 0.5958 MB / 0.6429 GB, free: 9.883 MB / 462.1 MB Notification: Performance of pre-optimization done (n=66): time 1.894e-06/0.1407, allocations: 0 / 0.6429 GB, free: 9.883 MB / 462.1 MB Notification: Performance of matching and sorting (n=66): time 0.01918/0.1599, allocations: 4.597 MB / 0.6474 GB, free: 5.254 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.1599, allocations: 89.61 kB / 0.6475 GB, free: 5.148 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008982/0.1608, allocations: 0.7119 MB / 0.6482 GB, free: 4.43 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.556e-05/0.1609, allocations: 37.7 kB / 0.6482 GB, free: 4.387 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002454/0.1612, allocations: 381.2 kB / 0.6486 GB, free: 4.008 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002287/0.1614, allocations: 249.8 kB / 0.6488 GB, free: 3.762 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002112/0.1617, allocations: 106.3 kB / 0.6489 GB, free: 3.648 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.989e-05/0.1618, allocations: 326 kB / 0.6493 GB, free: 3.324 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009742/0.1627, allocations: 409.1 kB / 0.6496 GB, free: 2.926 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.1638, allocations: 0.4981 MB / 0.6501 GB, free: 2.387 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002001/0.1658, allocations: 0.9237 MB / 0.651 GB, free: 1.422 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.1659, allocations: 0 / 0.651 GB, free: 1.422 MB / 462.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.009412/0.1753, allocations: 2.594 MB / 0.6536 GB, free: 14.82 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.227e-05/0.1753, allocations: 11.94 kB / 0.6536 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.1754, allocations: 0 / 0.6536 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004305/0.1797, allocations: 1.128 MB / 0.6547 GB, free: 13.68 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004903/0.1802, allocations: 91.89 kB / 0.6548 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01625/0.1965, allocations: 6.778 MB / 0.6614 GB, free: 6.652 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.1975, allocations: 111.6 kB / 0.6615 GB, free: 6.543 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.797e-05/0.1976, allocations: 24 kB / 0.6615 GB, free: 6.52 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(18,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003321/0.1979, allocations: 201.7 kB / 0.6617 GB, free: 6.312 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.1981, allocations: 95.39 kB / 0.6618 GB, free: 6.219 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009099/0.2072, allocations: 2.623 MB / 0.6644 GB, free: 3.586 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.519e-05/0.2072, allocations: 15.92 kB / 0.6644 GB, free: 3.57 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2073, allocations: 0 / 0.6644 GB, free: 3.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.2073, allocations: 4 kB / 0.6644 GB, free: 3.566 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01029/0.2176, allocations: 3.836 MB / 0.6681 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.2176, allocations: 0 / 0.6681 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004245/0.218, allocations: 79.89 kB / 0.6682 GB, free: 15.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003897/0.222, allocations: 1.074 MB / 0.6693 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.9e-05/0.222, allocations: 15.98 kB / 0.6693 GB, free: 14.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01364/0.2357, allocations: 6.014 MB / 0.6751 GB, free: 8.273 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.2357, allocations: 7.984 kB / 0.6751 GB, free: 8.266 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01015/0.2459, allocations: 3.228 MB / 0.6783 GB, free: 5.016 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003037/0.2462, allocations: 180.4 kB / 0.6785 GB, free: 4.82 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/0.2464, allocations: 8 kB / 0.6785 GB, free: 4.812 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008654/0.2473, allocations: 79.91 kB / 0.6786 GB, free: 4.734 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004418/0.2477, allocations: 148.3 kB / 0.6787 GB, free: 4.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.269e-05/0.2478, allocations: 20 kB / 0.6787 GB, free: 4.57 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0006635/0.2485, allocations: 0.499 MB / 0.6792 GB, free: 4.078 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2485, allocations: 0 / 0.6792 GB, free: 4.078 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000952/0.2495, allocations: 295.7 kB / 0.6795 GB, free: 3.789 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (Syn1.omega,sTATCOM.simpleLagLim.state,Syn1.delta,Syn1.eq) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(17,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01051/0.26, allocations: 3.796 MB / 0.6832 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004405/0.2644, allocations: 1.541 MB / 0.6847 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.2644, allocations: 0 / 0.6847 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00313/0.2676, allocations: 1.06 MB / 0.6857 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007192/0.2683, allocations: 83.73 kB / 0.6858 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02648/0.2948, allocations: 10.51 MB / 0.6961 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006707/0.2955, allocations: 0.9748 MB / 0.697 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002934/0.2958, allocations: 69.12 kB / 0.6971 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005065/0.2964, allocations: 315.3 kB / 0.6974 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of SimCode: time 1.433e-06/0.2964, allocations: 0 / 0.6974 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.291/0.5874, allocations: 24.52 MB / 0.7213 GB, free: 88.87 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.75/14.34, allocations: 15.62 kB / 0.7214 GB, free: 88.87 MB / 0.5137 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Tests.FACTS.STATCOM_Test.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Tests.FACTS.STATCOM_Test.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Tests.FACTS.STATCOM_Test.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Tests.FACTS.STATCOM_Test.sim & python3 -m fmpy simulate --output-file OpenIPSL_2.0.0_OpenIPSL.Tests.FACTS.STATCOM_Test_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 OpenIPSL_2_0_0_OpenIPSL_Tests_FACTS_STATCOM_Test.fmu > OpenIPSL_2.0.0_OpenIPSL.Tests.FACTS.STATCOM_Test.pipe 2>&1)