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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001243/0.001243, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.759/1.759, allocations: 205.1 MB / 223.1 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 110.5 kB / 270.5 MB, free: 8.414 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1773/0.1773, allocations: 38.01 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 55.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4094/0.4106, allocations: 55.23 MB / 477.1 MB, free: 9.895 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.009506/0.4202, allocations: 5.071 MB / 482.2 MB, free: 6.301 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004504/0.4248, allocations: 1.676 MB / 483.8 MB, free: 5.129 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006099/0.4254, allocations: 28.5 kB / 483.9 MB, free: 5.117 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001689/0.4271, allocations: 356.3 kB / 484.2 MB, free: 4.902 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009714/0.4281, allocations: 206.1 kB / 484.4 MB, free: 4.789 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001204/0.4293, allocations: 218.7 kB / 484.6 MB, free: 4.691 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001561/0.4309, allocations: 0.8188 MB / 485.4 MB, free: 4.434 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007747/0.4317, allocations: 272.6 kB / 485.7 MB, free: 4.336 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005349/0.4323, allocations: 210 kB / 485.9 MB, free: 4.25 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007788/0.4331, allocations: 315.6 kB / 486.2 MB, free: 4.145 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.434e-05/0.4331, allocations: 22.91 kB / 486.3 MB, free: 4.145 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006081/0.4338, allocations: 140.6 kB / 486.4 MB, free: 4.109 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005848/0.4344, allocations: 214.1 kB / 486.6 MB, free: 4.047 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005102/0.4349, allocations: 227.7 kB / 486.8 MB, free: 3.918 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.4359, allocations: 0.5567 MB / 487.4 MB, free: 3.711 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.4359, allocations: 0 / 487.4 MB, free: 3.711 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.436, allocations: 0 / 487.4 MB, free: 3.711 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.436, allocations: 0 / 487.4 MB, free: 3.711 MB / 314.7 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.001702/0.4377, allocations: 0.7337 MB / 488.1 MB, free: 3.141 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/0.4377, allocations: 10.23 kB / 488.1 MB, free: 3.141 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007748/0.4385, allocations: 88.88 kB / 488.2 MB, free: 3.109 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009184/0.4395, allocations: 381.2 kB / 488.6 MB, free: 2.824 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.054e-05/0.4395, allocations: 29.53 kB / 488.6 MB, free: 2.812 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000189/0.4397, allocations: 56.42 kB / 488.7 MB, free: 2.789 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.4411, allocations: 0.6213 MB / 489.3 MB, free: 2.426 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.4412, allocations: 6.188 kB / 489.3 MB, free: 2.422 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.118e-05/0.4413, allocations: 21.59 kB / 489.3 MB, free: 2.406 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001809/0.4414, allocations: 27.7 kB / 489.3 MB, free: 2.406 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/0.4428, allocations: 483.2 kB / 489.8 MB, free: 2.258 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004589/0.4474, allocations: 2.894 MB / 492.7 MB, free: 15.97 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007354/0.4482, allocations: 231.5 kB / 492.9 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004211/0.4486, allocations: 145.4 kB / 493.1 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-05/0.4487, allocations: 9.141 kB / 493.1 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.15e-05/0.4488, allocations: 40.48 kB / 493.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 6.122e-06/0.4488, allocations: 0 / 493.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=28): time 0.00291/0.4517, allocations: 0.9649 MB / 494.1 MB, free: 15.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.969e-05/0.4518, allocations: 80.11 kB / 494.2 MB, free: 15.08 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008324/0.4527, allocations: 330.9 kB / 494.5 MB, free: 14.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.389e-05/0.4527, allocations: 31.73 kB / 494.5 MB, free: 14.87 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.4531, allocations: 276.7 kB / 494.8 MB, free: 14.64 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.4533, allocations: 101.8 kB / 494.9 MB, free: 14.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003215/0.4536, allocations: 91.02 kB / 495 MB, free: 14.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000332/0.454, allocations: 351 kB / 495.3 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005554/0.4545, allocations: 144.9 kB / 495.5 MB, free: 14.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009382/0.4555, allocations: 346.4 kB / 495.8 MB, free: 13.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.4569, allocations: 0.5137 MB / 496.3 MB, free: 13.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.457, allocations: 1.469 kB / 496.3 MB, free: 13.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001717/0.4587, allocations: 0.5333 MB / 496.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.011e-05/0.4588, allocations: 8.625 kB / 496.9 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.74e-05/0.4588, allocations: 6.875 kB / 496.9 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.428e-05/0.4589, allocations: 9.594 kB / 496.9 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008143/0.4597, allocations: 123.2 kB / 497 MB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-05/0.4597, allocations: 11.33 kB / 497 MB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/0.4602, allocations: 30.66 kB / 497 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.356e-05/0.4603, allocations: 23.12 kB / 497.1 MB, free: 13.2 MB / 330.7 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.000513/0.4609, allocations: 217.6 kB / 497.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.461, allocations: 34.16 kB / 497.3 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.4622, allocations: 359.9 kB / 497.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.4622, allocations: 3.719 kB / 497.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.4622, allocations: 0 / 497.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.4622, allocations: 3.297 kB / 497.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003429/0.4657, allocations: 0.8915 MB / 498.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.4657, allocations: 1.25 kB / 498.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006175/0.4663, allocations: 63.5 kB / 498.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.627e-05/0.4664, allocations: 3.156 kB / 498.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-05/0.4664, allocations: 13.56 kB / 498.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.796e-05/0.4665, allocations: 6.875 kB / 498.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/0.4665, allocations: 5.219 kB / 498.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005014/0.4715, allocations: 2.033 MB / 0.4889 GB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001561/0.4717, allocations: 111 kB / 0.489 GB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.474e-05/0.4718, allocations: 8.953 kB / 0.4891 GB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003131/0.4721, allocations: 14.06 kB / 0.4891 GB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.247e-05/0.4722, allocations: 21.7 kB / 0.4891 GB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.475e-05/0.4723, allocations: 16.2 kB / 0.4891 GB, free: 10.7 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004549/0.4727, allocations: 216.7 kB / 0.4893 GB, free: 10.56 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4727, allocations: 0 / 0.4893 GB, free: 10.56 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001178/0.4739, allocations: 118.6 kB / 0.4894 GB, free: 10.55 MB / 330.7 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.0002308/0.4742, allocations: 111.3 kB / 0.4895 GB, free: 10.45 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001023/0.4752, allocations: 362.4 kB / 0.4899 GB, free: 10.29 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.4752, allocations: 1.312 kB / 0.4899 GB, free: 10.29 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003604/0.4756, allocations: 147.4 kB / 0.49 GB, free: 10.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000827/0.4764, allocations: 70.44 kB / 0.4901 GB, free: 10.19 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003497/0.48, allocations: 1.389 MB / 0.4914 GB, free: 9.156 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008465/0.4808, allocations: 0.8659 MB / 0.4923 GB, free: 8.375 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006816/0.4815, allocations: 132.4 kB / 0.4924 GB, free: 8.312 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001907/0.4817, allocations: 35.3 kB / 0.4924 GB, free: 8.301 MB / 330.7 MB Notification: Performance of SimCode: time 8.12e-07/0.4817, allocations: 0 / 0.4924 GB, free: 8.301 MB / 330.7 MB Notification: Performance of Templates: time 0.01352/0.4953, allocations: 3.476 MB / 0.4958 GB, free: 6.598 MB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches