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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 108.2 kB / 17.74 MB, free: 5.359 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.001441/0.001441, allocations: 183.1 kB / 18.67 MB, free: 4.441 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.381/1.381, allocations: 222.9 MB / 242.4 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.1865/0.1865, allocations: 38.04 MB / 330.6 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 60.09 kB / 458.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.355, allocations: 58.06 MB / 0.5048 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.003103/0.3582, allocations: 2.051 MB / 0.5068 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006911/0.3589, allocations: 0.5246 MB / 0.5073 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.492e-05/0.359, allocations: 1.188 kB / 0.5073 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.3591, allocations: 9.062 kB / 0.5073 GB, free: 5.941 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.936e-05/0.3592, allocations: 30.67 kB / 0.5073 GB, free: 5.926 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003466/0.3596, allocations: 71.73 kB / 0.5074 GB, free: 5.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.3597, allocations: 58.94 kB / 0.5074 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.52e-05/0.3598, allocations: 2.922 kB / 0.5074 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.489e-05/0.3599, allocations: 29.2 kB / 0.5075 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.278e-05/0.3599, allocations: 32.83 kB / 0.5075 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.105e-05/0.3599, allocations: 1.438 kB / 0.5075 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001667/0.3601, allocations: 77.8 kB / 0.5076 GB, free: 5.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.345e-05/0.3602, allocations: 41.39 kB / 0.5076 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.054e-05/0.3602, allocations: 43.03 kB / 0.5077 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.3604, allocations: 155.9 kB / 0.5078 GB, free: 5.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.3605, allocations: 0.6094 kB / 0.5078 GB, free: 5.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3605, allocations: 0 / 0.5078 GB, free: 5.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.3605, allocations: 0 / 0.5078 GB, free: 5.727 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0003685/0.3609, allocations: 479 kB / 0.5083 GB, free: 5.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.3609, allocations: 14.02 kB / 0.5083 GB, free: 5.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.943e-05/0.3609, allocations: 17.47 kB / 0.5083 GB, free: 5.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.3611, allocations: 191.8 kB / 0.5085 GB, free: 5.055 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.208e-06/0.3611, allocations: 3.938 kB / 0.5085 GB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/0.3611, allocations: 1.094 kB / 0.5085 GB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.3613, allocations: 134.5 kB / 0.5086 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.3613, allocations: 3.938 kB / 0.5086 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.3613, allocations: 1.188 kB / 0.5086 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.3613, allocations: 0 / 0.5086 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.3614, allocations: 94.28 kB / 0.5087 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001281/0.3616, allocations: 205.8 kB / 0.5089 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001284/0.3617, allocations: 151.9 kB / 0.509 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.3618, allocations: 147.2 kB / 0.5092 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.674e-06/0.3618, allocations: 0 / 0.5092 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.3619, allocations: 32.42 kB / 0.5092 GB, free: 4.551 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.443e-06/0.3619, allocations: 0 / 0.5092 GB, free: 4.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005748/0.3624, allocations: 478.1 kB / 0.5097 GB, free: 4.398 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.34e-05/0.3625, allocations: 105.6 kB / 0.5098 GB, free: 4.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.3626, allocations: 148.7 kB / 0.5099 GB, free: 4.188 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.745e-06/0.3626, allocations: 25.7 kB / 0.5099 GB, free: 4.156 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.434e-05/0.3627, allocations: 107 kB / 0.51 GB, free: 4.055 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.187e-05/0.3628, allocations: 131.2 kB / 0.5102 GB, free: 3.953 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.082e-05/0.3628, allocations: 34.31 kB / 0.5102 GB, free: 3.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.371e-05/0.3629, allocations: 337.8 kB / 0.5105 GB, free: 3.605 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.874e-05/0.363, allocations: 88.59 kB / 0.5106 GB, free: 3.586 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.43e-05/0.3631, allocations: 94.92 kB / 0.5107 GB, free: 3.562 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003083/0.3634, allocations: 368.5 kB / 0.5111 GB, free: 3.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3634, allocations: 0 / 0.5111 GB, free: 3.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003184/0.3637, allocations: 327.6 kB / 0.5114 GB, free: 3.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.8e-05/0.3638, allocations: 85.45 kB / 0.5114 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-06/0.3638, allocations: 1.125 kB / 0.5114 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.3638, allocations: 0.75 kB / 0.5114 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.3638, allocations: 0 / 0.5114 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.3638, allocations: 1 kB / 0.5114 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.698e-05/0.3639, allocations: 23.69 kB / 0.5115 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.3639, allocations: 7.734 kB / 0.5115 GB, free: 3.246 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 0.0001739/0.3641, allocations: 231.5 kB / 0.5117 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.3641, allocations: 28.88 kB / 0.5117 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.917e-05/0.3642, allocations: 11.14 kB / 0.5117 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3642, allocations: 1.156 kB / 0.5117 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.3642, allocations: 0 / 0.5117 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3642, allocations: 2.531 kB / 0.5117 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001439/0.3643, allocations: 227.1 kB / 0.512 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3643, allocations: 0 / 0.512 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.282e-06/0.3643, allocations: 1.312 kB / 0.512 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.3644, allocations: 3.938 kB / 0.512 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.3644, allocations: 10.95 kB / 0.512 GB, free: 2.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3644, allocations: 5.219 kB / 0.512 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3644, allocations: 4 kB / 0.512 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009242/0.3653, allocations: 0.9035 MB / 0.5129 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.358e-05/0.3654, allocations: 95.56 kB / 0.513 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/0.3654, allocations: 6.688 kB / 0.513 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.597e-05/0.3654, allocations: 6 kB / 0.513 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.982e-05/0.3655, allocations: 6.75 kB / 0.513 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.3655, allocations: 7.812 kB / 0.513 GB, free: 2.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.511e-05/0.3656, allocations: 119 kB / 0.5131 GB, free: 2.375 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3656, allocations: 0 / 0.5131 GB, free: 2.375 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002873/0.3659, allocations: 62.94 kB / 0.5132 GB, free: 2.371 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.0001594/0.366, allocations: 115.5 kB / 0.5133 GB, free: 2.281 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001319/0.3674, allocations: 1.589 MB / 0.5148 GB, free: 1.457 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3674, allocations: 0 / 0.5148 GB, free: 1.457 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.3684, allocations: 1.366 MB / 0.5162 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.3687, allocations: 31.72 kB / 0.5162 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008546/0.3695, allocations: 0.6476 MB / 0.5168 GB, free: 408 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002671/0.3698, allocations: 0.7459 MB / 0.5175 GB, free: 15.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.259e-05/0.3698, allocations: 9.688 kB / 0.5176 GB, free: 15.69 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3698, allocations: 0 / 0.5176 GB, free: 15.69 MB / 398.1 MB Notification: Performance of Templates: time 0.004623/0.3745, allocations: 2.327 MB / 0.5198 GB, free: 15.49 MB / 398.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches