Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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.001289/0.001289, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.001411/0.001411, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.528/1.528, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.1885/0.1885, allocations: 38.5 MB / 348.7 MB, free: 2.598 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.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",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.002008/0.002008, allocations: 67.91 kB / 487.1 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1122, allocations: 62.42 MB / 0.5367 GB, free: 7.562 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005606/0.1178, allocations: 3.358 MB / 0.5399 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.1198, allocations: 1.278 MB / 0.5412 GB, free: 2.902 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.1199, allocations: 11.88 kB / 0.5412 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005964/0.1205, allocations: 163.3 kB / 0.5414 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004414/0.121, allocations: 171.2 kB / 0.5415 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002903/0.1212, allocations: 139.6 kB / 0.5416 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004125/0.1217, allocations: 283 kB / 0.5419 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003057/0.122, allocations: 102.2 kB / 0.542 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002648/0.1222, allocations: 131.5 kB / 0.5421 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002813/0.1225, allocations: 119.5 kB / 0.5423 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.1225, allocations: 12 kB / 0.5423 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003799/0.1229, allocations: 239.4 kB / 0.5425 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.974e-05/0.123, allocations: 55.83 kB / 0.5425 GB, free: 1.504 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.1231, allocations: 99.47 kB / 0.5426 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004409/0.1236, allocations: 290.9 kB / 0.5429 GB, free: 1.121 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1236, allocations: 0 / 0.5429 GB, free: 1.121 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1236, allocations: 3.938 kB / 0.5429 GB, free: 1.117 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1236, allocations: 0 / 0.5429 GB, free: 1.117 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008598/0.1244, allocations: 0.4986 MB / 0.5434 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.1245, allocations: 8.031 kB / 0.5434 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.552e-05/0.1245, allocations: 54.73 kB / 0.5435 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006954/0.1252, allocations: 76.72 kB / 0.5435 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.1256, allocations: 275.8 kB / 0.5438 GB, free: 120 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.1256, allocations: 16.7 kB / 0.5438 GB, free: 104 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.224e-05/0.1256, allocations: 16.38 kB / 0.5438 GB, free: 88 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005763/0.1262, allocations: 271.8 kB / 0.5441 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.1262, allocations: 3.938 kB / 0.5441 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.1263, allocations: 11.98 kB / 0.5441 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.765e-05/0.1263, allocations: 8.328 kB / 0.5441 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004653/0.1268, allocations: 228.4 kB / 0.5443 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.1285, allocations: 1.206 MB / 0.5455 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.1287, allocations: 129.2 kB / 0.5456 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.801e-05/0.1288, allocations: 45.77 kB / 0.5457 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.1288, allocations: 0 / 0.5457 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.128e-05/0.1288, allocations: 38.56 kB / 0.5457 GB, free: 14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.1288, allocations: 0 / 0.5457 GB, free: 14 MB / 414.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003715/0.1292, allocations: 169.4 kB / 0.5459 GB, free: 13.83 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.718e-05/0.1293, allocations: 81.11 kB / 0.546 GB, free: 13.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.1295, allocations: 206.7 kB / 0.5462 GB, free: 13.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.1295, allocations: 29.7 kB / 0.5462 GB, free: 13.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.1296, allocations: 160.2 kB / 0.5463 GB, free: 13.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.783e-05/0.1297, allocations: 51.56 kB / 0.5464 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.994e-05/0.1297, allocations: 41.7 kB / 0.5464 GB, free: 13.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000283/0.13, allocations: 330.8 kB / 0.5467 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.409e-05/0.1301, allocations: 39.98 kB / 0.5468 GB, free: 12.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002378/0.1304, allocations: 122.3 kB / 0.5469 GB, free: 12.7 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003119/0.1307, allocations: 190.5 kB / 0.5471 GB, free: 12.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1307, allocations: 0 / 0.5471 GB, free: 12.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003306/0.131, allocations: 205.2 kB / 0.5473 GB, free: 12.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.131, allocations: 8 kB / 0.5473 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.131, allocations: 4 kB / 0.5473 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.131, allocations: 7.938 kB / 0.5473 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.1313, allocations: 51.91 kB / 0.5473 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.1328, allocations: 1.416 MB / 0.5487 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.133, allocations: 19.89 kB / 0.5487 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.133, allocations: 8.156 kB / 0.5488 GB, free: 10.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001597/0.1331, allocations: 157.6 kB / 0.5489 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.729e-05/0.1332, allocations: 19.86 kB / 0.5489 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002582/0.1335, allocations: 143 kB / 0.5491 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.1335, allocations: 4 kB / 0.5491 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.1335, allocations: 0 / 0.5491 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1335, allocations: 0 / 0.5491 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007288/0.1342, allocations: 496 kB / 0.5495 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1342, allocations: 0 / 0.5495 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.1344, allocations: 35.92 kB / 0.5496 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.1344, allocations: 0 / 0.5496 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.1344, allocations: 4 kB / 0.5496 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/0.1358, allocations: 1.424 MB / 0.551 GB, free: 8.129 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.1358, allocations: 7.969 kB / 0.551 GB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004721/0.1362, allocations: 309.6 kB / 0.5513 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.282e-05/0.1363, allocations: 96.95 kB / 0.5514 GB, free: 7.684 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.589e-05/0.1363, allocations: 8 kB / 0.5514 GB, free: 7.676 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.1364, allocations: 0 / 0.5514 GB, free: 7.676 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.201e-05/0.1365, allocations: 15.92 kB / 0.5514 GB, free: 7.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.1365, allocations: 4 kB / 0.5514 GB, free: 7.656 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000246/0.1367, allocations: 156.7 kB / 0.5515 GB, free: 7.504 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1367, allocations: 0 / 0.5515 GB, free: 7.504 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003533/0.1371, allocations: 43.95 kB / 0.5516 GB, free: 7.461 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000875/0.138, allocations: 0.8359 MB / 0.5524 GB, free: 6.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003349/0.1383, allocations: 127.8 kB / 0.5525 GB, free: 6.465 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1383, allocations: 0 / 0.5525 GB, free: 6.465 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.1385, allocations: 52.59 kB / 0.5526 GB, free: 6.414 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003963/0.1388, allocations: 43.31 kB / 0.5526 GB, free: 6.375 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00297/0.1418, allocations: 2.368 MB / 0.5549 GB, free: 3.844 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004967/0.1423, allocations: 0.7398 MB / 0.5556 GB, free: 3.078 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.1424, allocations: 29.52 kB / 0.5557 GB, free: 3.047 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.754e-05/0.1425, allocations: 59.42 kB / 0.5557 GB, free: 2.988 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1425, allocations: 0 / 0.5557 GB, free: 2.988 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/0.1716, allocations: 3.83 MB / 0.5595 GB, free: 15.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.07, allocations: 2.109 kB / 0.5595 GB, free: 15.27 MB / 430.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.000433890003478] Failed to read output from testmodel.py, exit status != 0: 12.162438761006342 12.188010723 12.059740252 Calling exit ...