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.001504/0.001504, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008503/0.0008506, allocations: 83.47 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1785/0.1785, allocations: 37.99 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.946e-05/1.934e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1205, allocations: 56.32 MB / 466.9 MB, free: 6.574 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3883/0.5089, allocations: 99.45 MB / 0.5531 GB, free: 11.48 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.5092, allocations: 79.95 kB / 0.5532 GB, free: 11.4 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03365/0.5429, allocations: 12.11 MB / 0.565 GB, free: 15.16 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.5429, allocations: 0 / 0.565 GB, free: 15.16 MB / 411.1 MB Notification: Performance of Transformations before backend: time 2.876e-05/0.5429, allocations: 8 kB / 0.565 GB, free: 15.15 MB / 411.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.001146/0.5441, allocations: 0.6451 MB / 0.5656 GB, free: 14.46 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.5441, allocations: 8.031 kB / 0.5656 GB, free: 14.45 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005462/0.5447, allocations: 79.39 kB / 0.5657 GB, free: 14.38 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/0.5468, allocations: 0.8374 MB / 0.5665 GB, free: 13.5 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.5469, allocations: 12 kB / 0.5665 GB, free: 13.48 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.49e-05/0.5469, allocations: 24 kB / 0.5666 GB, free: 13.46 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006028/0.5476, allocations: 358.5 kB / 0.5669 GB, free: 13.11 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007819/0.5484, allocations: 0.5445 MB / 0.5674 GB, free: 12.5 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.5484, allocations: 0 / 0.5674 GB, free: 12.5 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.908e-05/0.5484, allocations: 4 kB / 0.5674 GB, free: 12.5 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.439e-05/0.5485, allocations: 32.72 kB / 0.5675 GB, free: 12.47 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00315/0.5517, allocations: 2.784 MB / 0.5702 GB, free: 9.543 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003052/0.552, allocations: 209.6 kB / 0.5704 GB, free: 9.316 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000181/0.5522, allocations: 142.7 kB / 0.5705 GB, free: 9.172 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.5522, allocations: 7.984 kB / 0.5705 GB, free: 9.164 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.5522, allocations: 38.56 kB / 0.5706 GB, free: 9.117 MB / 411.1 MB Notification: Performance of pre-optimization done (n=29): time 1.834e-06/0.5522, allocations: 0 / 0.5706 GB, free: 9.117 MB / 411.1 MB Notification: Performance of matching and sorting (n=30): time 0.001474/0.5537, allocations: 0.8458 MB / 0.5714 GB, free: 8.223 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.5538, allocations: 81.11 kB / 0.5715 GB, free: 8.125 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002966/0.5541, allocations: 265 kB / 0.5717 GB, free: 7.863 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.5541, allocations: 25.7 kB / 0.5717 GB, free: 7.832 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.5543, allocations: 271.2 kB / 0.572 GB, free: 7.559 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.707e-05/0.5544, allocations: 110.5 kB / 0.5721 GB, free: 7.449 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.616e-05/0.5545, allocations: 0 / 0.5721 GB, free: 7.449 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.5546, allocations: 346.8 kB / 0.5724 GB, free: 7.102 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.5548, allocations: 137.1 kB / 0.5726 GB, free: 6.969 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003175/0.5551, allocations: 326.6 kB / 0.5729 GB, free: 6.559 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.5555, allocations: 211.7 kB / 0.5731 GB, free: 6.352 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.5555, allocations: 4 kB / 0.5731 GB, free: 6.348 MB / 411.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007235/0.5562, allocations: 486.2 kB / 0.5736 GB, free: 5.867 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.5563, allocations: 9.719 kB / 0.5736 GB, free: 5.859 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.5563, allocations: 12 kB / 0.5736 GB, free: 5.848 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.5563, allocations: 8 kB / 0.5736 GB, free: 5.84 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003781/0.5567, allocations: 115.8 kB / 0.5737 GB, free: 5.727 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.5567, allocations: 8 kB / 0.5737 GB, free: 5.719 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.557, allocations: 15.98 kB / 0.5737 GB, free: 5.703 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-05/0.557, allocations: 23.98 kB / 0.5737 GB, free: 5.68 MB / 411.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.5571, allocations: 128.7 kB / 0.5739 GB, free: 5.547 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.965e-05/0.5572, allocations: 35.66 kB / 0.5739 GB, free: 5.512 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005539/0.5577, allocations: 333.6 kB / 0.5742 GB, free: 5.176 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-05/0.5578, allocations: 11.98 kB / 0.5742 GB, free: 5.164 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.5578, allocations: 4 kB / 0.5742 GB, free: 5.16 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.5578, allocations: 0 / 0.5742 GB, free: 5.16 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.559, allocations: 0.7945 MB / 0.575 GB, free: 4.312 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.559, allocations: 4 kB / 0.575 GB, free: 4.309 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002992/0.5593, allocations: 67.89 kB / 0.5751 GB, free: 4.242 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.5594, allocations: 0 / 0.5751 GB, free: 4.242 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.5594, allocations: 4 kB / 0.5751 GB, free: 4.238 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.5594, allocations: 4 kB / 0.5751 GB, free: 4.234 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.5594, allocations: 0 / 0.5751 GB, free: 4.234 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007581/0.5602, allocations: 0.63 MB / 0.5757 GB, free: 3.551 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.995e-05/0.5603, allocations: 104.7 kB / 0.5758 GB, free: 3.43 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/0.5603, allocations: 4 kB / 0.5758 GB, free: 3.426 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.5605, allocations: 11.98 kB / 0.5758 GB, free: 3.414 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.118e-05/0.5606, allocations: 19.97 kB / 0.5758 GB, free: 3.395 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.5606, allocations: 8 kB / 0.5758 GB, free: 3.387 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001798/0.5608, allocations: 200.6 kB / 0.576 GB, free: 3.195 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.763e-06/0.5608, allocations: 0 / 0.576 GB, free: 3.195 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0004599/0.5612, allocations: 87.94 kB / 0.5761 GB, free: 3.109 MB / 411.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001918/0.5614, allocations: 119.2 kB / 0.5762 GB, free: 2.984 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0005399/0.562, allocations: 331.6 kB / 0.5765 GB, free: 2.66 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.562, allocations: 0 / 0.5765 GB, free: 2.66 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.5622, allocations: 141.6 kB / 0.5767 GB, free: 2.523 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000399/0.5626, allocations: 65.27 kB / 0.5767 GB, free: 2.461 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.5639, allocations: 0.7634 MB / 0.5775 GB, free: 1.66 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.5644, allocations: 0.8708 MB / 0.5783 GB, free: 0.7617 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0003361/0.5647, allocations: 127.1 kB / 0.5785 GB, free: 0.6328 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.461e-05/0.5648, allocations: 31.44 kB / 0.5785 GB, free: 0.6016 MB / 411.1 MB Notification: Performance of SimCode: time 2.41e-07/0.5648, allocations: 0 / 0.5785 GB, free: 0.6016 MB / 411.1 MB Notification: Performance of Templates: time 0.006771/0.5716, allocations: 2.783 MB / 0.5812 GB, free: 13.82 MB / 427.1 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/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