Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.002045/0.002045, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002752/0.002752, allocations: 210.6 kB / 23.73 MB, free: 4.387 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1873/0.1873, allocations: 38.56 MB / 352.5 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",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.002148/0.002148, allocations: 75.86 kB / 492.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3325, allocations: 62.47 MB / 0.5419 GB, free: 260 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.006011/0.3386, allocations: 3.419 MB / 0.5453 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002482/0.341, allocations: 1.444 MB / 0.5467 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.3412, allocations: 8.688 kB / 0.5467 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008752/0.342, allocations: 251.7 kB / 0.5469 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006892/0.3427, allocations: 283.9 kB / 0.5472 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003565/0.3431, allocations: 132.1 kB / 0.5473 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005078/0.3436, allocations: 331.7 kB / 0.5476 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003118/0.3439, allocations: 124.7 kB / 0.5478 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.3443, allocations: 163.5 kB / 0.5479 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002963/0.3446, allocations: 147.7 kB / 0.5481 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.275e-05/0.3446, allocations: 18.59 kB / 0.5481 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000551/0.3451, allocations: 281 kB / 0.5484 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.3453, allocations: 102.5 kB / 0.5484 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001299/0.3454, allocations: 85.55 kB / 0.5485 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005894/0.346, allocations: 359.7 kB / 0.5489 GB, free: 11.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.346, allocations: 0 / 0.5489 GB, free: 11.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.634e-06/0.346, allocations: 0 / 0.5489 GB, free: 11.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.346, allocations: 4 kB / 0.5489 GB, free: 11.09 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.0007457/0.3468, allocations: 452.5 kB / 0.5493 GB, free: 10.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.3468, allocations: 12.89 kB / 0.5493 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.656e-05/0.3469, allocations: 58.41 kB / 0.5494 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009289/0.3478, allocations: 103 kB / 0.5495 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/0.3482, allocations: 218.9 kB / 0.5497 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.3482, allocations: 12.78 kB / 0.5497 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.561e-05/0.3483, allocations: 18.66 kB / 0.5497 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005285/0.3488, allocations: 329.6 kB / 0.55 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3488, allocations: 0 / 0.55 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.694e-05/0.3488, allocations: 6.75 kB / 0.55 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.789e-05/0.3489, allocations: 19.2 kB / 0.5501 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004836/0.3493, allocations: 293.4 kB / 0.5503 GB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.3513, allocations: 1.212 MB / 0.5515 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003271/0.3516, allocations: 113.8 kB / 0.5516 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.3517, allocations: 36.27 kB / 0.5517 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.956e-05/0.3518, allocations: 6.125 kB / 0.5517 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/0.3518, allocations: 40.58 kB / 0.5517 GB, free: 8.777 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.793e-06/0.3518, allocations: 0 / 0.5517 GB, free: 8.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003591/0.3522, allocations: 141.7 kB / 0.5518 GB, free: 8.691 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.3522, allocations: 79.48 kB / 0.5519 GB, free: 8.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/0.3525, allocations: 217.5 kB / 0.5521 GB, free: 8.434 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.3525, allocations: 29.7 kB / 0.5522 GB, free: 8.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.3527, allocations: 176.9 kB / 0.5523 GB, free: 8.234 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/0.3527, allocations: 36.84 kB / 0.5524 GB, free: 8.203 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.736e-05/0.3528, allocations: 41.61 kB / 0.5524 GB, free: 8.172 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3529, allocations: 330.8 kB / 0.5527 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.669e-05/0.353, allocations: 33.55 kB / 0.5527 GB, free: 7.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.3531, allocations: 148.1 kB / 0.5529 GB, free: 7.676 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002557/0.3534, allocations: 195.3 kB / 0.5531 GB, free: 7.496 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3534, allocations: 0.6562 kB / 0.5531 GB, free: 7.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000323/0.3537, allocations: 203.1 kB / 0.5533 GB, free: 7.383 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.3538, allocations: 10.53 kB / 0.5533 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3538, allocations: 3.406 kB / 0.5533 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.3538, allocations: 9.094 kB / 0.5533 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.3539, allocations: 44.23 kB / 0.5533 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.354, allocations: 8.031 kB / 0.5533 GB, free: 7.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.3541, allocations: 28.45 kB / 0.5534 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.3541, allocations: 12.09 kB / 0.5534 GB, free: 7.34 MB / 398.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.000166/0.3543, allocations: 153 kB / 0.5535 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.384e-05/0.3543, allocations: 20.06 kB / 0.5535 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002408/0.3546, allocations: 122.3 kB / 0.5537 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.3546, allocations: 1.156 kB / 0.5537 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3546, allocations: 5.125 kB / 0.5537 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3546, allocations: 1.094 kB / 0.5537 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008434/0.3554, allocations: 0.5403 MB / 0.5542 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.3554, allocations: 3.438 kB / 0.5542 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.25e-05/0.3555, allocations: 14.59 kB / 0.5542 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/0.3555, allocations: 7.906 kB / 0.5542 GB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.3555, allocations: 7.531 kB / 0.5542 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-06/0.3555, allocations: 15.17 kB / 0.5542 GB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3555, allocations: 3.344 kB / 0.5542 GB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.3558, allocations: 279.4 kB / 0.5545 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.657e-05/0.3559, allocations: 20.52 kB / 0.5545 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.066e-05/0.3559, allocations: 7.312 kB / 0.5545 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.356, allocations: 7.312 kB / 0.5545 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.617e-05/0.356, allocations: 10.55 kB / 0.5545 GB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.356, allocations: 5.312 kB / 0.5546 GB, free: 6.309 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00014/0.3562, allocations: 164.8 kB / 0.5547 GB, free: 6.188 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3562, allocations: 0 / 0.5547 GB, free: 6.188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003579/0.3565, allocations: 53.17 kB / 0.5548 GB, free: 6.176 MB / 398.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.0006225/0.3572, allocations: 0.8115 MB / 0.5556 GB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002549/0.3574, allocations: 123.4 kB / 0.5557 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.3574, allocations: 0 / 0.5557 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.217e-05/0.3575, allocations: 36.83 kB / 0.5557 GB, free: 5.309 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004672/0.358, allocations: 44.27 kB / 0.5558 GB, free: 5.285 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.3609, allocations: 2.321 MB / 0.558 GB, free: 3.004 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001826/0.3611, allocations: 143.9 kB / 0.5582 GB, free: 2.844 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001241/0.3612, allocations: 37.64 kB / 0.5582 GB, free: 2.809 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.3613, allocations: 59.41 kB / 0.5582 GB, free: 2.75 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3613, allocations: 4 kB / 0.5582 GB, free: 2.746 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03057/0.3918, allocations: 3.922 MB / 0.5621 GB, free: 14.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.79, allocations: 3.75 kB / 0.5621 GB, free: 14.95 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.csv failed! Error: Could not read variable pMeter.phi in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.csv. Warning: Get data of variable pMeter.phi from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.819154232740402]