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.001623/0.001624, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.00187/0.00187, allocations: 194.9 kB / 18 MB, free: 5.172 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.432/1.432, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1808/0.1808, allocations: 38.04 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 59.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3583, allocations: 58.06 MB / 0.5036 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004367/0.3628, allocations: 3.424 MB / 0.507 GB, free: 4.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001745/0.3645, allocations: 1.535 MB / 0.5085 GB, free: 3.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.3647, allocations: 4.438 kB / 0.5085 GB, free: 3.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008103/0.3655, allocations: 260.9 kB / 0.5087 GB, free: 3.746 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005843/0.3661, allocations: 281.5 kB / 0.509 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.3664, allocations: 129.8 kB / 0.5091 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003685/0.3668, allocations: 336.9 kB / 0.5094 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002712/0.367, allocations: 130.2 kB / 0.5096 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.3673, allocations: 154.7 kB / 0.5097 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002145/0.3675, allocations: 150.6 kB / 0.5098 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.921e-05/0.3675, allocations: 25.44 kB / 0.5099 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004669/0.368, allocations: 336.8 kB / 0.5102 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.3681, allocations: 95.23 kB / 0.5103 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.3682, allocations: 102.1 kB / 0.5104 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004491/0.3687, allocations: 359.2 kB / 0.5107 GB, free: 2.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3687, allocations: 0 / 0.5107 GB, free: 2.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3687, allocations: 0 / 0.5107 GB, free: 2.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.3687, allocations: 1.062 kB / 0.5107 GB, free: 2.863 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.0005227/0.3692, allocations: 0.5191 MB / 0.5112 GB, free: 2.391 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.3693, allocations: 9.344 kB / 0.5112 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.64e-05/0.3693, allocations: 55.03 kB / 0.5113 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000875/0.3702, allocations: 103.4 kB / 0.5114 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.3705, allocations: 271.3 kB / 0.5116 GB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.3705, allocations: 12.06 kB / 0.5117 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.414e-05/0.3706, allocations: 27.28 kB / 0.5117 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004747/0.3711, allocations: 317.7 kB / 0.512 GB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3711, allocations: 5.094 kB / 0.512 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.513e-05/0.3711, allocations: 7.828 kB / 0.512 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.208e-05/0.3712, allocations: 14.27 kB / 0.512 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004319/0.3716, allocations: 309.4 kB / 0.5123 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.373, allocations: 1.285 MB / 0.5136 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.3733, allocations: 201 kB / 0.5138 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.316e-05/0.3734, allocations: 43.42 kB / 0.5138 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.3734, allocations: 5.125 kB / 0.5138 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.783e-05/0.3734, allocations: 38.2 kB / 0.5138 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.3734, allocations: 0 / 0.5138 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002869/0.3737, allocations: 132.9 kB / 0.514 GB, free: 500 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.3737, allocations: 80.22 kB / 0.514 GB, free: 404 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.3739, allocations: 218.4 kB / 0.5143 GB, free: 260 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.937e-06/0.3739, allocations: 33.83 kB / 0.5143 GB, free: 220 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.878e-05/0.374, allocations: 171.9 kB / 0.5144 GB, free: 64 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.374, allocations: 36.5 kB / 0.5145 GB, free: 36 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.364e-05/0.3741, allocations: 43.94 kB / 0.5145 GB, free: 4 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3742, allocations: 328.2 kB / 0.5148 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.789e-05/0.3743, allocations: 38.86 kB / 0.5149 GB, free: 15.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.3744, allocations: 148.6 kB / 0.515 GB, free: 15.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002152/0.3747, allocations: 196.8 kB / 0.5152 GB, free: 15.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3747, allocations: 1.344 kB / 0.5152 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002884/0.375, allocations: 204 kB / 0.5154 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.375, allocations: 6.812 kB / 0.5154 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.375, allocations: 4.328 kB / 0.5154 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.375, allocations: 4.438 kB / 0.5154 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.3752, allocations: 50.09 kB / 0.5155 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.3752, allocations: 6.578 kB / 0.5155 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.3753, allocations: 20.27 kB / 0.5155 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.3754, allocations: 12.56 kB / 0.5155 GB, free: 15.22 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.0001344/0.3755, allocations: 163.5 kB / 0.5157 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.195e-05/0.3755, allocations: 15.97 kB / 0.5157 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002093/0.3758, allocations: 119.7 kB / 0.5158 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3758, allocations: 2 kB / 0.5158 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3758, allocations: 1.828 kB / 0.5158 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3758, allocations: 0.7656 kB / 0.5158 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007405/0.3765, allocations: 0.573 MB / 0.5163 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.3765, allocations: 3.719 kB / 0.5164 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.891e-05/0.3766, allocations: 21.48 kB / 0.5164 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.3766, allocations: 8.219 kB / 0.5164 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.3767, allocations: 12.38 kB / 0.5164 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.3767, allocations: 8.547 kB / 0.5164 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.3767, allocations: 2.719 kB / 0.5164 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.3769, allocations: 278.1 kB / 0.5167 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.621e-05/0.377, allocations: 99.03 kB / 0.5168 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.007e-05/0.3771, allocations: 8.203 kB / 0.5168 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.3772, allocations: 4.172 kB / 0.5168 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.437e-05/0.3772, allocations: 20.75 kB / 0.5168 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.3772, allocations: 5.688 kB / 0.5168 GB, free: 14.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000128/0.3774, allocations: 154.5 kB / 0.5169 GB, free: 14.04 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3774, allocations: 0 / 0.5169 GB, free: 14.04 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003599/0.3777, allocations: 52.66 kB / 0.517 GB, free: 14.03 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.0005678/0.3783, allocations: 0.8281 MB / 0.5178 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003273/0.3786, allocations: 116.5 kB / 0.5179 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3787, allocations: 0.5 kB / 0.5179 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.3788, allocations: 50.56 kB / 0.518 GB, free: 13.17 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004389/0.3792, allocations: 29.08 kB / 0.518 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.382, allocations: 2.327 MB / 0.5203 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.3823, allocations: 0.757 MB / 0.521 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.3824, allocations: 38.11 kB / 0.521 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.672e-05/0.3825, allocations: 57.61 kB / 0.5211 GB, free: 10.48 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3825, allocations: 0 / 0.5211 GB, free: 10.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02018/0.4027, allocations: 3.366 MB / 0.5244 GB, free: 9.945 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.036/8.439, allocations: 9.547 kB / 0.5244 GB, free: 9.938 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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