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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 112.2 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002364/0.002364, allocations: 218.9 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.585/1.585, allocations: 230.6 MB / 254.8 MB, free: 15.21 MB / 206.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.1856/0.1856, allocations: 38.51 MB / 349.4 MB, free: 2.574 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 60.06 kB / 487.8 MB, free: 32.38 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1255, allocations: 62.42 MB / 0.5374 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007589/0.1331, allocations: 4.985 MB / 0.5422 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004173/0.1373, allocations: 2.539 MB / 0.5447 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003558/0.1376, allocations: 23.88 kB / 0.5447 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.139, allocations: 429.7 kB / 0.5451 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001222/0.1402, allocations: 0.5213 MB / 0.5456 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006929/0.1409, allocations: 283.2 kB / 0.5459 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009917/0.1419, allocations: 0.7321 MB / 0.5466 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005331/0.1424, allocations: 281.6 kB / 0.5469 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000563/0.143, allocations: 330.7 kB / 0.5472 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005148/0.1435, allocations: 354.8 kB / 0.5476 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.994e-05/0.1436, allocations: 36 kB / 0.5476 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001086/0.1446, allocations: 0.6507 MB / 0.5482 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002277/0.1449, allocations: 207.4 kB / 0.5484 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002637/0.1451, allocations: 242.8 kB / 0.5487 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.1463, allocations: 0.7668 MB / 0.5494 GB, free: 13.13 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1463, allocations: 0 / 0.5494 GB, free: 13.13 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.093e-06/0.1463, allocations: 0 / 0.5494 GB, free: 13.13 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.1463, allocations: 0 / 0.5494 GB, free: 13.13 MB / 414.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.001297/0.1476, allocations: 0.783 MB / 0.5502 GB, free: 12.3 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.1476, allocations: 12.03 kB / 0.5502 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.331e-05/0.1477, allocations: 9.188 kB / 0.5502 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.1478, allocations: 90.64 kB / 0.5503 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001683/0.1494, allocations: 204.4 kB / 0.5505 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000641/0.1501, allocations: 374.5 kB / 0.5508 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.1501, allocations: 41.23 kB / 0.5509 GB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.315e-05/0.1502, allocations: 40.38 kB / 0.5509 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.1513, allocations: 0.6302 MB / 0.5515 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/0.1513, allocations: 3.953 kB / 0.5515 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.17e-05/0.1513, allocations: 23.92 kB / 0.5515 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-05/0.1514, allocations: 32.98 kB / 0.5516 GB, free: 10.78 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009925/0.1524, allocations: 0.605 MB / 0.5522 GB, free: 10.17 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003602/0.156, allocations: 2.257 MB / 0.5544 GB, free: 7.797 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006858/0.1567, allocations: 446.6 kB / 0.5548 GB, free: 7.324 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/0.157, allocations: 205.7 kB / 0.555 GB, free: 7.117 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.676e-05/0.157, allocations: 19.98 kB / 0.555 GB, free: 7.098 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.1571, allocations: 34.56 kB / 0.555 GB, free: 7.055 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.325e-06/0.1571, allocations: 0 / 0.555 GB, free: 7.055 MB / 414.1 MB Notification: Performance of matching and sorting (n=43): time 0.003815/0.1609, allocations: 1.706 MB / 0.5567 GB, free: 5.273 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/0.161, allocations: 89.09 kB / 0.5568 GB, free: 5.168 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003579/0.1613, allocations: 279 kB / 0.5571 GB, free: 4.887 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.7e-05/0.1614, allocations: 37.7 kB / 0.5571 GB, free: 4.844 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.1616, allocations: 228.6 kB / 0.5573 GB, free: 4.617 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.1617, allocations: 162.6 kB / 0.5575 GB, free: 4.457 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.1619, allocations: 90.2 kB / 0.5576 GB, free: 4.363 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.1621, allocations: 346.7 kB / 0.5579 GB, free: 4.016 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003082/0.1624, allocations: 185 kB / 0.5581 GB, free: 3.832 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003904/0.1628, allocations: 286.4 kB / 0.5583 GB, free: 3.508 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007457/0.1635, allocations: 0.5082 MB / 0.5588 GB, free: 2.953 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1635, allocations: 0 / 0.5588 GB, free: 2.953 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001269/0.1648, allocations: 0.6732 MB / 0.5595 GB, free: 2.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.1648, allocations: 8 kB / 0.5595 GB, free: 2.262 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.1648, allocations: 8.375 kB / 0.5595 GB, free: 2.254 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006604/0.1655, allocations: 176.7 kB / 0.5597 GB, free: 2.078 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003774/0.1659, allocations: 95.88 kB / 0.5598 GB, free: 1.984 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004051/0.1699, allocations: 2.784 MB / 0.5625 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.1702, allocations: 15.98 kB / 0.5625 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.216e-05/0.1703, allocations: 20 kB / 0.5625 GB, free: 15.03 MB / 430.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.0002951/0.1706, allocations: 202.4 kB / 0.5627 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.388e-05/0.1706, allocations: 43.64 kB / 0.5628 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001257/0.1719, allocations: 0.6298 MB / 0.5634 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.1719, allocations: 7.984 kB / 0.5634 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.1719, allocations: 11.88 kB / 0.5634 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.1719, allocations: 4 kB / 0.5634 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002366/0.1743, allocations: 1.344 MB / 0.5647 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.1743, allocations: 4 kB / 0.5647 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003706/0.1747, allocations: 83.89 kB / 0.5648 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004754/0.1751, allocations: 136.7 kB / 0.5649 GB, free: 12.47 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.1752, allocations: 12 kB / 0.5649 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003362/0.1785, allocations: 2.557 MB / 0.5674 GB, free: 9.758 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.1785, allocations: 11.98 kB / 0.5674 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.1801, allocations: 0.9577 MB / 0.5684 GB, free: 8.758 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.1802, allocations: 108.9 kB / 0.5685 GB, free: 8.633 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.955e-05/0.1803, allocations: 15.94 kB / 0.5685 GB, free: 8.617 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.1805, allocations: 11.98 kB / 0.5685 GB, free: 8.605 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.965e-05/0.1806, allocations: 31.95 kB / 0.5685 GB, free: 8.574 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.663e-05/0.1806, allocations: 16 kB / 0.5686 GB, free: 8.559 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002428/0.1808, allocations: 197.9 kB / 0.5687 GB, free: 8.363 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1808, allocations: 0 / 0.5687 GB, free: 8.363 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006938/0.1815, allocations: 140 kB / 0.5689 GB, free: 8.227 MB / 430.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.001931/0.1835, allocations: 1.512 MB / 0.5704 GB, free: 6.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.185, allocations: 0.646 MB / 0.571 GB, free: 6.02 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.185, allocations: 0 / 0.571 GB, free: 6.02 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007462/0.1857, allocations: 398.3 kB / 0.5714 GB, free: 5.617 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005479/0.1863, allocations: 71.86 kB / 0.5714 GB, free: 5.555 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006998/0.1933, allocations: 4.468 MB / 0.5758 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006922/0.1939, allocations: 0.8707 MB / 0.5766 GB, free: 0 / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002556/0.1942, allocations: 71.23 kB / 0.5767 GB, free: 15.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.1944, allocations: 143.4 kB / 0.5768 GB, free: 15.79 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1944, allocations: 0 / 0.5768 GB, free: 15.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03669/0.2311, allocations: 10.06 MB / 0.5867 GB, free: 5.859 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/12.88, allocations: 7.688 kB / 0.5867 GB, free: 5.852 MB / 446.1 MB " [Timeout remaining time 647] (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: 16.048684400040656] Failed to read output from testmodel.py, exit status != 0: 13.035434680001345 13.053512672 12.903847926 Calling exit ...