Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",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.001752/0.001752, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001972/0.001972, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1898/0.1898, allocations: 38.05 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 67.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3334, allocations: 58.06 MB / 0.5036 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005022/0.3384, allocations: 4.421 MB / 0.5079 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.3403, allocations: 1.416 MB / 0.5093 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.3405, allocations: 13.22 kB / 0.5093 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009349/0.3415, allocations: 386.7 kB / 0.5097 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004792/0.3419, allocations: 255.9 kB / 0.5099 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005473/0.3425, allocations: 235.4 kB / 0.5102 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000573/0.3431, allocations: 0.5614 MB / 0.5107 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003902/0.3435, allocations: 279.2 kB / 0.511 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003147/0.3438, allocations: 257.7 kB / 0.5112 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005053/0.3443, allocations: 354.5 kB / 0.5116 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.277e-05/0.3444, allocations: 43.72 kB / 0.5116 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004454/0.3449, allocations: 224.7 kB / 0.5118 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002656/0.3451, allocations: 244.1 kB / 0.512 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000255/0.3454, allocations: 258.6 kB / 0.5123 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008157/0.3462, allocations: 0.6763 MB / 0.513 GB, free: 2.062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3462, allocations: 0.7031 kB / 0.513 GB, free: 2.062 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3462, allocations: 1.156 kB / 0.513 GB, free: 2.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.3463, allocations: 0 / 0.513 GB, free: 2.062 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001264/0.3475, allocations: 0.7873 MB / 0.5137 GB, free: 1.465 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3476, allocations: 14.2 kB / 0.5137 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.099e-05/0.3477, allocations: 83.33 kB / 0.5138 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005365/0.3482, allocations: 90.2 kB / 0.5139 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005965/0.3488, allocations: 427.7 kB / 0.5143 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.3489, allocations: 33.22 kB / 0.5143 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.349, allocations: 49.36 kB / 0.5144 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000979/0.35, allocations: 0.6786 MB / 0.5151 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.35, allocations: 1.344 kB / 0.5151 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.693e-05/0.3501, allocations: 16.95 kB / 0.5151 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000174/0.3502, allocations: 51.02 kB / 0.5151 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.3513, allocations: 0.6725 MB / 0.5158 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003635/0.3549, allocations: 2.518 MB / 0.5182 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005653/0.3555, allocations: 338.2 kB / 0.5186 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003271/0.3559, allocations: 226.4 kB / 0.5188 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.48e-05/0.3559, allocations: 8.141 kB / 0.5188 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.3559, allocations: 41.39 kB / 0.5188 GB, free: 14.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.954e-06/0.356, allocations: 0 / 0.5188 GB, free: 14.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002171/0.3581, allocations: 1.36 MB / 0.5202 GB, free: 13.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.3582, allocations: 85.2 kB / 0.5202 GB, free: 13.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003277/0.3585, allocations: 301.7 kB / 0.5205 GB, free: 13.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.3586, allocations: 30.8 kB / 0.5205 GB, free: 13.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002238/0.3588, allocations: 269.8 kB / 0.5208 GB, free: 13.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.359, allocations: 159.6 kB / 0.521 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.3591, allocations: 90.75 kB / 0.521 GB, free: 13.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3593, allocations: 349.6 kB / 0.5214 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003099/0.3596, allocations: 196.5 kB / 0.5216 GB, free: 12.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004369/0.3601, allocations: 364.8 kB / 0.5219 GB, free: 12.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007843/0.3609, allocations: 0.6105 MB / 0.5225 GB, free: 12.08 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3609, allocations: 2.125 kB / 0.5225 GB, free: 12.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009683/0.3618, allocations: 0.6348 MB / 0.5231 GB, free: 11.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.3619, allocations: 7.094 kB / 0.5231 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3619, allocations: 10.59 kB / 0.5231 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.3619, allocations: 9.453 kB / 0.5232 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004181/0.3623, allocations: 115.6 kB / 0.5233 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.3624, allocations: 12.36 kB / 0.5233 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.3626, allocations: 21.97 kB / 0.5233 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.267e-05/0.3627, allocations: 22.88 kB / 0.5233 GB, free: 11.8 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.0002633/0.3629, allocations: 215.2 kB / 0.5235 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.889e-05/0.363, allocations: 40.48 kB / 0.5236 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008011/0.3639, allocations: 499.1 kB / 0.524 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.313e-05/0.3639, allocations: 17.06 kB / 0.5241 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.3639, allocations: 0 / 0.5241 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.84e-06/0.3639, allocations: 2.375 kB / 0.5241 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001777/0.3657, allocations: 1.102 MB / 0.5251 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3657, allocations: 2.797 kB / 0.5251 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003473/0.3661, allocations: 75.78 kB / 0.5252 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3661, allocations: 3.109 kB / 0.5252 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.3661, allocations: 8.922 kB / 0.5252 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.3661, allocations: 3.219 kB / 0.5252 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3661, allocations: 1.406 kB / 0.5252 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.3673, allocations: 0.8396 MB / 0.526 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.092e-05/0.3674, allocations: 109.5 kB / 0.5262 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.71e-05/0.3674, allocations: 11.95 kB / 0.5262 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.3676, allocations: 17.25 kB / 0.5262 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.244e-05/0.3677, allocations: 28.3 kB / 0.5262 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.3677, allocations: 10.33 kB / 0.5262 GB, free: 10.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002318/0.368, allocations: 213 kB / 0.5264 GB, free: 10.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.368, allocations: 4 kB / 0.5264 GB, free: 10.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005027/0.3685, allocations: 111.1 kB / 0.5265 GB, free: 10.11 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.001565/0.3701, allocations: 1.402 MB / 0.5279 GB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007976/0.3709, allocations: 490.9 kB / 0.5284 GB, free: 9.023 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.3709, allocations: 4.375 kB / 0.5284 GB, free: 9.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003276/0.3712, allocations: 231 kB / 0.5286 GB, free: 8.941 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00055/0.3718, allocations: 69.44 kB / 0.5287 GB, free: 8.914 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005792/0.3776, allocations: 4.407 MB / 0.533 GB, free: 6.191 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006174/0.3782, allocations: 0.8685 MB / 0.5338 GB, free: 5.477 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000371/0.3786, allocations: 126.1 kB / 0.5339 GB, free: 5.461 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002575/0.3789, allocations: 147.5 kB / 0.5341 GB, free: 5.352 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3789, allocations: 0 / 0.5341 GB, free: 5.352 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03213/0.411, allocations: 7.924 MB / 0.5418 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.597/9.008, allocations: 12.33 kB / 0.5418 GB, free: 0.875 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches