Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 107.6 kB / 17.06 MB, free: 5.824 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.002119/0.002119, allocations: 192 kB / 18 MB, free: 4.977 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.49/1.49, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1857/0.1857, allocations: 38.03 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 63.89 kB / 458.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4357/0.437, allocations: 58.06 MB / 0.5041 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1): time 0.003622/0.4407, allocations: 2.033 MB / 0.5061 GB, free: 6.699 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008354/0.4416, allocations: 0.5243 MB / 0.5066 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.101e-05/0.4416, allocations: 1.094 kB / 0.5066 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.4418, allocations: 10.25 kB / 0.5066 GB, free: 6.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.442, allocations: 24.53 kB / 0.5066 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.4423, allocations: 71.39 kB / 0.5067 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.4425, allocations: 55.36 kB / 0.5068 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.764e-05/0.4425, allocations: 3.688 kB / 0.5068 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.27e-05/0.4426, allocations: 38.14 kB / 0.5068 GB, free: 6.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.54e-05/0.4427, allocations: 28.23 kB / 0.5068 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.4427, allocations: 1.062 kB / 0.5068 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001935/0.4429, allocations: 78.58 kB / 0.5069 GB, free: 6.223 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.532e-05/0.443, allocations: 19.12 kB / 0.5069 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.347e-05/0.443, allocations: 18.16 kB / 0.5069 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.4433, allocations: 106.5 kB / 0.507 GB, free: 6.176 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4433, allocations: 0 / 0.507 GB, free: 6.176 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4433, allocations: 0 / 0.507 GB, free: 6.176 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.4433, allocations: 5.281 kB / 0.5071 GB, free: 6.172 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000409/0.4437, allocations: 402.5 kB / 0.5074 GB, free: 5.758 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.4438, allocations: 13.52 kB / 0.5074 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.063e-05/0.4438, allocations: 8.641 kB / 0.5075 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.444, allocations: 185 kB / 0.5076 GB, free: 5.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.113e-06/0.444, allocations: 1.594 kB / 0.5076 GB, free: 5.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.596e-05/0.444, allocations: 5.219 kB / 0.5076 GB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001361/0.4441, allocations: 65.42 kB / 0.5077 GB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.4442, allocations: 0 / 0.5077 GB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.4442, allocations: 0.9062 kB / 0.5077 GB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.4442, allocations: 4 kB / 0.5077 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.006e-05/0.4442, allocations: 30.11 kB / 0.5077 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000127/0.4444, allocations: 167.3 kB / 0.5079 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.163e-05/0.4445, allocations: 55.75 kB / 0.5079 GB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.369e-05/0.4445, allocations: 47.38 kB / 0.508 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.751e-06/0.4445, allocations: 1.156 kB / 0.508 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.4446, allocations: 39.06 kB / 0.508 GB, free: 5.184 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.4446, allocations: 1 kB / 0.508 GB, free: 5.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003217/0.4449, allocations: 183.3 kB / 0.5082 GB, free: 5.098 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.445, allocations: 86.67 kB / 0.5083 GB, free: 5.004 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.517e-05/0.445, allocations: 124.3 kB / 0.5084 GB, free: 4.895 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.366e-06/0.4451, allocations: 25.7 kB / 0.5084 GB, free: 4.863 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.116e-05/0.4451, allocations: 87.89 kB / 0.5085 GB, free: 4.777 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.465e-05/0.4451, allocations: 36.11 kB / 0.5086 GB, free: 4.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.4452, allocations: 22.17 kB / 0.5086 GB, free: 4.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.594e-05/0.4453, allocations: 325 kB / 0.5089 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.714e-05/0.4453, allocations: 28.94 kB / 0.5089 GB, free: 4.406 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.176e-05/0.4454, allocations: 29.09 kB / 0.5089 GB, free: 4.402 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.4455, allocations: 159 kB / 0.5091 GB, free: 4.312 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4455, allocations: 1 kB / 0.5091 GB, free: 4.312 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001599/0.4457, allocations: 148.5 kB / 0.5092 GB, free: 4.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.32e-05/0.4458, allocations: 46.39 kB / 0.5093 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.4458, allocations: 0 / 0.5093 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.4458, allocations: 1.188 kB / 0.5093 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.273e-06/0.4458, allocations: 4.766 kB / 0.5093 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.4458, allocations: 0 / 0.5093 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.676e-05/0.4458, allocations: 7.531 kB / 0.5093 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.4459, allocations: 3.984 kB / 0.5093 GB, free: 4.191 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.717e-05/0.446, allocations: 164.3 kB / 0.5094 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.89e-05/0.446, allocations: 13.02 kB / 0.5095 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.792e-05/0.446, allocations: 13.28 kB / 0.5095 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.446, allocations: 0 / 0.5095 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.446, allocations: 5.75 kB / 0.5095 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.446, allocations: 7.938 kB / 0.5095 GB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.4461, allocations: 176.1 kB / 0.5097 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.4462, allocations: 0 / 0.5097 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.4462, allocations: 1 kB / 0.5097 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.4462, allocations: 0 / 0.5097 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.4462, allocations: 4.328 kB / 0.5097 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.4462, allocations: 0 / 0.5097 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4462, allocations: 5.125 kB / 0.5097 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003149/0.4465, allocations: 279.2 kB / 0.5099 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.607e-05/0.4466, allocations: 87.86 kB / 0.51 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.4466, allocations: 4.062 kB / 0.51 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.82e-05/0.4466, allocations: 2.094 kB / 0.51 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.41e-05/0.4466, allocations: 6 kB / 0.51 GB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-06/0.4466, allocations: 7.625 kB / 0.51 GB, free: 3.566 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.029e-05/0.4467, allocations: 94.02 kB / 0.5101 GB, free: 3.488 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4467, allocations: 0 / 0.5101 GB, free: 3.488 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002437/0.4469, allocations: 27.62 kB / 0.5102 GB, free: 3.488 MB / 382.1 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 (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.0001733/0.4471, allocations: 121 kB / 0.5103 GB, free: 3.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003299/0.4475, allocations: 294.1 kB / 0.5105 GB, free: 3.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4475, allocations: 3.938 kB / 0.5105 GB, free: 3.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.4477, allocations: 219 kB / 0.5108 GB, free: 3.129 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.4479, allocations: 15.44 kB / 0.5108 GB, free: 3.125 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004498/0.4484, allocations: 275 kB / 0.511 GB, free: 2.965 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001443/0.4486, allocations: 0.6995 MB / 0.5117 GB, free: 2.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.818e-05/0.4486, allocations: 9.641 kB / 0.5117 GB, free: 2.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.248e-05/0.4486, allocations: 8.5 kB / 0.5117 GB, free: 2.258 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4486, allocations: 0 / 0.5117 GB, free: 2.258 MB / 382.1 MB Notification: Performance of Templates: time 0.004542/0.4531, allocations: 1.318 MB / 0.513 GB, free: 2.129 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches