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.0008418/0.0008418, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008734/0.0008734, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8996/0.8996, allocations: 177.1 MB / 204.2 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.224/0.224, allocations: 29.41 MB / 290.1 MB, free: 2.441 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.133e-05/2.313e-05, allocations: 6.219 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.003395/0.003418, allocations: 3.415 MB / 433.6 MB, free: 10.18 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.004966, allocations: 1.445 MB / 435.1 MB, free: 8.723 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.005091, allocations: 7.938 kB / 435.1 MB, free: 8.715 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005683/0.005659, allocations: 257.7 kB / 435.3 MB, free: 8.465 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005065/0.006166, allocations: 286.6 kB / 435.6 MB, free: 8.184 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.006444, allocations: 127.5 kB / 435.7 MB, free: 8.059 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003448/0.006788, allocations: 342.9 kB / 436.1 MB, free: 7.723 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.00703, allocations: 118 kB / 436.2 MB, free: 7.609 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002808/0.007311, allocations: 203.3 kB / 436.4 MB, free: 7.41 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001979/0.007508, allocations: 155.5 kB / 436.5 MB, free: 7.258 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.067e-05/0.007529, allocations: 15.94 kB / 436.5 MB, free: 7.242 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003576/0.007887, allocations: 283.1 kB / 436.8 MB, free: 6.965 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.54e-05/0.007982, allocations: 107.7 kB / 436.9 MB, free: 6.859 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.221e-05/0.008054, allocations: 75.83 kB / 437 MB, free: 6.785 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004386/0.008493, allocations: 370.9 kB / 437.4 MB, free: 6.422 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.008497, allocations: 0 / 437.4 MB, free: 6.422 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.008498, allocations: 0 / 437.4 MB, free: 6.422 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.008503, allocations: 0 / 437.4 MB, free: 6.422 MB / 410.7 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.0005377/0.009041, allocations: 449 kB / 437.8 MB, free: 5.953 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.009078, allocations: 15.98 kB / 437.8 MB, free: 5.938 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.295e-05/0.009121, allocations: 50.73 kB / 437.9 MB, free: 5.879 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005244/0.009646, allocations: 104.7 kB / 438 MB, free: 5.777 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.009911, allocations: 209.9 kB / 438.2 MB, free: 5.547 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.009928, allocations: 20.36 kB / 438.2 MB, free: 5.527 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.278e-05/0.009951, allocations: 20.31 kB / 438.2 MB, free: 5.508 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003524/0.0103, allocations: 327 kB / 438.5 MB, free: 5.164 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.01031, allocations: 0 / 438.5 MB, free: 5.164 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.01033, allocations: 8 kB / 438.5 MB, free: 5.156 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.695e-05/0.01036, allocations: 19.98 kB / 438.6 MB, free: 5.137 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.01067, allocations: 299.7 kB / 438.8 MB, free: 4.844 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.01174, allocations: 1.197 MB / 440 MB, free: 3.551 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/0.01194, allocations: 117.2 kB / 440.2 MB, free: 3.418 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.826e-05/0.01199, allocations: 41.77 kB / 440.2 MB, free: 3.371 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.012, allocations: 7.938 kB / 440.2 MB, free: 3.363 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/0.01203, allocations: 38.55 kB / 440.2 MB, free: 3.316 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.01203, allocations: 0 / 440.2 MB, free: 3.316 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002334/0.01226, allocations: 141.6 kB / 440.4 MB, free: 3.172 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.0123, allocations: 77.11 kB / 440.5 MB, free: 3.078 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.01244, allocations: 215.8 kB / 440.7 MB, free: 2.859 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.01245, allocations: 29.7 kB / 440.7 MB, free: 2.824 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.37e-05/0.01254, allocations: 176 kB / 440.9 MB, free: 2.648 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.01256, allocations: 32.08 kB / 440.9 MB, free: 2.617 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.705e-05/0.01261, allocations: 41.7 kB / 440.9 MB, free: 2.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.153e-05/0.0127, allocations: 330.9 kB / 441.3 MB, free: 2.238 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.912e-05/0.01275, allocations: 43.98 kB / 441.3 MB, free: 2.195 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.783e-05/0.01283, allocations: 147.6 kB / 441.5 MB, free: 2.008 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.01298, allocations: 196.7 kB / 441.6 MB, free: 1.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.01299, allocations: 4 kB / 441.6 MB, free: 1.766 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001938/0.01318, allocations: 217.3 kB / 441.9 MB, free: 1.547 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.01319, allocations: 4.781 kB / 441.9 MB, free: 1.543 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.0132, allocations: 7.984 kB / 441.9 MB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.01322, allocations: 4 kB / 441.9 MB, free: 1.531 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.699e-05/0.01331, allocations: 47.92 kB / 441.9 MB, free: 1.484 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.01332, allocations: 4 kB / 441.9 MB, free: 1.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.871e-05/0.01339, allocations: 23.83 kB / 442 MB, free: 1.457 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.0134, allocations: 11.98 kB / 442 MB, free: 1.445 MB / 410.7 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 9.098e-05/0.01349, allocations: 149.8 kB / 442.1 MB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.382e-05/0.01351, allocations: 27.95 kB / 442.1 MB, free: 1.262 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002969/0.01381, allocations: 123 kB / 442.3 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.01381, allocations: 4 kB / 442.3 MB, free: 1.125 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.01382, allocations: 0 / 442.3 MB, free: 1.125 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.01382, allocations: 0 / 442.3 MB, free: 1.125 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004672/0.01429, allocations: 0.5324 MB / 442.8 MB, free: 0.5156 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.01429, allocations: 4.031 kB / 442.8 MB, free: 0.5117 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.843e-05/0.01433, allocations: 19.98 kB / 442.8 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.01433, allocations: 4.188 kB / 442.8 MB, free: 500 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-06/0.01434, allocations: 4 kB / 442.8 MB, free: 496 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.01435, allocations: 11.88 kB / 442.8 MB, free: 484 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.01435, allocations: 3.938 kB / 442.8 MB, free: 480 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001692/0.01452, allocations: 279.8 kB / 443.1 MB, free: 152 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.045e-05/0.01455, allocations: 27.89 kB / 443.1 MB, free: 124 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.01457, allocations: 4 kB / 443.1 MB, free: 120 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.233e-05/0.01463, allocations: 12 kB / 443.2 MB, free: 108 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.116e-05/0.01465, allocations: 15.92 kB / 443.2 MB, free: 92 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-06/0.01466, allocations: 4 kB / 443.2 MB, free: 88 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.1786/0.1932, allocations: 155 kB / 443.3 MB, free: 53.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1932, allocations: 1.469 kB / 443.3 MB, free: 53.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003544/0.1936, allocations: 52.84 kB / 443.4 MB, free: 53.95 MB / 410.7 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.000345/0.1939, allocations: 0.8014 MB / 444.2 MB, free: 53.21 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001945/0.1941, allocations: 119 kB / 444.3 MB, free: 53.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1941, allocations: 1.562 kB / 444.3 MB, free: 53.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.07e-05/0.1942, allocations: 48.94 kB / 444.3 MB, free: 53.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.1945, allocations: 33.45 kB / 444.4 MB, free: 53.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.196, allocations: 2.291 MB / 446.7 MB, free: 51.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.001e-05/0.1961, allocations: 141 kB / 446.8 MB, free: 51.54 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.859e-05/0.1962, allocations: 38.19 kB / 446.8 MB, free: 51.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.118e-05/0.1963, allocations: 65.44 kB / 446.9 MB, free: 51.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1963, allocations: 3.969 kB / 446.9 MB, free: 51.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.2151, allocations: 4.052 MB / 451 MB, free: 50.53 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.908/7.123, allocations: 3.938 kB / 451 MB, free: 50.53 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","/var/lib/jenkins/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: 9.124747891910374]