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.001807/0.001807, allocations: 123 kB / 17.79 MB, free: 5.246 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.002232/0.002232, allocations: 211.2 kB / 20.75 MB, free: 2.293 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.503/1.503, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1921/0.1921, allocations: 38.52 MB / 348.7 MB, free: 2.719 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-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.003037/0.003037, allocations: 67.89 kB / 487.1 MB, free: 22.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1143, allocations: 62.42 MB / 0.5367 GB, free: 7.562 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.005321/0.1196, allocations: 3.477 MB / 0.5401 GB, free: 4.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.122, allocations: 1.582 MB / 0.5416 GB, free: 2.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.1221, allocations: 11.88 kB / 0.5416 GB, free: 2.469 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008273/0.1229, allocations: 255 kB / 0.5419 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005868/0.1235, allocations: 287 kB / 0.5421 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003068/0.1238, allocations: 127.6 kB / 0.5423 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004183/0.1243, allocations: 335 kB / 0.5426 GB, free: 1.484 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/0.1245, allocations: 113.7 kB / 0.5427 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/0.1248, allocations: 159.3 kB / 0.5428 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002472/0.125, allocations: 163.4 kB / 0.543 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.677e-05/0.1251, allocations: 16 kB / 0.543 GB, free: 1.043 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005466/0.1256, allocations: 347.1 kB / 0.5434 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.1257, allocations: 95.77 kB / 0.5434 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.1259, allocations: 111.4 kB / 0.5435 GB, free: 0.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005119/0.1264, allocations: 358.7 kB / 0.5439 GB, free: 152 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1264, allocations: 0 / 0.5439 GB, free: 152 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1264, allocations: 0 / 0.5439 GB, free: 152 kB / 398.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.1264, allocations: 0 / 0.5439 GB, free: 152 kB / 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.0007325/0.1271, allocations: 0.5178 MB / 0.5444 GB, free: 15.58 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.1272, allocations: 12.02 kB / 0.5444 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.594e-05/0.1272, allocations: 54.73 kB / 0.5445 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009646/0.1282, allocations: 104.7 kB / 0.5446 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/0.1286, allocations: 272.5 kB / 0.5448 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.1286, allocations: 12.38 kB / 0.5448 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.952e-05/0.1286, allocations: 19.94 kB / 0.5448 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005774/0.1292, allocations: 330.2 kB / 0.5452 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1292, allocations: 0 / 0.5452 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.1292, allocations: 4 kB / 0.5452 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.653e-05/0.1293, allocations: 19.98 kB / 0.5452 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005072/0.1298, allocations: 311.6 kB / 0.5455 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/0.1316, allocations: 1.281 MB / 0.5467 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004173/0.132, allocations: 198.3 kB / 0.5469 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.162e-05/0.1321, allocations: 41.77 kB / 0.547 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.1321, allocations: 4 kB / 0.547 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.218e-05/0.1322, allocations: 34.56 kB / 0.547 GB, free: 12.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.713e-06/0.1322, allocations: 0 / 0.547 GB, free: 12.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003466/0.1325, allocations: 141.6 kB / 0.5471 GB, free: 12.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.003e-05/0.1326, allocations: 77.11 kB / 0.5472 GB, free: 12.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/0.1328, allocations: 219.9 kB / 0.5474 GB, free: 12.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.1329, allocations: 25.7 kB / 0.5474 GB, free: 12.19 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.133, allocations: 175.9 kB / 0.5476 GB, free: 12.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.031e-05/0.133, allocations: 35.7 kB / 0.5476 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.4e-05/0.1331, allocations: 45.94 kB / 0.5477 GB, free: 11.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.1333, allocations: 330.8 kB / 0.548 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.133e-05/0.1334, allocations: 32.05 kB / 0.548 GB, free: 11.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.1335, allocations: 144.8 kB / 0.5482 GB, free: 11.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/0.1338, allocations: 204.5 kB / 0.5484 GB, free: 11.13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1338, allocations: 3.938 kB / 0.5484 GB, free: 11.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003397/0.1341, allocations: 209.3 kB / 0.5486 GB, free: 10.92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.1342, allocations: 8 kB / 0.5486 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.1342, allocations: 7.984 kB / 0.5486 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.1342, allocations: 4 kB / 0.5486 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/0.1344, allocations: 43.92 kB / 0.5486 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.1344, allocations: 4 kB / 0.5486 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.1345, allocations: 19.89 kB / 0.5487 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.1345, allocations: 15.98 kB / 0.5487 GB, free: 10.82 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.0001512/0.1347, allocations: 161.9 kB / 0.5488 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.636e-05/0.1348, allocations: 19.86 kB / 0.5488 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003353/0.1351, allocations: 123 kB / 0.549 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1351, allocations: 0 / 0.549 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1351, allocations: 0 / 0.549 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.1351, allocations: 4 kB / 0.549 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000892/0.136, allocations: 0.5682 MB / 0.5495 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.136, allocations: 3.984 kB / 0.5495 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.056e-05/0.1361, allocations: 16 kB / 0.5495 GB, free: 9.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.1361, allocations: 8.25 kB / 0.5495 GB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.1361, allocations: 8.188 kB / 0.5496 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.101e-05/0.1361, allocations: 11.92 kB / 0.5496 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1361, allocations: 3.938 kB / 0.5496 GB, free: 9.793 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003334/0.1364, allocations: 283.9 kB / 0.5498 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.704e-05/0.1365, allocations: 100.9 kB / 0.5499 GB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.1366, allocations: 11.94 kB / 0.5499 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.1367, allocations: 8 kB / 0.55 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.181e-05/0.1367, allocations: 15.92 kB / 0.55 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.1367, allocations: 8 kB / 0.55 GB, free: 9.309 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001756/0.1369, allocations: 153.5 kB / 0.5501 GB, free: 9.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1369, allocations: 0 / 0.5501 GB, free: 9.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003766/0.1373, allocations: 55.89 kB / 0.5502 GB, free: 9.105 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.0006273/0.1379, allocations: 0.8066 MB / 0.551 GB, free: 8.242 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002422/0.1382, allocations: 120.2 kB / 0.5511 GB, free: 8.125 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1382, allocations: 4.312 kB / 0.5511 GB, free: 8.121 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.899e-05/0.1382, allocations: 47.84 kB / 0.5511 GB, free: 8.074 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004091/0.1386, allocations: 30.78 kB / 0.5512 GB, free: 8.047 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002974/0.1416, allocations: 2.316 MB / 0.5534 GB, free: 5.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000485/0.1421, allocations: 0.7554 MB / 0.5542 GB, free: 4.719 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.1422, allocations: 41.55 kB / 0.5542 GB, free: 4.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.719e-05/0.1423, allocations: 59.41 kB / 0.5543 GB, free: 4.621 MB / 414.1 MB Notification: Performance of SimCode: time 9.51e-07/0.1423, allocations: 4 kB / 0.5543 GB, free: 4.617 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02504/0.1674, allocations: 3.385 MB / 0.5576 GB, free: 1.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.253/8.42, allocations: 7.938 kB / 0.5576 GB, free: 1.312 MB / 414.1 MB " [Timeout remaining time 652] (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: 11.460657408926636]