Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.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.001677/0.001677, 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.001923/0.001923, 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.545/1.545, allocations: 230.6 MB / 254.8 MB, free: 15.22 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.1866/0.1866, allocations: 38.51 MB / 349.4 MB, free: 2.582 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.PMeterTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest",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.002037/0.002037, allocations: 64.77 kB / 487.8 MB, free: 32.34 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0986/0.1006, allocations: 62.42 MB / 0.5374 GB, free: 9.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.005377/0.106, allocations: 3.466 MB / 0.5407 GB, free: 5.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002584/0.1086, allocations: 1.582 MB / 0.5423 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.1087, allocations: 11.94 kB / 0.5423 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008792/0.1096, allocations: 266.4 kB / 0.5426 GB, free: 4.066 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006559/0.1103, allocations: 279 kB / 0.5428 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003362/0.1106, allocations: 131.6 kB / 0.5429 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000466/0.1111, allocations: 335 kB / 0.5433 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003051/0.1114, allocations: 113.7 kB / 0.5434 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002965/0.1117, allocations: 163.3 kB / 0.5435 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003452/0.112, allocations: 159.4 kB / 0.5437 GB, free: 2.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.702e-05/0.112, allocations: 12 kB / 0.5437 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005771/0.1126, allocations: 351.1 kB / 0.544 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.1128, allocations: 95.77 kB / 0.5441 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.1129, allocations: 111.5 kB / 0.5442 GB, free: 2.352 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005662/0.1135, allocations: 358.7 kB / 0.5446 GB, free: 2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1135, allocations: 0 / 0.5446 GB, free: 2 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1135, allocations: 0 / 0.5446 GB, free: 2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.1135, allocations: 4 kB / 0.5446 GB, free: 1.996 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007561/0.1142, allocations: 0.5099 MB / 0.5451 GB, free: 1.438 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1143, allocations: 12.03 kB / 0.5451 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.277e-05/0.1143, allocations: 4.188 kB / 0.5451 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.863e-05/0.1143, allocations: 54.73 kB / 0.5451 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009292/0.1153, allocations: 100.7 kB / 0.5452 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003925/0.1157, allocations: 283.4 kB / 0.5455 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.1157, allocations: 16.12 kB / 0.5455 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.446e-05/0.1157, allocations: 19.94 kB / 0.5455 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000583/0.1163, allocations: 330.2 kB / 0.5458 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1163, allocations: 0 / 0.5458 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.1163, allocations: 8 kB / 0.5459 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.906e-05/0.1164, allocations: 16 kB / 0.5459 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004943/0.1169, allocations: 303.7 kB / 0.5462 GB, free: 252 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/0.1189, allocations: 1.297 MB / 0.5474 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003567/0.1192, allocations: 194.3 kB / 0.5476 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.682e-05/0.1193, allocations: 41.89 kB / 0.5477 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.1193, allocations: 3.984 kB / 0.5477 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.1194, allocations: 38.56 kB / 0.5477 GB, free: 14.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.1194, allocations: 0 / 0.5477 GB, free: 14.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.000338/0.1197, allocations: 141.7 kB / 0.5478 GB, free: 14.38 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.1198, allocations: 81.05 kB / 0.5479 GB, free: 14.28 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000244/0.12, allocations: 215.7 kB / 0.5481 GB, free: 14.06 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.12, allocations: 29.7 kB / 0.5481 GB, free: 14.03 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.1202, allocations: 171.9 kB / 0.5483 GB, free: 13.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.1203, allocations: 35.69 kB / 0.5483 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.529e-05/0.1203, allocations: 49.56 kB / 0.5484 GB, free: 13.76 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1205, allocations: 326.9 kB / 0.5487 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.452e-05/0.1206, allocations: 43.97 kB / 0.5487 GB, free: 13.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.1207, allocations: 128.9 kB / 0.5489 GB, free: 13.22 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002461/0.121, allocations: 200.4 kB / 0.5491 GB, free: 12.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.121, allocations: 4 kB / 0.5491 GB, free: 12.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003288/0.1213, allocations: 209.2 kB / 0.5493 GB, free: 12.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.1213, allocations: 8 kB / 0.5493 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1213, allocations: 4 kB / 0.5493 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.1214, allocations: 4 kB / 0.5493 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.1215, allocations: 44.36 kB / 0.5493 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.1216, allocations: 15.92 kB / 0.5493 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.1217, allocations: 19.89 kB / 0.5493 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.1217, allocations: 8 kB / 0.5494 GB, free: 12.66 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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001643/0.1219, allocations: 165.6 kB / 0.5495 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.566e-05/0.1219, allocations: 19.86 kB / 0.5495 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002403/0.1221, allocations: 119.2 kB / 0.5496 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1221, allocations: 0 / 0.5496 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1222, allocations: 3.938 kB / 0.5497 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1222, allocations: 4 kB / 0.5497 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008662/0.123, allocations: 0.5684 MB / 0.5502 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.123, allocations: 4 kB / 0.5502 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.186e-05/0.1231, allocations: 23.92 kB / 0.5502 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.1231, allocations: 7.938 kB / 0.5502 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.1231, allocations: 4 kB / 0.5502 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.1231, allocations: 0 / 0.5502 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.1231, allocations: 7.938 kB / 0.5503 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002936/0.1234, allocations: 291.9 kB / 0.5505 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.631e-05/0.1235, allocations: 100.9 kB / 0.5506 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.32e-05/0.1235, allocations: 11.98 kB / 0.5506 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.1237, allocations: 4.062 kB / 0.5506 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.601e-05/0.1237, allocations: 8 kB / 0.5507 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.1237, allocations: 8 kB / 0.5507 GB, free: 11.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.1238, allocations: 157.5 kB / 0.5508 GB, free: 11.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1238, allocations: 4 kB / 0.5508 GB, free: 11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00035/0.1242, allocations: 55.83 kB / 0.5509 GB, free: 10.95 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005819/0.1248, allocations: 0.8066 MB / 0.5517 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002293/0.125, allocations: 119.7 kB / 0.5518 GB, free: 9.969 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.125, allocations: 0 / 0.5518 GB, free: 9.969 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.902e-05/0.1251, allocations: 45.36 kB / 0.5518 GB, free: 9.926 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.1255, allocations: 39.05 kB / 0.5519 GB, free: 9.891 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002917/0.1284, allocations: 2.316 MB / 0.5541 GB, free: 7.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.1288, allocations: 0.7554 MB / 0.5548 GB, free: 6.559 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.1289, allocations: 41.55 kB / 0.5549 GB, free: 6.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.612e-05/0.129, allocations: 55.7 kB / 0.5549 GB, free: 6.465 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.129, allocations: 0 / 0.5549 GB, free: 6.465 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02049/0.1495, allocations: 3.416 MB / 0.5583 GB, free: 3.133 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.394/8.544, allocations: 8 kB / 0.5583 GB, free: 3.125 MB / 414.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.516054080973845] Failed to read output from testmodel.py, exit status != 0: 8.673244221019559 8.696956317 8.579042524 Calling exit ...