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.001625/0.001625, allocations: 105.5 kB / 17.06 MB, free: 6.016 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.001735/0.001735, allocations: 192 kB / 18 MB, free: 5.102 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.435/1.435, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1941/0.1941, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.91 kB / 457.6 MB, free: 7.387 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3366, allocations: 58.07 MB / 0.5036 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006562/0.3432, allocations: 4.417 MB / 0.5079 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002215/0.3455, allocations: 1.421 MB / 0.5093 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002863/0.3458, allocations: 17.38 kB / 0.5093 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.3469, allocations: 376.5 kB / 0.5097 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005593/0.3475, allocations: 226.8 kB / 0.5099 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000656/0.3481, allocations: 237.4 kB / 0.5101 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006053/0.3487, allocations: 0.5445 MB / 0.5107 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004043/0.3492, allocations: 277.3 kB / 0.5109 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003534/0.3495, allocations: 246 kB / 0.5112 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004286/0.35, allocations: 292 kB / 0.5114 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.949e-05/0.35, allocations: 31.91 kB / 0.5115 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003267/0.3504, allocations: 143.2 kB / 0.5116 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002139/0.3506, allocations: 228.7 kB / 0.5118 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000226/0.3508, allocations: 232.8 kB / 0.512 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000706/0.3515, allocations: 0.5722 MB / 0.5126 GB, free: 1.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3516, allocations: 1.062 kB / 0.5126 GB, free: 1.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3516, allocations: 0.6562 kB / 0.5126 GB, free: 1.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.936e-05/0.3516, allocations: 0 / 0.5126 GB, free: 1.859 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.001325/0.3529, allocations: 0.7406 MB / 0.5133 GB, free: 1.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.353, allocations: 13.14 kB / 0.5133 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001093/0.3531, allocations: 90.98 kB / 0.5134 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005933/0.3537, allocations: 81.45 kB / 0.5135 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007762/0.3545, allocations: 411.7 kB / 0.5139 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.278e-05/0.3545, allocations: 29.69 kB / 0.5139 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.3547, allocations: 46.64 kB / 0.514 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009463/0.3556, allocations: 0.6217 MB / 0.5146 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.3557, allocations: 11.77 kB / 0.5146 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.281e-05/0.3557, allocations: 20.66 kB / 0.5146 GB, free: 488 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001147/0.3558, allocations: 32.53 kB / 0.5146 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007292/0.3566, allocations: 485.7 kB / 0.5151 GB, free: 324 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003488/0.3601, allocations: 2.898 MB / 0.5179 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004714/0.3606, allocations: 224.5 kB / 0.5181 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.3608, allocations: 145.8 kB / 0.5183 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.3609, allocations: 7.922 kB / 0.5183 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.3609, allocations: 41.41 kB / 0.5183 GB, free: 13.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.644e-06/0.3609, allocations: 0 / 0.5183 GB, free: 13.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001736/0.3627, allocations: 0.9667 MB / 0.5193 GB, free: 13.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.3627, allocations: 84.94 kB / 0.5194 GB, free: 13.13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003751/0.3631, allocations: 323.6 kB / 0.5197 GB, free: 12.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.3632, allocations: 35.27 kB / 0.5197 GB, free: 12.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.3633, allocations: 281 kB / 0.52 GB, free: 12.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.355e-05/0.3635, allocations: 113 kB / 0.5201 GB, free: 12.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.3636, allocations: 92.22 kB / 0.5202 GB, free: 12.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3637, allocations: 344 kB / 0.5205 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/0.364, allocations: 148.2 kB / 0.5206 GB, free: 12.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003538/0.3643, allocations: 354.6 kB / 0.521 GB, free: 11.87 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006477/0.365, allocations: 0.5179 MB / 0.5215 GB, free: 11.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.365, allocations: 2.219 kB / 0.5215 GB, free: 11.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000825/0.3658, allocations: 0.5245 MB / 0.522 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.3659, allocations: 8.859 kB / 0.522 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.3659, allocations: 6.531 kB / 0.522 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.36e-05/0.3659, allocations: 10.78 kB / 0.522 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.3664, allocations: 119.4 kB / 0.5221 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.793e-05/0.3664, allocations: 15.02 kB / 0.5221 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002822/0.3667, allocations: 26.28 kB / 0.5222 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.916e-05/0.3667, allocations: 30.62 kB / 0.5222 GB, free: 11.24 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.0002519/0.367, allocations: 217.3 kB / 0.5224 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.575e-05/0.3671, allocations: 30.88 kB / 0.5224 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006112/0.3677, allocations: 364 kB / 0.5228 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.3677, allocations: 8.344 kB / 0.5228 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3677, allocations: 0 / 0.5228 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.3677, allocations: 5.047 kB / 0.5228 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/0.3693, allocations: 0.8892 MB / 0.5237 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.3693, allocations: 1.375 kB / 0.5237 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003343/0.3697, allocations: 63.56 kB / 0.5237 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.3697, allocations: 6.688 kB / 0.5237 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.3697, allocations: 13.56 kB / 0.5237 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.3697, allocations: 2.75 kB / 0.5237 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.3698, allocations: 9.406 kB / 0.5238 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000841/0.3706, allocations: 0.579 MB / 0.5243 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.3707, allocations: 107.1 kB / 0.5244 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.408e-05/0.3708, allocations: 16.92 kB / 0.5244 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.371, allocations: 15.77 kB / 0.5245 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.474e-05/0.3711, allocations: 24.28 kB / 0.5245 GB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.3711, allocations: 13.3 kB / 0.5245 GB, free: 9.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002541/0.3714, allocations: 218.3 kB / 0.5247 GB, free: 9.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3714, allocations: 0 / 0.5247 GB, free: 9.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005791/0.3719, allocations: 90.06 kB / 0.5248 GB, free: 9.754 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.001142/0.3731, allocations: 1.135 MB / 0.5259 GB, free: 8.887 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007441/0.3738, allocations: 364.8 kB / 0.5262 GB, free: 8.777 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3739, allocations: 1.25 kB / 0.5262 GB, free: 8.777 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.3741, allocations: 145.6 kB / 0.5264 GB, free: 8.734 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005873/0.3747, allocations: 65.47 kB / 0.5264 GB, free: 8.711 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005217/0.3799, allocations: 3.985 MB / 0.5303 GB, free: 6.023 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004933/0.3805, allocations: 0.8582 MB / 0.5312 GB, free: 5.305 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000443/0.3809, allocations: 140.5 kB / 0.5313 GB, free: 5.281 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00023/0.3812, allocations: 139 kB / 0.5314 GB, free: 5.18 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3812, allocations: 0 / 0.5314 GB, free: 5.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/0.4084, allocations: 7.097 MB / 0.5384 GB, free: 2.398 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.161/8.57, allocations: 12.92 kB / 0.5384 GB, free: 2.391 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