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.001042/0.001042, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.473/1.473, allocations: 205.2 MB / 219.4 MB, free: 14.19 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.0009541/0.0009542, allocations: 82.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1697/0.1697, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.905e-05/2.907e-05, allocations: 0 / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1311, allocations: 56.32 MB / 474 MB, free: 4.801 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4452/0.5765, allocations: 100.1 MB / 0.5607 GB, free: 2.711 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.5768, allocations: 79.83 kB / 0.5608 GB, free: 2.672 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03379/0.6106, allocations: 12.21 MB / 0.5727 GB, free: 8.176 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.6106, allocations: 0 / 0.5727 GB, free: 8.176 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.793e-05/0.6107, allocations: 12 kB / 0.5727 GB, free: 8.164 MB / 378.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.001092/0.6118, allocations: 0.6262 MB / 0.5733 GB, free: 7.516 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.6118, allocations: 8.031 kB / 0.5733 GB, free: 7.508 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005201/0.6123, allocations: 95.38 kB / 0.5734 GB, free: 7.414 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002125/0.6145, allocations: 0.8321 MB / 0.5743 GB, free: 6.668 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.6145, allocations: 32.06 kB / 0.5743 GB, free: 6.652 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.956e-05/0.6146, allocations: 41.98 kB / 0.5743 GB, free: 6.621 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008561/0.6155, allocations: 0.5962 MB / 0.5749 GB, free: 6.105 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.6155, allocations: 11.94 kB / 0.5749 GB, free: 6.094 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.257e-05/0.6155, allocations: 17.31 kB / 0.5749 GB, free: 6.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-05/0.6156, allocations: 24.77 kB / 0.575 GB, free: 6.066 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006181/0.6162, allocations: 446.7 kB / 0.5754 GB, free: 5.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003257/0.6195, allocations: 2.866 MB / 0.5782 GB, free: 3.031 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.6199, allocations: 224 kB / 0.5784 GB, free: 2.848 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.6201, allocations: 141.9 kB / 0.5785 GB, free: 2.746 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.879e-05/0.6201, allocations: 19.2 kB / 0.5785 GB, free: 2.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.6202, allocations: 38.44 kB / 0.5786 GB, free: 2.684 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 3.697e-06/0.6202, allocations: 0 / 0.5786 GB, free: 2.684 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001444/0.6216, allocations: 0.8571 MB / 0.5794 GB, free: 1.918 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.6217, allocations: 81.14 kB / 0.5795 GB, free: 1.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/0.622, allocations: 290.9 kB / 0.5798 GB, free: 1.578 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.6221, allocations: 29.02 kB / 0.5798 GB, free: 1.547 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.6222, allocations: 272.4 kB / 0.5801 GB, free: 1.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.158e-05/0.6223, allocations: 109.7 kB / 0.5802 GB, free: 1.227 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.769e-05/0.6223, allocations: 11.5 kB / 0.5802 GB, free: 1.223 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.6225, allocations: 349.8 kB / 0.5805 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.6227, allocations: 146.4 kB / 0.5807 GB, free: 0.7852 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003132/0.623, allocations: 336.5 kB / 0.581 GB, free: 428 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003711/0.6234, allocations: 212.5 kB / 0.5812 GB, free: 268 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.6234, allocations: 8 kB / 0.5812 GB, free: 260 kB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007342/0.6242, allocations: 0.5122 MB / 0.5817 GB, free: 15.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.6242, allocations: 8 kB / 0.5817 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.6242, allocations: 8 kB / 0.5817 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.6243, allocations: 12 kB / 0.5817 GB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003902/0.6247, allocations: 115.4 kB / 0.5818 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.082e-05/0.6247, allocations: 15.92 kB / 0.5818 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/0.6249, allocations: 26.77 kB / 0.5819 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.136e-05/0.625, allocations: 23.19 kB / 0.5819 GB, free: 15.65 MB / 394.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 () * 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.0001097/0.6251, allocations: 140.9 kB / 0.582 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.943e-05/0.6252, allocations: 31.53 kB / 0.582 GB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005693/0.6257, allocations: 349.6 kB / 0.5824 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.6258, allocations: 7.438 kB / 0.5824 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.6258, allocations: 0 / 0.5824 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.6258, allocations: 7.984 kB / 0.5824 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001534/0.6273, allocations: 0.8775 MB / 0.5833 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.6274, allocations: 0 / 0.5833 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.6277, allocations: 62.72 kB / 0.5833 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/0.6277, allocations: 4 kB / 0.5833 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.6277, allocations: 7.484 kB / 0.5833 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.6277, allocations: 4 kB / 0.5833 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.6277, allocations: 4.047 kB / 0.5833 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008406/0.6286, allocations: 0.6444 MB / 0.584 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.832e-05/0.6287, allocations: 112.4 kB / 0.5841 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.104e-05/0.6288, allocations: 11.66 kB / 0.5841 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001772/0.629, allocations: 11.67 kB / 0.5841 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.321e-05/0.629, allocations: 15.98 kB / 0.5841 GB, free: 13.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.629, allocations: 11.48 kB / 0.5841 GB, free: 13.63 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002067/0.6293, allocations: 215 kB / 0.5843 GB, free: 13.46 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6293, allocations: 3.938 kB / 0.5843 GB, free: 13.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004826/0.6298, allocations: 114.9 kB / 0.5844 GB, free: 13.35 MB / 394.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 () * 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.0001877/0.63, allocations: 122.7 kB / 0.5846 GB, free: 13.22 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005294/0.6305, allocations: 356.6 kB / 0.5849 GB, free: 12.96 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.6305, allocations: 4.062 kB / 0.5849 GB, free: 12.96 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001905/0.6307, allocations: 150.8 kB / 0.585 GB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.6311, allocations: 59.02 kB / 0.5851 GB, free: 12.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.6324, allocations: 0.786 MB / 0.5859 GB, free: 12.06 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.6329, allocations: 0.8673 MB / 0.5867 GB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003435/0.6332, allocations: 127.1 kB / 0.5868 GB, free: 11.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.104e-05/0.6333, allocations: 31.44 kB / 0.5869 GB, free: 11.03 MB / 394.7 MB Notification: Performance of SimCode: time 4.6e-07/0.6333, allocations: 0 / 0.5869 GB, free: 11.03 MB / 394.7 MB Notification: Performance of Templates: time 0.006801/0.6401, allocations: 2.972 MB / 0.5898 GB, free: 8.074 MB / 394.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/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