Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 120.7 kB / 17.79 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 186.9 kB / 20.73 MB, free: 2.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.181/0.181, allocations: 38.5 MB / 342.5 MB, free: 8.016 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002716/0.002716, allocations: 61.73 kB / 478.6 MB, free: 33.63 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1425, allocations: 61.24 MB / 0.5272 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.01016/0.1527, allocations: 4.962 MB / 0.532 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004978/0.1577, allocations: 2.508 MB / 0.5345 GB, free: 9.875 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003099/0.158, allocations: 11.94 kB / 0.5345 GB, free: 9.863 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001337/0.1593, allocations: 442.2 kB / 0.5349 GB, free: 9.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001252/0.1606, allocations: 0.5135 MB / 0.5354 GB, free: 8.914 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007197/0.1613, allocations: 283.2 kB / 0.5357 GB, free: 8.637 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001196/0.1625, allocations: 0.7474 MB / 0.5364 GB, free: 7.887 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005219/0.163, allocations: 269.7 kB / 0.5367 GB, free: 7.621 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006062/0.1636, allocations: 326.7 kB / 0.537 GB, free: 7.301 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005986/0.1642, allocations: 346.8 kB / 0.5373 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.297e-05/0.1643, allocations: 36 kB / 0.5374 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.1655, allocations: 0.6585 MB / 0.538 GB, free: 6.266 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003507/0.1659, allocations: 203.4 kB / 0.5382 GB, free: 6.066 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003572/0.1662, allocations: 242.9 kB / 0.5384 GB, free: 5.828 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001263/0.1675, allocations: 0.7706 MB / 0.5392 GB, free: 5.055 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1675, allocations: 3.938 kB / 0.5392 GB, free: 5.051 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1675, allocations: 0 / 0.5392 GB, free: 5.051 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.925e-05/0.1675, allocations: 0 / 0.5392 GB, free: 5.051 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.00142/0.1689, allocations: 0.7869 MB / 0.54 GB, free: 4.215 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.169, allocations: 15.89 kB / 0.54 GB, free: 4.199 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001038/0.1691, allocations: 78.72 kB / 0.54 GB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001756/0.1708, allocations: 208.4 kB / 0.5402 GB, free: 3.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006668/0.1715, allocations: 378.5 kB / 0.5406 GB, free: 3.496 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.957e-05/0.1715, allocations: 29.38 kB / 0.5406 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.082e-05/0.1716, allocations: 40.38 kB / 0.5407 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.1726, allocations: 0.6303 MB / 0.5413 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.1727, allocations: 3.984 kB / 0.5413 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.6e-05/0.1727, allocations: 16 kB / 0.5413 GB, free: 2.758 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.9e-05/0.1728, allocations: 44.97 kB / 0.5414 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009979/0.1738, allocations: 0.6089 MB / 0.5419 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003639/0.1774, allocations: 2.242 MB / 0.5441 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007029/0.1781, allocations: 458.5 kB / 0.5446 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003395/0.1785, allocations: 221.2 kB / 0.5448 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.1785, allocations: 4 kB / 0.5448 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.1785, allocations: 42.56 kB / 0.5448 GB, free: 14.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 1.984e-06/0.1785, allocations: 0 / 0.5448 GB, free: 14.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=43): time 0.003623/0.1822, allocations: 1.702 MB / 0.5465 GB, free: 13.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.1822, allocations: 85.05 kB / 0.5466 GB, free: 13.1 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003269/0.1825, allocations: 287 kB / 0.5468 GB, free: 12.81 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.1826, allocations: 29.7 kB / 0.5469 GB, free: 12.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.1828, allocations: 232.6 kB / 0.5471 GB, free: 12.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.1829, allocations: 158.6 kB / 0.5472 GB, free: 12.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.183, allocations: 86.25 kB / 0.5473 GB, free: 12.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.1832, allocations: 350.7 kB / 0.5477 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003006/0.1835, allocations: 177 kB / 0.5478 GB, free: 11.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003875/0.1839, allocations: 294.4 kB / 0.5481 GB, free: 11.44 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007538/0.1847, allocations: 0.5041 MB / 0.5486 GB, free: 10.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1847, allocations: 3.938 kB / 0.5486 GB, free: 10.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001287/0.1859, allocations: 0.6694 MB / 0.5493 GB, free: 10.2 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.186, allocations: 8 kB / 0.5493 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.186, allocations: 4 kB / 0.5493 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005934/0.1866, allocations: 184.9 kB / 0.5495 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004281/0.187, allocations: 95.83 kB / 0.5495 GB, free: 9.914 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003869/0.1909, allocations: 2.787 MB / 0.5523 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.1911, allocations: 23.98 kB / 0.5523 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.675e-05/0.1912, allocations: 20.06 kB / 0.5523 GB, free: 6.945 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.000238/0.1914, allocations: 192.6 kB / 0.5525 GB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.393e-05/0.1915, allocations: 47.69 kB / 0.5525 GB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001253/0.1927, allocations: 0.6181 MB / 0.5531 GB, free: 6.074 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.1927, allocations: 8 kB / 0.5531 GB, free: 6.066 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1928, allocations: 3.938 kB / 0.5532 GB, free: 6.062 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.1928, allocations: 3.984 kB / 0.5532 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002386/0.1951, allocations: 1.344 MB / 0.5545 GB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1951, allocations: 4.172 kB / 0.5545 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003707/0.1955, allocations: 83.83 kB / 0.5546 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000468/0.196, allocations: 144.7 kB / 0.5547 GB, free: 4.406 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.196, allocations: 8 kB / 0.5547 GB, free: 4.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003488/0.1995, allocations: 2.568 MB / 0.5572 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1995, allocations: 3.938 kB / 0.5572 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.2011, allocations: 0.9506 MB / 0.5581 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.2012, allocations: 113.1 kB / 0.5582 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.425e-05/0.2012, allocations: 20.12 kB / 0.5583 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.2014, allocations: 15.94 kB / 0.5583 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.604e-05/0.2015, allocations: 35.94 kB / 0.5583 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.2016, allocations: 15.98 kB / 0.5583 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002165/0.2018, allocations: 194 kB / 0.5585 GB, free: 312 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2018, allocations: 0 / 0.5585 GB, free: 312 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005939/0.2024, allocations: 140 kB / 0.5586 GB, free: 172 kB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001835/0.2042, allocations: 1.502 MB / 0.5601 GB, free: 14.63 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.2054, allocations: 0.6463 MB / 0.5607 GB, free: 13.97 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2054, allocations: 4.062 kB / 0.5607 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007057/0.2061, allocations: 406.3 kB / 0.5611 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004587/0.2066, allocations: 67.94 kB / 0.5612 GB, free: 13.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006379/0.213, allocations: 4.465 MB / 0.5656 GB, free: 8.844 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005847/0.2136, allocations: 0.8707 MB / 0.5664 GB, free: 7.945 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000212/0.2138, allocations: 75.22 kB / 0.5665 GB, free: 7.871 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.214, allocations: 143.4 kB / 0.5666 GB, free: 7.73 MB / 430.1 MB Notification: Performance of SimCode: time 4.71e-07/0.214, allocations: 0 / 0.5666 GB, free: 7.73 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03975/0.2537, allocations: 10.05 MB / 0.5764 GB, free: 13.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.38, allocations: 1.094 kB / 0.5764 GB, free: 13.8 MB / 446.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.223920857068151] Failed to read output from testmodel.py, exit status != 0: 12.484401680994779 12.498804974 12.328206195 Calling exit ...