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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 111 kB / 17.06 MB, free: 5.965 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.001196/0.001196, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.358/1.358, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.195/0.195, allocations: 38.04 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 63.91 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3461, allocations: 58.06 MB / 0.5036 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004456/0.3506, allocations: 3.432 MB / 0.507 GB, free: 5.016 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.3527, allocations: 1.518 MB / 0.5084 GB, free: 3.953 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.3529, allocations: 9.906 kB / 0.5085 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008096/0.3538, allocations: 255.8 kB / 0.5087 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006108/0.3544, allocations: 284.3 kB / 0.509 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003517/0.3547, allocations: 129.6 kB / 0.5091 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004448/0.3552, allocations: 340.2 kB / 0.5094 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002923/0.3555, allocations: 132.7 kB / 0.5095 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002561/0.3558, allocations: 154.5 kB / 0.5097 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002913/0.3561, allocations: 148.5 kB / 0.5098 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.434e-05/0.3561, allocations: 18.53 kB / 0.5099 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006984/0.3568, allocations: 336.6 kB / 0.5102 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.357, allocations: 103.4 kB / 0.5103 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001243/0.3571, allocations: 106.4 kB / 0.5104 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000538/0.3577, allocations: 346.3 kB / 0.5107 GB, free: 2.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.3577, allocations: 4.547 kB / 0.5107 GB, free: 2.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3577, allocations: 0 / 0.5107 GB, free: 2.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.3577, allocations: 4 kB / 0.5107 GB, free: 2.902 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.0006699/0.3584, allocations: 0.5108 MB / 0.5112 GB, free: 2.441 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.3584, allocations: 13.8 kB / 0.5112 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.77e-05/0.3585, allocations: 54.64 kB / 0.5113 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009646/0.3595, allocations: 107 kB / 0.5114 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003477/0.3598, allocations: 271.9 kB / 0.5116 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.3598, allocations: 11.84 kB / 0.5117 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.925e-05/0.3599, allocations: 23.72 kB / 0.5117 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005112/0.3604, allocations: 317.3 kB / 0.512 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.3604, allocations: 0 / 0.512 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.3605, allocations: 14.19 kB / 0.512 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.283e-05/0.3605, allocations: 15.36 kB / 0.512 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004581/0.361, allocations: 309.8 kB / 0.5123 GB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.3626, allocations: 1.273 MB / 0.5135 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.3629, allocations: 199.1 kB / 0.5137 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.664e-05/0.363, allocations: 43.92 kB / 0.5138 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.363, allocations: 6.219 kB / 0.5138 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.363, allocations: 37.41 kB / 0.5138 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.094e-06/0.363, allocations: 0 / 0.5138 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000369/0.3634, allocations: 142.6 kB / 0.514 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.3635, allocations: 82.27 kB / 0.514 GB, free: 448 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.3637, allocations: 218.3 kB / 0.5142 GB, free: 304 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.3637, allocations: 30.77 kB / 0.5143 GB, free: 268 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.3638, allocations: 167 kB / 0.5144 GB, free: 116 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.451e-05/0.3639, allocations: 31.06 kB / 0.5145 GB, free: 92 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.511e-05/0.364, allocations: 48.8 kB / 0.5145 GB, free: 56 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3641, allocations: 324.5 kB / 0.5148 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.01e-05/0.3642, allocations: 39.27 kB / 0.5149 GB, free: 15.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.3644, allocations: 147.8 kB / 0.515 GB, free: 15.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003768/0.3648, allocations: 195.9 kB / 0.5152 GB, free: 15.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.3648, allocations: 0.9375 kB / 0.5152 GB, free: 15.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005074/0.3653, allocations: 208.5 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.3654, allocations: 7.375 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.3654, allocations: 3.625 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/0.3654, allocations: 5.062 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002011/0.3656, allocations: 46.67 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/0.3657, allocations: 8.906 kB / 0.5154 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.3658, allocations: 23.84 kB / 0.5155 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.3658, allocations: 9.375 kB / 0.5155 GB, free: 15.28 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.0001863/0.366, allocations: 161.1 kB / 0.5156 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.241e-05/0.3661, allocations: 14.72 kB / 0.5156 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003142/0.3664, allocations: 120.4 kB / 0.5158 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.3664, allocations: 2.125 kB / 0.5158 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3664, allocations: 0 / 0.5158 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.3664, allocations: 1.172 kB / 0.5158 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.3676, allocations: 0.5813 MB / 0.5163 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.3676, allocations: 3.594 kB / 0.5163 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.568e-05/0.3677, allocations: 26.08 kB / 0.5164 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.717e-06/0.3677, allocations: 6.812 kB / 0.5164 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.3677, allocations: 5.016 kB / 0.5164 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.035e-05/0.3677, allocations: 7.5 kB / 0.5164 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/0.3678, allocations: 4.125 kB / 0.5164 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003987/0.3682, allocations: 280.3 kB / 0.5166 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.3683, allocations: 100.1 kB / 0.5167 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.888e-05/0.3683, allocations: 8.359 kB / 0.5168 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.3685, allocations: 7.719 kB / 0.5168 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.75e-05/0.3685, allocations: 12.45 kB / 0.5168 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.3685, allocations: 5.469 kB / 0.5168 GB, free: 14.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002556/0.3688, allocations: 160.5 kB / 0.5169 GB, free: 14.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3688, allocations: 0 / 0.5169 GB, free: 14.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004431/0.3692, allocations: 51.47 kB / 0.517 GB, free: 14.08 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.0005949/0.3698, allocations: 0.8175 MB / 0.5178 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003198/0.3702, allocations: 122.5 kB / 0.5179 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.3702, allocations: 0.5625 kB / 0.5179 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.3703, allocations: 47.59 kB / 0.5179 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.3707, allocations: 28.36 kB / 0.518 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003552/0.3743, allocations: 2.313 MB / 0.5202 GB, free: 11.31 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006827/0.375, allocations: 0.756 MB / 0.521 GB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001484/0.3752, allocations: 38.16 kB / 0.521 GB, free: 10.6 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.3753, allocations: 58.42 kB / 0.5211 GB, free: 10.56 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3753, allocations: 0 / 0.5211 GB, free: 10.56 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02324/0.3985, allocations: 3.394 MB / 0.5244 GB, free: 10.03 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.999/8.397, allocations: 13.55 kB / 0.5244 GB, free: 10.02 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > 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