Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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.AC3ph.Precalculation.Z_matrixEqCirc3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001762/0.001762, allocations: 175.6 kB / 17.4 MB, free: 4.398 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.757/1.757, allocations: 205.4 MB / 223.5 MB, free: 9.023 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.000729/0.0007291, allocations: 90.34 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1919/0.1919, allocations: 38.07 MB / 358.2 MB, free: 1.746 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005417/0.0005417, allocations: 16 kB / 425.2 MB, free: 37.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3901/0.3907, allocations: 56.31 MB / 481.6 MB, free: 9.609 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1613/0.552, allocations: 87.08 MB / 0.5553 GB, free: 15.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/0.5524, allocations: 87.81 kB / 0.5554 GB, free: 15.15 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006777/0.5592, allocations: 1.81 MB / 0.5572 GB, free: 13.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.5592, allocations: 0 / 0.5572 GB, free: 13.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.5592, allocations: 0 / 0.5572 GB, free: 13.34 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0005736/0.5598, allocations: 484.8 kB / 0.5576 GB, free: 12.81 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.5598, allocations: 8.031 kB / 0.5576 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.097e-05/0.5599, allocations: 20.66 kB / 0.5577 GB, free: 12.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.5602, allocations: 200.5 kB / 0.5578 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.5602, allocations: 384 / 0.5578 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.5602, allocations: 384 / 0.5578 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.5605, allocations: 134.8 kB / 0.558 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.5605, allocations: 0 / 0.558 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.5605, allocations: 4 kB / 0.558 GB, free: 12.4 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.5605, allocations: 0 / 0.558 GB, free: 12.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.5607, allocations: 100.3 kB / 0.5581 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002531/0.561, allocations: 194.1 kB / 0.5583 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.5612, allocations: 154.8 kB / 0.5584 GB, free: 11.91 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001942/0.5614, allocations: 145.2 kB / 0.5585 GB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.889e-06/0.5614, allocations: 0 / 0.5585 GB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.5615, allocations: 34.5 kB / 0.5586 GB, free: 11.72 MB / 394.7 MB Notification: Performance of pre-optimization done (n=40): time 4.999e-06/0.5615, allocations: 4 kB / 0.5586 GB, free: 11.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.0008113/0.5623, allocations: 484.8 kB / 0.559 GB, free: 11.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.539e-05/0.5624, allocations: 105.1 kB / 0.5591 GB, free: 11.11 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001808/0.5626, allocations: 150.4 kB / 0.5593 GB, free: 10.95 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.5626, allocations: 25.7 kB / 0.5593 GB, free: 10.91 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.127e-05/0.5627, allocations: 96.8 kB / 0.5594 GB, free: 10.81 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.5628, allocations: 122.1 kB / 0.5595 GB, free: 10.69 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-06/0.5629, allocations: 4 kB / 0.5595 GB, free: 10.69 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.563, allocations: 330.8 kB / 0.5598 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.5632, allocations: 99.98 kB / 0.5599 GB, free: 10.26 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001347/0.5633, allocations: 99.83 kB / 0.56 GB, free: 10.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004912/0.5638, allocations: 365.4 kB / 0.5604 GB, free: 9.789 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.5638, allocations: 0 / 0.5604 GB, free: 9.789 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005016/0.5644, allocations: 330.9 kB / 0.5607 GB, free: 9.453 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001235/0.5645, allocations: 85.62 kB / 0.5608 GB, free: 9.363 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.5645, allocations: 0 / 0.5608 GB, free: 9.363 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.5645, allocations: 3.938 kB / 0.5608 GB, free: 9.359 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.707e-06/0.5645, allocations: 3.984 kB / 0.5608 GB, free: 9.355 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.5646, allocations: 4.062 kB / 0.5608 GB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.342e-05/0.5646, allocations: 19.84 kB / 0.5608 GB, free: 9.332 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.532e-05/0.5647, allocations: 11.94 kB / 0.5608 GB, free: 9.32 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0002812/0.565, allocations: 235.3 kB / 0.561 GB, free: 9.074 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.71e-05/0.565, allocations: 23.72 kB / 0.5611 GB, free: 9.051 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.5651, allocations: 13.97 kB / 0.5611 GB, free: 9.035 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.5651, allocations: 0 / 0.5611 GB, free: 9.035 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.5651, allocations: 4 kB / 0.5611 GB, free: 9.031 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.5651, allocations: 0 / 0.5611 GB, free: 9.031 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.5654, allocations: 233.3 kB / 0.5613 GB, free: 8.754 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.5654, allocations: 4 kB / 0.5613 GB, free: 8.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.876e-06/0.5654, allocations: 4 kB / 0.5613 GB, free: 8.746 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.5654, allocations: 0 / 0.5613 GB, free: 8.746 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.5654, allocations: 8 kB / 0.5613 GB, free: 8.738 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.5654, allocations: 0 / 0.5613 GB, free: 8.738 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5654, allocations: 0 / 0.5613 GB, free: 8.738 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.5668, allocations: 0.9119 MB / 0.5622 GB, free: 7.801 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.908e-05/0.5669, allocations: 92.86 kB / 0.5623 GB, free: 7.691 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.114e-05/0.5669, allocations: 12.02 kB / 0.5623 GB, free: 7.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.123e-05/0.567, allocations: 8 kB / 0.5623 GB, free: 7.672 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.923e-05/0.5671, allocations: 8 kB / 0.5623 GB, free: 7.664 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.5671, allocations: 8 kB / 0.5623 GB, free: 7.656 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001014/0.5672, allocations: 112 kB / 0.5624 GB, free: 7.547 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5672, allocations: 0 / 0.5624 GB, free: 7.547 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004236/0.5676, allocations: 60 kB / 0.5625 GB, free: 7.488 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0002051/0.5679, allocations: 119.1 kB / 0.5626 GB, free: 7.363 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001953/0.5698, allocations: 1.589 MB / 0.5642 GB, free: 5.762 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5698, allocations: 0 / 0.5642 GB, free: 5.762 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001603/0.5715, allocations: 1.362 MB / 0.5655 GB, free: 4.387 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.5718, allocations: 27.92 kB / 0.5655 GB, free: 4.359 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.5731, allocations: 0.6749 MB / 0.5662 GB, free: 3.656 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004176/0.5735, allocations: 0.7559 MB / 0.5669 GB, free: 2.875 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.153e-05/0.5735, allocations: 0 / 0.5669 GB, free: 2.875 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.634e-05/0.5736, allocations: 11.44 kB / 0.5669 GB, free: 2.863 MB / 394.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5736, allocations: 0 / 0.5669 GB, free: 2.863 MB / 394.7 MB Notification: Performance of Templates: time 0.006928/0.5805, allocations: 2.325 MB / 0.5692 GB, free: 0.5547 MB / 394.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches