Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",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.001325/0.001325, allocations: 108 kB / 17.06 MB, free: 5.82 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.001261/0.001261, allocations: 195.9 kB / 18 MB, free: 4.965 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.444/1.444, 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.1854/0.1854, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 67.89 kB / 457.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3346, allocations: 58.05 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.00532/0.34, allocations: 4.428 MB / 0.5079 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002955/0.343, allocations: 1.417 MB / 0.5093 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002903/0.3433, allocations: 17 kB / 0.5093 GB, free: 3.383 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001256/0.3446, allocations: 380.8 kB / 0.5097 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004974/0.3451, allocations: 222.2 kB / 0.5099 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000638/0.3457, allocations: 248 kB / 0.5101 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005303/0.3463, allocations: 0.5248 MB / 0.5107 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003973/0.3467, allocations: 286.2 kB / 0.5109 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003257/0.347, allocations: 240.8 kB / 0.5112 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004113/0.3474, allocations: 295.6 kB / 0.5114 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.87e-05/0.3475, allocations: 31.72 kB / 0.5115 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002893/0.3478, allocations: 143.2 kB / 0.5116 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002141/0.348, allocations: 220.1 kB / 0.5118 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002107/0.3482, allocations: 240.9 kB / 0.512 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006758/0.3489, allocations: 0.5683 MB / 0.5126 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3489, allocations: 1.406 kB / 0.5126 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3489, allocations: 0 / 0.5126 GB, free: 1.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.3489, allocations: 0 / 0.5126 GB, free: 1.91 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001141/0.3501, allocations: 0.7487 MB / 0.5133 GB, free: 1.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.3501, allocations: 13.83 kB / 0.5133 GB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.26e-05/0.3502, allocations: 81.56 kB / 0.5134 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005137/0.3507, allocations: 85.84 kB / 0.5135 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005904/0.3513, allocations: 412.2 kB / 0.5139 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.3514, allocations: 29.12 kB / 0.5139 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.3515, allocations: 54.52 kB / 0.514 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000839/0.3524, allocations: 0.6172 MB / 0.5146 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.3524, allocations: 2.141 kB / 0.5146 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.469e-05/0.3524, allocations: 21.47 kB / 0.5146 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001106/0.3526, allocations: 32.59 kB / 0.5146 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007632/0.3533, allocations: 482.3 kB / 0.5151 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0035/0.3568, allocations: 2.901 MB / 0.5179 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004944/0.3574, allocations: 228.6 kB / 0.5181 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000263/0.3576, allocations: 152.7 kB / 0.5183 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.3577, allocations: 4.672 kB / 0.5183 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.3577, allocations: 40.67 kB / 0.5183 GB, free: 13.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.194e-06/0.3577, allocations: 0 / 0.5183 GB, free: 13.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001721/0.3594, allocations: 0.9708 MB / 0.5193 GB, free: 13.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/0.3596, allocations: 82.09 kB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003797/0.36, allocations: 321.7 kB / 0.5197 GB, free: 13.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.027e-05/0.36, allocations: 31.83 kB / 0.5197 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/0.3603, allocations: 284.9 kB / 0.52 GB, free: 12.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.3604, allocations: 107.5 kB / 0.5201 GB, free: 12.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.3605, allocations: 91.39 kB / 0.5202 GB, free: 12.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.3607, allocations: 351.9 kB / 0.5205 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002399/0.361, allocations: 145.1 kB / 0.5206 GB, free: 12.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004224/0.3614, allocations: 352.6 kB / 0.521 GB, free: 11.92 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007068/0.3621, allocations: 0.5142 MB / 0.5215 GB, free: 11.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3621, allocations: 2.375 kB / 0.5215 GB, free: 11.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009111/0.363, allocations: 0.5304 MB / 0.522 GB, free: 11.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.3631, allocations: 7.125 kB / 0.522 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.3631, allocations: 7.312 kB / 0.522 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.3631, allocations: 8.75 kB / 0.522 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004259/0.3635, allocations: 119.6 kB / 0.5221 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.331e-05/0.3636, allocations: 15.28 kB / 0.5221 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.3638, allocations: 29.86 kB / 0.5222 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.3639, allocations: 22.02 kB / 0.5222 GB, free: 11.29 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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.0002668/0.3642, allocations: 223.5 kB / 0.5224 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.189e-05/0.3642, allocations: 30.94 kB / 0.5224 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006177/0.3649, allocations: 365.6 kB / 0.5228 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.3649, allocations: 4.219 kB / 0.5228 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.3649, allocations: 0 / 0.5228 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.3649, allocations: 4.766 kB / 0.5228 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/0.3664, allocations: 0.8909 MB / 0.5237 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.3664, allocations: 1.531 kB / 0.5237 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/0.3667, allocations: 59.5 kB / 0.5237 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.3668, allocations: 1.656 kB / 0.5237 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.3668, allocations: 18.31 kB / 0.5237 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3668, allocations: 2.75 kB / 0.5237 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.3668, allocations: 1.344 kB / 0.5237 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008295/0.3677, allocations: 0.5865 MB / 0.5243 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001494/0.3678, allocations: 115.8 kB / 0.5244 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.599e-05/0.3679, allocations: 13.28 kB / 0.5244 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.3681, allocations: 15.66 kB / 0.5245 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.813e-05/0.3681, allocations: 18.78 kB / 0.5245 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.689e-05/0.3682, allocations: 17.53 kB / 0.5245 GB, free: 9.926 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002291/0.3684, allocations: 219 kB / 0.5247 GB, free: 9.812 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3684, allocations: 0 / 0.5247 GB, free: 9.812 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004776/0.3689, allocations: 93.62 kB / 0.5248 GB, free: 9.801 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 (31): * Single equations (assignments): 30 * 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.001132/0.37, allocations: 1.131 MB / 0.5259 GB, free: 8.938 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006326/0.3707, allocations: 366 kB / 0.5262 GB, free: 8.828 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3707, allocations: 1.562 kB / 0.5262 GB, free: 8.828 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000301/0.371, allocations: 143.8 kB / 0.5264 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005393/0.3715, allocations: 61.05 kB / 0.5264 GB, free: 8.766 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00513/0.3767, allocations: 3.993 MB / 0.5303 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005294/0.3772, allocations: 0.8497 MB / 0.5312 GB, free: 5.355 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003364/0.3776, allocations: 136.5 kB / 0.5313 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.3778, allocations: 143.9 kB / 0.5314 GB, free: 5.23 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3778, allocations: 0 / 0.5314 GB, free: 5.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0328/0.4106, allocations: 7.09 MB / 0.5384 GB, free: 2.465 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.661/9.071, allocations: 12.95 kB / 0.5384 GB, free: 2.457 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_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_ReferenceInertial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches