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.001786/0.001786, allocations: 109 kB / 17.06 MB, free: 5.961 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.001924/0.001925, allocations: 200 kB / 18 MB, free: 5.051 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.438/1.438, allocations: 222.9 MB / 241.7 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1807/0.1807, allocations: 38.04 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 67.91 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3535, allocations: 58.05 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.005986/0.3596, allocations: 5.436 MB / 0.5089 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.3615, allocations: 1.112 MB / 0.51 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002606/0.3618, allocations: 18.53 kB / 0.51 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002464/0.362, allocations: 79.16 kB / 0.5101 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007135/0.3628, allocations: 297.9 kB / 0.5104 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003382/0.3631, allocations: 141 kB / 0.5105 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006893/0.3638, allocations: 0.6983 MB / 0.5112 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002904/0.3641, allocations: 185.2 kB / 0.5114 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004325/0.3646, allocations: 308.6 kB / 0.5117 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005313/0.3651, allocations: 326 kB / 0.512 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.784e-05/0.3652, allocations: 32.94 kB / 0.512 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.122e-05/0.3653, allocations: 33.91 kB / 0.512 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001813/0.3655, allocations: 151.7 kB / 0.5122 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002415/0.3657, allocations: 247.3 kB / 0.5124 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006069/0.3663, allocations: 494.6 kB / 0.5129 GB, free: 1.453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3663, allocations: 4 kB / 0.5129 GB, free: 1.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3664, allocations: 0 / 0.5129 GB, free: 1.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.976e-06/0.3664, allocations: 5.438 kB / 0.5129 GB, free: 1.445 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.001224/0.3676, allocations: 0.8049 MB / 0.5137 GB, free: 0.832 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.3676, allocations: 14.33 kB / 0.5137 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.574e-05/0.3677, allocations: 75.36 kB / 0.5138 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.165e-05/0.3678, allocations: 54.36 kB / 0.5138 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006229/0.3684, allocations: 473.1 kB / 0.5143 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.3685, allocations: 28.69 kB / 0.5143 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.772e-05/0.3685, allocations: 40.33 kB / 0.5143 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006194/0.3692, allocations: 458.2 kB / 0.5148 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.3692, allocations: 1.125 kB / 0.5148 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.3692, allocations: 17.45 kB / 0.5148 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.3693, allocations: 9.25 kB / 0.5148 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004562/0.3697, allocations: 308.1 kB / 0.5151 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.3719, allocations: 1.771 MB / 0.5168 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002553/0.3722, allocations: 144.2 kB / 0.517 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.3723, allocations: 54.03 kB / 0.517 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.3723, allocations: 2.469 kB / 0.517 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.3724, allocations: 37.09 kB / 0.5171 GB, free: 14.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.664e-06/0.3724, allocations: 0 / 0.5171 GB, free: 14.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.00119/0.3736, allocations: 0.6207 MB / 0.5177 GB, free: 13.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.3737, allocations: 109.2 kB / 0.5178 GB, free: 13.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004775/0.3742, allocations: 370.5 kB / 0.5181 GB, free: 13.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.3742, allocations: 30.77 kB / 0.5182 GB, free: 13.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002557/0.3745, allocations: 283.8 kB / 0.5184 GB, free: 13.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.914e-05/0.3746, allocations: 73.06 kB / 0.5185 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.3747, allocations: 56.38 kB / 0.5185 GB, free: 13.26 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002007/0.3749, allocations: 347.8 kB / 0.5189 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.375, allocations: 49.27 kB / 0.5189 GB, free: 12.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002517/0.3753, allocations: 189.4 kB / 0.5191 GB, free: 12.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003712/0.3757, allocations: 271.4 kB / 0.5194 GB, free: 12.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3757, allocations: 1.406 kB / 0.5194 GB, free: 12.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004389/0.3761, allocations: 298.2 kB / 0.5197 GB, free: 12.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3761, allocations: 7.453 kB / 0.5197 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.3761, allocations: 9.031 kB / 0.5197 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.3762, allocations: 7.031 kB / 0.5197 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/0.3764, allocations: 74.2 kB / 0.5197 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.3765, allocations: 11.78 kB / 0.5198 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.3766, allocations: 10.62 kB / 0.5198 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/0.3767, allocations: 21.55 kB / 0.5198 GB, free: 12.28 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.0002028/0.3769, allocations: 183.3 kB / 0.52 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.644e-05/0.377, allocations: 40.64 kB / 0.52 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003057/0.3773, allocations: 169.3 kB / 0.5202 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.187e-06/0.3773, allocations: 2.344 kB / 0.5202 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3773, allocations: 1.719 kB / 0.5202 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3773, allocations: 1.609 kB / 0.5202 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007602/0.3781, allocations: 0.5219 MB / 0.5207 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.3781, allocations: 2.062 kB / 0.5207 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.3783, allocations: 39.44 kB / 0.5207 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.3783, allocations: 2.031 kB / 0.5207 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.3783, allocations: 2.922 kB / 0.5207 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3783, allocations: 2.688 kB / 0.5207 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.3783, allocations: 4.844 kB / 0.5207 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005572/0.3789, allocations: 407.2 kB / 0.5211 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.379, allocations: 116.6 kB / 0.5212 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.643e-05/0.3791, allocations: 8 kB / 0.5212 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.3793, allocations: 9.094 kB / 0.5212 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.736e-05/0.3793, allocations: 13.77 kB / 0.5213 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.3793, allocations: 5.312 kB / 0.5213 GB, free: 11.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003246/0.3796, allocations: 255.8 kB / 0.5215 GB, free: 11.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3797, allocations: 4 kB / 0.5215 GB, free: 11.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000467/0.3801, allocations: 73.66 kB / 0.5216 GB, free: 11.01 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.0007739/0.3809, allocations: 0.9377 MB / 0.5225 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003142/0.3812, allocations: 152.9 kB / 0.5226 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3812, allocations: 0 / 0.5226 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.817e-05/0.3813, allocations: 56.33 kB / 0.5227 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007064/0.3821, allocations: 99.33 kB / 0.5228 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004782/0.3869, allocations: 3.416 MB / 0.5261 GB, free: 7.625 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006827/0.3876, allocations: 0.8394 MB / 0.5269 GB, free: 6.914 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002604/0.3879, allocations: 56.38 kB / 0.527 GB, free: 6.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002292/0.3881, allocations: 149.6 kB / 0.5271 GB, free: 6.781 MB / 398.1 MB Notification: Performance of SimCode: time 3.056e-06/0.3881, allocations: 0 / 0.5271 GB, free: 6.781 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03281/0.4209, allocations: 7.043 MB / 0.534 GB, free: 4.785 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.716/9.137, allocations: 8.406 kB / 0.534 GB, free: 4.781 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