Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",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.001243/0.001243, allocations: 107.9 kB / 17.06 MB, free: 6.008 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.001409/0.001409, allocations: 191 kB / 18 MB, free: 5.09 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.39/1.39, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1874/0.1874, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 63.91 kB / 457.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3413, allocations: 58.05 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.006138/0.3475, allocations: 5.434 MB / 0.5089 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001832/0.3494, allocations: 1.116 MB / 0.51 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002999/0.3497, allocations: 18.03 kB / 0.51 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003105/0.35, allocations: 79.06 kB / 0.5101 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008773/0.351, allocations: 295.6 kB / 0.5104 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.3513, allocations: 148.6 kB / 0.5105 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008447/0.3522, allocations: 0.7009 MB / 0.5112 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003143/0.3525, allocations: 179.1 kB / 0.5114 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005327/0.3531, allocations: 313.9 kB / 0.5117 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005506/0.3536, allocations: 330.2 kB / 0.512 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.11e-05/0.3537, allocations: 33.38 kB / 0.512 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.3538, allocations: 33.84 kB / 0.5121 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002001/0.354, allocations: 157.4 kB / 0.5122 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002964/0.3543, allocations: 238.4 kB / 0.5124 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006947/0.355, allocations: 0.4896 MB / 0.5129 GB, free: 1.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.3551, allocations: 1.672 kB / 0.5129 GB, free: 1.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3551, allocations: 0 / 0.5129 GB, free: 1.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.3551, allocations: 0 / 0.5129 GB, free: 1.488 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001434/0.3565, allocations: 0.8059 MB / 0.5137 GB, free: 0.875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.3566, allocations: 17.39 kB / 0.5137 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.714e-05/0.3567, allocations: 79.97 kB / 0.5138 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.3568, allocations: 59.31 kB / 0.5138 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008562/0.3577, allocations: 468.9 kB / 0.5143 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.345e-05/0.3577, allocations: 23.22 kB / 0.5143 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.203e-05/0.3578, allocations: 37.77 kB / 0.5144 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007575/0.3585, allocations: 457.8 kB / 0.5148 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.3586, allocations: 5.906 kB / 0.5148 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.3586, allocations: 15.75 kB / 0.5148 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.3586, allocations: 9.562 kB / 0.5148 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005349/0.3592, allocations: 308.4 kB / 0.5151 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.3614, allocations: 1.771 MB / 0.5168 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002683/0.3617, allocations: 140.7 kB / 0.517 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.3618, allocations: 66.12 kB / 0.517 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.3618, allocations: 5.656 kB / 0.517 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.3619, allocations: 36.72 kB / 0.5171 GB, free: 14.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 2.585e-06/0.3619, allocations: 0 / 0.5171 GB, free: 14.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.00128/0.3632, allocations: 0.6175 MB / 0.5177 GB, free: 13.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.892e-05/0.3633, allocations: 105.1 kB / 0.5178 GB, free: 13.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005339/0.3638, allocations: 370.8 kB / 0.5181 GB, free: 13.65 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.3639, allocations: 30.23 kB / 0.5182 GB, free: 13.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002282/0.3641, allocations: 288.4 kB / 0.5184 GB, free: 13.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.577e-05/0.3642, allocations: 59.88 kB / 0.5185 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.936e-05/0.3643, allocations: 56.84 kB / 0.5186 GB, free: 13.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3644, allocations: 347.7 kB / 0.5189 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.3645, allocations: 49.44 kB / 0.5189 GB, free: 12.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002194/0.3648, allocations: 197.3 kB / 0.5191 GB, free: 12.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/0.3651, allocations: 267.3 kB / 0.5194 GB, free: 12.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3651, allocations: 2.5 kB / 0.5194 GB, free: 12.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004528/0.3656, allocations: 297 kB / 0.5197 GB, free: 12.35 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.3656, allocations: 7.938 kB / 0.5197 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.3656, allocations: 4.281 kB / 0.5197 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.3656, allocations: 8.812 kB / 0.5197 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002563/0.3659, allocations: 77.02 kB / 0.5198 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.725e-05/0.3659, allocations: 12.8 kB / 0.5198 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/0.3661, allocations: 9.969 kB / 0.5198 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.492e-05/0.3662, allocations: 17.03 kB / 0.5198 GB, free: 12.32 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.0002164/0.3664, allocations: 184.1 kB / 0.52 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.245e-05/0.3665, allocations: 40.75 kB / 0.52 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003458/0.3668, allocations: 181.3 kB / 0.5202 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/0.3668, allocations: 2.406 kB / 0.5202 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.3669, allocations: 6.156 kB / 0.5202 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.3669, allocations: 0.5156 kB / 0.5202 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007879/0.3677, allocations: 0.523 MB / 0.5207 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3677, allocations: 1.281 kB / 0.5207 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.3679, allocations: 32.03 kB / 0.5207 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.3679, allocations: 1.344 kB / 0.5207 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.3679, allocations: 7.672 kB / 0.5207 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.3679, allocations: 1.188 kB / 0.5207 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.3679, allocations: 9.031 kB / 0.5207 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004073/0.3683, allocations: 403.3 kB / 0.5211 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.224e-05/0.3684, allocations: 112.3 kB / 0.5212 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.333e-05/0.3685, allocations: 7.062 kB / 0.5212 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.3686, allocations: 4.969 kB / 0.5213 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.85e-05/0.3687, allocations: 18.59 kB / 0.5213 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.3687, allocations: 4.234 kB / 0.5213 GB, free: 11.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002619/0.369, allocations: 252 kB / 0.5215 GB, free: 11.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.369, allocations: 5.031 kB / 0.5215 GB, free: 11.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004457/0.3694, allocations: 72.25 kB / 0.5216 GB, free: 11.05 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * 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.0006213/0.37, allocations: 0.9383 MB / 0.5225 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002896/0.3703, allocations: 152.2 kB / 0.5226 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3704, allocations: 5.156 kB / 0.5227 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.3705, allocations: 59.16 kB / 0.5227 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007157/0.3712, allocations: 92.77 kB / 0.5228 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004233/0.3755, allocations: 3.412 MB / 0.5261 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004577/0.376, allocations: 0.8445 MB / 0.527 GB, free: 6.953 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000219/0.3762, allocations: 46.66 kB / 0.527 GB, free: 6.938 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.3764, allocations: 147.1 kB / 0.5271 GB, free: 6.832 MB / 398.1 MB Notification: Performance of SimCode: time 2.525e-06/0.3764, allocations: 5.219 kB / 0.5271 GB, free: 6.828 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02951/0.4059, allocations: 7.052 MB / 0.534 GB, free: 4.766 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.328/8.734, allocations: 13.3 kB / 0.534 GB, free: 4.754 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches