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.001088/0.001088, allocations: 105.8 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.001033/0.001033, allocations: 195 kB / 18 MB, free: 5.105 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.329/1.329, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1795/0.1795, allocations: 38.04 MB / 329.9 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 59.91 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3609, allocations: 58.05 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004348/0.3653, allocations: 3.446 MB / 0.507 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001975/0.3673, allocations: 1.514 MB / 0.5084 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.3675, allocations: 10.03 kB / 0.5085 GB, free: 4.027 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008295/0.3683, allocations: 265 kB / 0.5087 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006456/0.3689, allocations: 274.8 kB / 0.509 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.3693, allocations: 130.4 kB / 0.5091 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005409/0.3699, allocations: 341.5 kB / 0.5094 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003402/0.3702, allocations: 136.9 kB / 0.5096 GB, free: 3.469 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000264/0.3705, allocations: 153.2 kB / 0.5097 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002472/0.3707, allocations: 145.5 kB / 0.5098 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.965e-05/0.3708, allocations: 17.19 kB / 0.5099 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007046/0.3715, allocations: 333.5 kB / 0.5102 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.3716, allocations: 97.75 kB / 0.5103 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001403/0.3718, allocations: 100.4 kB / 0.5104 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005941/0.3724, allocations: 356.5 kB / 0.5107 GB, free: 2.996 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3724, allocations: 5.25 kB / 0.5107 GB, free: 2.992 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3724, allocations: 0 / 0.5107 GB, free: 2.992 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.3724, allocations: 0 / 0.5107 GB, free: 2.992 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.0006903/0.3731, allocations: 0.5041 MB / 0.5112 GB, free: 2.535 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3732, allocations: 13.73 kB / 0.5112 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.231e-05/0.3732, allocations: 58.81 kB / 0.5113 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009271/0.3742, allocations: 104.9 kB / 0.5114 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00032/0.3745, allocations: 278.3 kB / 0.5116 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.3745, allocations: 11.72 kB / 0.5116 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.03e-05/0.3746, allocations: 23.73 kB / 0.5117 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004742/0.3751, allocations: 322.6 kB / 0.512 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3751, allocations: 0 / 0.512 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.3751, allocations: 6.984 kB / 0.512 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-05/0.3752, allocations: 18.19 kB / 0.512 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004447/0.3756, allocations: 306.2 kB / 0.5123 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.3773, allocations: 1.282 MB / 0.5135 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003279/0.3776, allocations: 204.3 kB / 0.5137 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.813e-05/0.3777, allocations: 42.52 kB / 0.5138 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.313e-05/0.3778, allocations: 5.797 kB / 0.5138 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.3778, allocations: 33.39 kB / 0.5138 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.3778, allocations: 0 / 0.5138 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003717/0.3782, allocations: 146.2 kB / 0.514 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.3782, allocations: 78.95 kB / 0.514 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.3785, allocations: 218.2 kB / 0.5142 GB, free: 388 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.3785, allocations: 26.77 kB / 0.5143 GB, free: 356 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.3786, allocations: 166.6 kB / 0.5144 GB, free: 204 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.3787, allocations: 31.77 kB / 0.5145 GB, free: 180 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.221e-05/0.3788, allocations: 47.72 kB / 0.5145 GB, free: 144 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3789, allocations: 324.6 kB / 0.5148 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.379, allocations: 47.52 kB / 0.5149 GB, free: 15.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.3792, allocations: 137 kB / 0.515 GB, free: 15.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.3794, allocations: 196.8 kB / 0.5152 GB, free: 15.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3795, allocations: 1.062 kB / 0.5152 GB, free: 15.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003455/0.3798, allocations: 208.3 kB / 0.5154 GB, free: 15.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.3798, allocations: 7.094 kB / 0.5154 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3799, allocations: 3.172 kB / 0.5154 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.3799, allocations: 5.25 kB / 0.5154 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.3801, allocations: 51.59 kB / 0.5154 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.3801, allocations: 9.078 kB / 0.5154 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.3802, allocations: 20.3 kB / 0.5155 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.3802, allocations: 8.797 kB / 0.5155 GB, free: 15.36 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.0001575/0.3804, allocations: 160 kB / 0.5156 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.461e-05/0.3805, allocations: 15.5 kB / 0.5156 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002545/0.3807, allocations: 119.7 kB / 0.5158 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.3807, allocations: 1.312 kB / 0.5158 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.3807, allocations: 5.828 kB / 0.5158 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3808, allocations: 4.797 kB / 0.5158 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007858/0.3816, allocations: 0.5811 MB / 0.5163 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.3816, allocations: 4.266 kB / 0.5163 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.663e-05/0.3817, allocations: 17.3 kB / 0.5164 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/0.3817, allocations: 7.859 kB / 0.5164 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.3817, allocations: 3.969 kB / 0.5164 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.3817, allocations: 7.594 kB / 0.5164 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3817, allocations: 2.812 kB / 0.5164 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002754/0.382, allocations: 286.7 kB / 0.5166 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.069e-05/0.3821, allocations: 93.73 kB / 0.5167 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.3821, allocations: 9.641 kB / 0.5167 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.3822, allocations: 7.594 kB / 0.5168 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.171e-05/0.3823, allocations: 8.484 kB / 0.5168 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.3823, allocations: 9.594 kB / 0.5168 GB, free: 14.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001393/0.3824, allocations: 159.3 kB / 0.5169 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3824, allocations: 4 kB / 0.5169 GB, free: 14.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003665/0.3828, allocations: 53.22 kB / 0.517 GB, free: 14.16 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.0005199/0.3833, allocations: 0.8161 MB / 0.5178 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003028/0.3836, allocations: 122.8 kB / 0.5179 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3837, allocations: 0.5938 kB / 0.5179 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.597e-05/0.3838, allocations: 48.91 kB / 0.5179 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004287/0.3842, allocations: 35.08 kB / 0.518 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.3868, allocations: 2.319 MB / 0.5202 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003646/0.3872, allocations: 0.7521 MB / 0.521 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001101/0.3873, allocations: 37.94 kB / 0.521 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.794e-05/0.3874, allocations: 58.17 kB / 0.5211 GB, free: 10.63 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3874, allocations: 0 / 0.5211 GB, free: 10.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.4075, allocations: 3.395 MB / 0.5244 GB, free: 10.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.538/7.946, allocations: 9.547 kB / 0.5244 GB, free: 10.1 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