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.001613/0.001613, allocations: 110.2 kB / 17.07 MB, free: 6.016 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.001424/0.001424, allocations: 191 kB / 18 MB, free: 5.098 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.461/1.461, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1787/0.1787, allocations: 38.05 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 59.91 kB / 458.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3926/0.3938, allocations: 58.06 MB / 0.5041 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.00546/0.3993, allocations: 3.43 MB / 0.5074 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.4012, allocations: 1.515 MB / 0.5089 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.4014, allocations: 12.25 kB / 0.5089 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000872/0.4023, allocations: 256.5 kB / 0.5092 GB, free: 4.219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006765/0.403, allocations: 287.4 kB / 0.5095 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.4033, allocations: 121.9 kB / 0.5096 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003813/0.4037, allocations: 337.2 kB / 0.5099 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003102/0.404, allocations: 142.8 kB / 0.51 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.4043, allocations: 150.9 kB / 0.5102 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002647/0.4045, allocations: 151.8 kB / 0.5103 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.063e-05/0.4046, allocations: 14.56 kB / 0.5103 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006077/0.4052, allocations: 337.3 kB / 0.5107 GB, free: 3.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000144/0.4053, allocations: 98.61 kB / 0.5107 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.4055, allocations: 102.2 kB / 0.5108 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005995/0.4061, allocations: 358 kB / 0.5112 GB, free: 3.336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.4061, allocations: 0 / 0.5112 GB, free: 3.336 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.4061, allocations: 0 / 0.5112 GB, free: 3.336 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.4061, allocations: 1.312 kB / 0.5112 GB, free: 3.336 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.0006769/0.4068, allocations: 0.515 MB / 0.5117 GB, free: 2.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.4069, allocations: 13.05 kB / 0.5117 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.4079, allocations: 104.1 kB / 0.5118 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.4082, allocations: 267.2 kB / 0.5121 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.4083, allocations: 15.08 kB / 0.5121 GB, free: 2.602 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.779e-05/0.4083, allocations: 24.12 kB / 0.5121 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005523/0.4089, allocations: 322.4 kB / 0.5124 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.4089, allocations: 0 / 0.5124 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/0.4089, allocations: 9.953 kB / 0.5124 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-05/0.409, allocations: 18.81 kB / 0.5124 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005176/0.4095, allocations: 306.3 kB / 0.5127 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.411, allocations: 1.277 MB / 0.514 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002624/0.4113, allocations: 212.2 kB / 0.5142 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.535e-05/0.4113, allocations: 43.7 kB / 0.5142 GB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.4114, allocations: 2.062 kB / 0.5142 GB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.4114, allocations: 36.61 kB / 0.5143 GB, free: 1.078 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.4114, allocations: 3.938 kB / 0.5143 GB, free: 1.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003009/0.4117, allocations: 142 kB / 0.5144 GB, free: 1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.752e-05/0.4117, allocations: 79.52 kB / 0.5145 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.4119, allocations: 215.2 kB / 0.5147 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.248e-06/0.412, allocations: 25.7 kB / 0.5147 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.212e-05/0.412, allocations: 171.2 kB / 0.5149 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.522e-05/0.4121, allocations: 32.45 kB / 0.5149 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-05/0.4121, allocations: 43.67 kB / 0.5149 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.557e-05/0.4122, allocations: 332.6 kB / 0.5152 GB, free: 212 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.599e-05/0.4123, allocations: 39.33 kB / 0.5153 GB, free: 200 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.4124, allocations: 136.3 kB / 0.5154 GB, free: 56 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.4126, allocations: 197 kB / 0.5156 GB, free: 15.88 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.4127, allocations: 5.156 kB / 0.5156 GB, free: 15.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003196/0.413, allocations: 208.1 kB / 0.5158 GB, free: 15.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.413, allocations: 6.938 kB / 0.5158 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.413, allocations: 4.062 kB / 0.5158 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.413, allocations: 4.188 kB / 0.5158 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.4132, allocations: 47.8 kB / 0.5159 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.4132, allocations: 9.734 kB / 0.5159 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.4134, allocations: 31.81 kB / 0.5159 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.4134, allocations: 9.344 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.0001558/0.4136, allocations: 156.1 kB / 0.5161 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.047e-05/0.4136, allocations: 18.88 kB / 0.5161 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000229/0.4139, allocations: 119.7 kB / 0.5162 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.4139, allocations: 2.672 kB / 0.5162 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.4139, allocations: 1.125 kB / 0.5162 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.4139, allocations: 4.891 kB / 0.5162 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008063/0.4147, allocations: 0.5779 MB / 0.5168 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.4147, allocations: 2.438 kB / 0.5168 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.004e-05/0.4148, allocations: 21.72 kB / 0.5168 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.4148, allocations: 7.969 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.4148, allocations: 8.969 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.4148, allocations: 2.859 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.4149, allocations: 3.688 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002954/0.4151, allocations: 281.5 kB / 0.5171 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.362e-05/0.4152, allocations: 98.95 kB / 0.5172 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.443e-05/0.4153, allocations: 9.578 kB / 0.5172 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.4154, allocations: 6.688 kB / 0.5172 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.4154, allocations: 12.67 kB / 0.5172 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.4155, allocations: 6.75 kB / 0.5172 GB, free: 14.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001601/0.4156, allocations: 154.4 kB / 0.5174 GB, free: 14.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4156, allocations: 4 kB / 0.5174 GB, free: 14.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003957/0.416, allocations: 54.33 kB / 0.5174 GB, free: 14.55 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.0001069/0.4161, allocations: 99.42 kB / 0.5175 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002507/0.4164, allocations: 126.9 kB / 0.5176 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.4164, allocations: 192 / 0.5176 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.502e-05/0.4165, allocations: 51.11 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.0004265/0.4169, allocations: 30.59 kB / 0.5177 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008286/0.4178, allocations: 456.2 kB / 0.5181 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.4182, allocations: 0.7601 MB / 0.5189 GB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.4183, allocations: 33.69 kB / 0.5189 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.318e-05/0.4183, allocations: 16.77 kB / 0.5189 GB, free: 13.33 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4183, allocations: 0.9062 kB / 0.5189 GB, free: 13.33 MB / 398.1 MB Notification: Performance of Templates: time 0.004413/0.4228, allocations: 1.243 MB / 0.5201 GB, free: 13.2 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