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.001399/0.001398, allocations: 111 kB / 17.74 MB, free: 5.34 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.001456/0.001456, allocations: 192.3 kB / 18.68 MB, free: 4.41 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.346/1.346, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1826/0.1826, allocations: 38.05 MB / 330.6 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.89 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3657, allocations: 58.05 MB / 0.5048 GB, free: 7.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004338/0.3701, allocations: 3.442 MB / 0.5081 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.3719, allocations: 1.51 MB / 0.5096 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.372, allocations: 9.375 kB / 0.5096 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007776/0.3728, allocations: 256.9 kB / 0.5098 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005713/0.3734, allocations: 287.1 kB / 0.5101 GB, free: 3.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003094/0.3737, allocations: 122.7 kB / 0.5102 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003728/0.3741, allocations: 340.4 kB / 0.5106 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000289/0.3744, allocations: 133.4 kB / 0.5107 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000215/0.3746, allocations: 158.3 kB / 0.5108 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002164/0.3749, allocations: 144.8 kB / 0.511 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.3749, allocations: 17.91 kB / 0.511 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000495/0.3754, allocations: 333 kB / 0.5113 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.3755, allocations: 103.2 kB / 0.5114 GB, free: 3.371 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.943e-05/0.3756, allocations: 98.67 kB / 0.5115 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004749/0.3761, allocations: 355.3 kB / 0.5118 GB, free: 3.195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3761, allocations: 1.375 kB / 0.5118 GB, free: 3.195 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3761, allocations: 7.938 kB / 0.5119 GB, free: 3.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.3761, allocations: 0 / 0.5119 GB, free: 3.188 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.0006213/0.3768, allocations: 0.5 MB / 0.5123 GB, free: 2.734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3768, allocations: 13.83 kB / 0.5124 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00101/0.3778, allocations: 103.8 kB / 0.5125 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.3781, allocations: 274.7 kB / 0.5127 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.3782, allocations: 15.94 kB / 0.5127 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.796e-05/0.3782, allocations: 19.09 kB / 0.5127 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004972/0.3787, allocations: 322.5 kB / 0.5131 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3787, allocations: 1.078 kB / 0.5131 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.3788, allocations: 10.78 kB / 0.5131 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.601e-05/0.3788, allocations: 18.92 kB / 0.5131 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004702/0.3793, allocations: 305.3 kB / 0.5134 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001503/0.3808, allocations: 1.277 MB / 0.5146 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000273/0.3811, allocations: 208.8 kB / 0.5148 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.727e-05/0.3811, allocations: 43.48 kB / 0.5149 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.3812, allocations: 1 kB / 0.5149 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.3812, allocations: 37.81 kB / 0.5149 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.355e-06/0.3812, allocations: 0 / 0.5149 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002895/0.3815, allocations: 141.5 kB / 0.515 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.3815, allocations: 83.27 kB / 0.5151 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.3817, allocations: 219.4 kB / 0.5153 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.466e-06/0.3817, allocations: 25.7 kB / 0.5153 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.137e-05/0.3818, allocations: 171.1 kB / 0.5155 GB, free: 460 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.3819, allocations: 30.69 kB / 0.5155 GB, free: 436 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.422e-05/0.3819, allocations: 48.39 kB / 0.5156 GB, free: 400 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.19e-05/0.382, allocations: 325.3 kB / 0.5159 GB, free: 76 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.483e-05/0.382, allocations: 40.03 kB / 0.5159 GB, free: 64 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.3822, allocations: 143.2 kB / 0.5161 GB, free: 15.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.3824, allocations: 192.7 kB / 0.5163 GB, free: 15.74 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.3824, allocations: 6.031 kB / 0.5163 GB, free: 15.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003095/0.3827, allocations: 207.5 kB / 0.5165 GB, free: 15.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.3828, allocations: 6.516 kB / 0.5165 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3828, allocations: 8.375 kB / 0.5165 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.3828, allocations: 4.625 kB / 0.5165 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.383, allocations: 46.75 kB / 0.5165 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.383, allocations: 5.312 kB / 0.5165 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.3831, allocations: 25.33 kB / 0.5166 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.3831, allocations: 8.312 kB / 0.5166 GB, free: 15.61 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.0001322/0.3833, allocations: 164.1 kB / 0.5167 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.3833, allocations: 16.34 kB / 0.5167 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002213/0.3835, allocations: 118.8 kB / 0.5168 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3836, allocations: 3.25 kB / 0.5168 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3836, allocations: 0 / 0.5168 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.3836, allocations: 1.906 kB / 0.5169 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007425/0.3843, allocations: 0.5772 MB / 0.5174 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.3843, allocations: 3.344 kB / 0.5174 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.651e-05/0.3844, allocations: 25.91 kB / 0.5174 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.3844, allocations: 3.438 kB / 0.5174 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.3845, allocations: 7.531 kB / 0.5175 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.3845, allocations: 8.531 kB / 0.5175 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3845, allocations: 2.594 kB / 0.5175 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002733/0.3848, allocations: 285.9 kB / 0.5177 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.439e-05/0.3848, allocations: 98.48 kB / 0.5178 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.728e-05/0.3849, allocations: 8.875 kB / 0.5178 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.385, allocations: 8.062 kB / 0.5178 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.92e-05/0.3851, allocations: 12.64 kB / 0.5179 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.3851, allocations: 5.719 kB / 0.5179 GB, free: 14.53 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001685/0.3852, allocations: 154.9 kB / 0.518 GB, free: 14.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3853, allocations: 0 / 0.518 GB, free: 14.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003866/0.3856, allocations: 56.47 kB / 0.5181 GB, free: 14.41 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.0001141/0.3858, allocations: 99.28 kB / 0.5182 GB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002295/0.386, allocations: 124 kB / 0.5183 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.386, allocations: 0.875 kB / 0.5183 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.598e-05/0.3861, allocations: 51.44 kB / 0.5183 GB, free: 14.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.3865, allocations: 34.27 kB / 0.5184 GB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008488/0.3874, allocations: 489.5 kB / 0.5188 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/0.3878, allocations: 0.7526 MB / 0.5196 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.446e-05/0.3879, allocations: 21.47 kB / 0.5196 GB, free: 13.18 MB / 398.1 MB Notification: Performance of SimCode: time 4e-07/0.3879, allocations: 4.781 kB / 0.5196 GB, free: 13.18 MB / 398.1 MB Notification: Performance of Templates: time 0.004824/0.3927, allocations: 2.215 MB / 0.5218 GB, free: 12.97 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/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) Reference file matches