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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 108.3 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00229/0.00229, allocations: 192 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.175/0.175, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 67.89 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4736/0.4748, allocations: 58.04 MB / 0.5041 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.008847/0.4838, allocations: 3.432 MB / 0.5074 GB, free: 5.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003881/0.4877, allocations: 1.521 MB / 0.5089 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003506/0.4881, allocations: 9.562 kB / 0.5089 GB, free: 4.348 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.4895, allocations: 256.6 kB / 0.5092 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001298/0.4908, allocations: 288.6 kB / 0.5095 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007971/0.4916, allocations: 122.4 kB / 0.5096 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009695/0.4926, allocations: 341.5 kB / 0.5099 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005912/0.4932, allocations: 133.2 kB / 0.51 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005261/0.4938, allocations: 158.3 kB / 0.5102 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00047/0.4943, allocations: 149.4 kB / 0.5103 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.399e-05/0.4943, allocations: 13.28 kB / 0.5103 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001041/0.4954, allocations: 336.9 kB / 0.5107 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002536/0.4957, allocations: 103.2 kB / 0.5108 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004654/0.4962, allocations: 99.48 kB / 0.5108 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.4973, allocations: 358.1 kB / 0.5112 GB, free: 3.312 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.4973, allocations: 0.9375 kB / 0.5112 GB, free: 3.312 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4973, allocations: 0 / 0.5112 GB, free: 3.312 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.68e-05/0.4974, allocations: 4 kB / 0.5112 GB, free: 3.309 MB / 382.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.001294/0.4987, allocations: 0.5026 MB / 0.5117 GB, free: 2.855 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/0.4987, allocations: 14.28 kB / 0.5117 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001994/0.5008, allocations: 107.8 kB / 0.5118 GB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006256/0.5014, allocations: 277.7 kB / 0.5121 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.5015, allocations: 11.31 kB / 0.5121 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.584e-05/0.5015, allocations: 19.69 kB / 0.5121 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.5026, allocations: 322.5 kB / 0.5124 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.5026, allocations: 0 / 0.5124 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.333e-05/0.5027, allocations: 6.938 kB / 0.5124 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.109e-05/0.5027, allocations: 21.69 kB / 0.5124 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009296/0.5037, allocations: 306.4 kB / 0.5127 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002895/0.5066, allocations: 1.277 MB / 0.514 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004899/0.5071, allocations: 200.3 kB / 0.5142 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.5073, allocations: 47.69 kB / 0.5142 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.5073, allocations: 1.703 kB / 0.5142 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.5074, allocations: 36.72 kB / 0.5142 GB, free: 1.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 3.446e-06/0.5074, allocations: 0 / 0.5142 GB, free: 1.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000554/0.5079, allocations: 139.8 kB / 0.5144 GB, free: 1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.508, allocations: 79.92 kB / 0.5145 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.5084, allocations: 221.8 kB / 0.5147 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.5084, allocations: 30.7 kB / 0.5147 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.5086, allocations: 170.3 kB / 0.5149 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.952e-05/0.5086, allocations: 31.83 kB / 0.5149 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.5088, allocations: 48.08 kB / 0.5149 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.512e-05/0.5089, allocations: 325.1 kB / 0.5152 GB, free: 204 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.509, allocations: 44.08 kB / 0.5153 GB, free: 188 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.5092, allocations: 138.5 kB / 0.5154 GB, free: 40 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004645/0.5097, allocations: 194.3 kB / 0.5156 GB, free: 15.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.5097, allocations: 5.031 kB / 0.5156 GB, free: 15.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006909/0.5104, allocations: 208.3 kB / 0.5158 GB, free: 15.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.786e-05/0.5105, allocations: 5.656 kB / 0.5158 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.537e-05/0.5105, allocations: 4.688 kB / 0.5158 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.877e-05/0.5106, allocations: 4.438 kB / 0.5158 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.511, allocations: 46.02 kB / 0.5159 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-05/0.511, allocations: 9.516 kB / 0.5159 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000305/0.5113, allocations: 21.23 kB / 0.5159 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.801e-05/0.5114, allocations: 8.688 kB / 0.5159 GB, free: 15.74 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.0002829/0.5117, allocations: 163.6 kB / 0.5161 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.467e-05/0.5118, allocations: 15.94 kB / 0.5161 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004308/0.5122, allocations: 119.2 kB / 0.5162 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.996e-06/0.5123, allocations: 2.781 kB / 0.5162 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.5123, allocations: 0.5625 kB / 0.5162 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.5123, allocations: 10.25 kB / 0.5162 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001527/0.5138, allocations: 0.5817 MB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.5139, allocations: 6.094 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.514, allocations: 21.98 kB / 0.5168 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/0.5141, allocations: 7.344 kB / 0.5168 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.5141, allocations: 8.5 kB / 0.5168 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.558e-05/0.5141, allocations: 3.469 kB / 0.5168 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/0.5142, allocations: 4.188 kB / 0.5168 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004016/0.5146, allocations: 280.8 kB / 0.5171 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.5147, allocations: 95.31 kB / 0.5172 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.879e-05/0.5147, allocations: 8.312 kB / 0.5172 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.5149, allocations: 12.16 kB / 0.5172 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.368e-05/0.5149, allocations: 12.22 kB / 0.5172 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.5149, allocations: 5.875 kB / 0.5172 GB, free: 14.65 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001929/0.5151, allocations: 159 kB / 0.5174 GB, free: 14.55 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5152, allocations: 0 / 0.5174 GB, free: 14.55 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004296/0.5156, allocations: 52.91 kB / 0.5174 GB, free: 14.54 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.0001429/0.5157, allocations: 99.25 kB / 0.5175 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002798/0.516, allocations: 123.2 kB / 0.5176 GB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.516, allocations: 1.406 kB / 0.5176 GB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.548e-05/0.5161, allocations: 48.38 kB / 0.5177 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004808/0.5166, allocations: 34.02 kB / 0.5177 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.5178, allocations: 453.3 kB / 0.5181 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.5184, allocations: 0.756 MB / 0.5189 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001649/0.5186, allocations: 38.38 kB / 0.5189 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.247e-05/0.5187, allocations: 17.38 kB / 0.5189 GB, free: 13.32 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5187, allocations: 0 / 0.5189 GB, free: 13.32 MB / 398.1 MB Notification: Performance of Templates: time 0.005249/0.5239, allocations: 1.248 MB / 0.5201 GB, free: 13.18 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches