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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.PMeterTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pMeter.I|pMeter.P|pMeter.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest") translateModel(PowerSystems.Examples.Generic.Test.PMeterTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pMeter.I|pMeter.P|pMeter.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001752/0.001752, allocations: 183 kB / 8.134 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.195/1.195, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009501/0.0009501, allocations: 87.28 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1831/0.1831, allocations: 37.97 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.257e-06/9.287e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 56.32 MB / 466.3 MB, free: 6.469 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3533/0.4617, allocations: 94.58 MB / 0.5478 GB, free: 12 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.4621, allocations: 84.03 kB / 0.5478 GB, free: 15.93 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03478/0.4969, allocations: 14.18 MB / 0.5617 GB, free: 1.602 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.621e-05/0.497, allocations: 4 kB / 0.5617 GB, free: 1.598 MB / 394.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.0008232/0.4978, allocations: 486.5 kB / 0.5622 GB, free: 1.078 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.4979, allocations: 12.03 kB / 0.5622 GB, free: 1.066 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001082/0.499, allocations: 119.5 kB / 0.5623 GB, free: 0.9492 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004468/0.4994, allocations: 273.5 kB / 0.5625 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.4994, allocations: 4 kB / 0.5625 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.646e-05/0.4995, allocations: 12 kB / 0.5626 GB, free: 0.625 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003739/0.4999, allocations: 212.2 kB / 0.5628 GB, free: 428 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004099/0.5003, allocations: 290.4 kB / 0.563 GB, free: 108 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.5003, allocations: 0 / 0.563 GB, free: 108 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/0.5004, allocations: 4 kB / 0.563 GB, free: 104 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-05/0.5004, allocations: 15.98 kB / 0.5631 GB, free: 88 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/0.5025, allocations: 1.303 MB / 0.5643 GB, free: 14.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003139/0.5028, allocations: 121.2 kB / 0.5644 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.378e-05/0.5029, allocations: 49.7 kB / 0.5645 GB, free: 14.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.481e-05/0.503, allocations: 7.984 kB / 0.5645 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.503, allocations: 38.56 kB / 0.5645 GB, free: 14.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 1.893e-06/0.503, allocations: 0 / 0.5645 GB, free: 14.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003452/0.5034, allocations: 117.6 kB / 0.5646 GB, free: 14.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.5034, allocations: 85.05 kB / 0.5647 GB, free: 14.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002048/0.5037, allocations: 159.2 kB / 0.5649 GB, free: 14.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.5037, allocations: 25.7 kB / 0.5649 GB, free: 14.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.118e-05/0.5038, allocations: 163.6 kB / 0.5651 GB, free: 13.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.133e-05/0.5038, allocations: 35.45 kB / 0.5651 GB, free: 13.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-06/0.5038, allocations: 0 / 0.5651 GB, free: 13.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.504, allocations: 330.9 kB / 0.5654 GB, free: 13.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.541e-05/0.5041, allocations: 39.98 kB / 0.5654 GB, free: 13.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.5042, allocations: 136.9 kB / 0.5656 GB, free: 13.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001241/0.5043, allocations: 63.91 kB / 0.5656 GB, free: 13.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.5044, allocations: 0 / 0.5656 GB, free: 13.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002929/0.5047, allocations: 185.6 kB / 0.5658 GB, free: 13.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.5047, allocations: 5.406 kB / 0.5658 GB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.5047, allocations: 8 kB / 0.5658 GB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.5047, allocations: 4.094 kB / 0.5658 GB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.5049, allocations: 55.86 kB / 0.5659 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.505, allocations: 11.92 kB / 0.5659 GB, free: 12.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.5051, allocations: 15.75 kB / 0.5659 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.5051, allocations: 16 kB / 0.5659 GB, free: 12.92 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.385e-05/0.5052, allocations: 108.9 kB / 0.566 GB, free: 12.81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.86e-05/0.5053, allocations: 15.81 kB / 0.566 GB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002572/0.5055, allocations: 138.9 kB / 0.5662 GB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.5055, allocations: 0 / 0.5662 GB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.5055, allocations: 4 kB / 0.5662 GB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.5056, allocations: 3.984 kB / 0.5662 GB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008596/0.5064, allocations: 0.7247 MB / 0.5669 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.5064, allocations: 0 / 0.5669 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.619e-05/0.5065, allocations: 27.92 kB / 0.5669 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.239e-06/0.5066, allocations: 4.375 kB / 0.5669 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.5066, allocations: 8 kB / 0.5669 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.5066, allocations: 4 kB / 0.5669 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.5066, allocations: 7.984 kB / 0.5669 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003934/0.507, allocations: 430 kB / 0.5673 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.871e-05/0.5071, allocations: 104.9 kB / 0.5674 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.78e-05/0.5072, allocations: 11.89 kB / 0.5675 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.5073, allocations: 4 kB / 0.5675 GB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.988e-05/0.5073, allocations: 11.94 kB / 0.5675 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.5073, allocations: 8 kB / 0.5675 GB, free: 11.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001107/0.5075, allocations: 127.1 kB / 0.5676 GB, free: 10.92 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003924/0.5079, allocations: 67.84 kB / 0.5677 GB, free: 10.85 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000161/0.508, allocations: 107.1 kB / 0.5678 GB, free: 10.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002052/0.5082, allocations: 107.8 kB / 0.5679 GB, free: 10.63 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5083, allocations: 4 kB / 0.5679 GB, free: 10.63 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.495e-05/0.5083, allocations: 48.86 kB / 0.5679 GB, free: 10.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.5087, allocations: 42.64 kB / 0.568 GB, free: 10.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006506/0.5093, allocations: 341 kB / 0.5683 GB, free: 10.15 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004016/0.5097, allocations: 0.7823 MB / 0.5691 GB, free: 9.344 MB / 410.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5097, allocations: 0 / 0.5691 GB, free: 9.344 MB / 410.7 MB Notification: Performance of Templates: time 0.004185/0.5139, allocations: 1.3 MB / 0.5703 GB, free: 8.047 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches