Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.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_matrixEqCirc0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 111.9 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.00123/0.00123, allocations: 179.1 kB / 18.66 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.362/1.362, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1736/0.1736, allocations: 38.03 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.89 kB / 458.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3308, allocations: 58.06 MB / 0.5048 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0): time 0.003195/0.334, allocations: 2.042 MB / 0.5068 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007143/0.3347, allocations: 0.518 MB / 0.5073 GB, free: 6.199 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.44e-05/0.3348, allocations: 3.938 kB / 0.5073 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.335, allocations: 18.16 kB / 0.5073 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.85e-05/0.3351, allocations: 29.31 kB / 0.5073 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.3354, allocations: 62.75 kB / 0.5074 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000124/0.3356, allocations: 55.67 kB / 0.5074 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.726e-05/0.3356, allocations: 8.016 kB / 0.5074 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.902e-05/0.3357, allocations: 37.34 kB / 0.5075 GB, free: 6.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.183e-05/0.3358, allocations: 26.75 kB / 0.5075 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.3358, allocations: 0.9688 kB / 0.5075 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001572/0.3359, allocations: 82.78 kB / 0.5076 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.095e-05/0.336, allocations: 11.8 kB / 0.5076 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.578e-05/0.336, allocations: 17.11 kB / 0.5076 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001883/0.3362, allocations: 101.7 kB / 0.5077 GB, free: 6.023 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3362, allocations: 0 / 0.5077 GB, free: 6.023 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3362, allocations: 0 / 0.5077 GB, free: 6.023 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.3362, allocations: 1.125 kB / 0.5077 GB, free: 6.023 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002962/0.3365, allocations: 384.8 kB / 0.5081 GB, free: 5.621 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3366, allocations: 13.05 kB / 0.5081 GB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.553e-05/0.3366, allocations: 8.062 kB / 0.5081 GB, free: 5.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.3367, allocations: 177.2 kB / 0.5083 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-06/0.3368, allocations: 1.781 kB / 0.5083 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.3368, allocations: 4.125 kB / 0.5083 GB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.3369, allocations: 52.52 kB / 0.5083 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.3369, allocations: 3.938 kB / 0.5083 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.3369, allocations: 1.641 kB / 0.5083 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.3369, allocations: 1.25 kB / 0.5083 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.326e-05/0.337, allocations: 22.17 kB / 0.5083 GB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001038/0.3371, allocations: 160.7 kB / 0.5085 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.54e-05/0.3372, allocations: 50.88 kB / 0.5085 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.222e-05/0.3372, allocations: 37.02 kB / 0.5086 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.243e-06/0.3372, allocations: 0 / 0.5086 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.3372, allocations: 32.19 kB / 0.5086 GB, free: 5.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.3372, allocations: 0 / 0.5086 GB, free: 5.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002393/0.3375, allocations: 148.7 kB / 0.5088 GB, free: 4.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.3375, allocations: 84.16 kB / 0.5088 GB, free: 4.895 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.912e-05/0.3376, allocations: 116.1 kB / 0.5089 GB, free: 4.789 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.908e-06/0.3376, allocations: 25.7 kB / 0.509 GB, free: 4.758 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.734e-05/0.3377, allocations: 87.11 kB / 0.5091 GB, free: 4.672 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.74e-05/0.3377, allocations: 29.52 kB / 0.5091 GB, free: 4.648 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.011e-05/0.3377, allocations: 16.69 kB / 0.5091 GB, free: 4.633 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.67e-05/0.3378, allocations: 320.6 kB / 0.5094 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.439e-05/0.3378, allocations: 20.59 kB / 0.5094 GB, free: 4.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.97e-05/0.3379, allocations: 21.33 kB / 0.5094 GB, free: 4.309 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.338, allocations: 134.4 kB / 0.5096 GB, free: 4.219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.338, allocations: 1.469 kB / 0.5096 GB, free: 4.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001372/0.3381, allocations: 124.7 kB / 0.5097 GB, free: 4.141 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/0.3382, allocations: 40.33 kB / 0.5097 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.3382, allocations: 5.938 kB / 0.5097 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.3382, allocations: 0 / 0.5097 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.3382, allocations: 0 / 0.5097 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.3382, allocations: 1.625 kB / 0.5097 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.59e-05/0.3383, allocations: 6.312 kB / 0.5097 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.3383, allocations: 2.891 kB / 0.5097 GB, free: 4.102 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 8.347e-05/0.3384, allocations: 159.3 kB / 0.5099 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.627e-05/0.3384, allocations: 9.734 kB / 0.5099 GB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.378e-05/0.3384, allocations: 7.359 kB / 0.5099 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3384, allocations: 0 / 0.5099 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.3384, allocations: 0.75 kB / 0.5099 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3384, allocations: 0 / 0.5099 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.463e-05/0.3385, allocations: 174.7 kB / 0.5101 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3385, allocations: 4.312 kB / 0.5101 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.041e-06/0.3385, allocations: 2.062 kB / 0.5101 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.3385, allocations: 4 kB / 0.5101 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.3385, allocations: 3.531 kB / 0.5101 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.3386, allocations: 3.938 kB / 0.5101 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3386, allocations: 0.7031 kB / 0.5101 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002214/0.3388, allocations: 216 kB / 0.5103 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.205e-05/0.3388, allocations: 83.2 kB / 0.5104 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.3388, allocations: 2.391 kB / 0.5104 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.552e-05/0.3389, allocations: 1.781 kB / 0.5104 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.949e-05/0.3389, allocations: 7.016 kB / 0.5104 GB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.3389, allocations: 3.156 kB / 0.5104 GB, free: 3.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.742e-05/0.3389, allocations: 90.39 kB / 0.5105 GB, free: 3.422 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3389, allocations: 0 / 0.5105 GB, free: 3.422 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002462/0.3392, allocations: 27.81 kB / 0.5105 GB, free: 3.418 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.0001411/0.3393, allocations: 120.1 kB / 0.5106 GB, free: 3.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002341/0.3396, allocations: 193.9 kB / 0.5108 GB, free: 3.223 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3396, allocations: 5.188 kB / 0.5108 GB, free: 3.219 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.3397, allocations: 147.2 kB / 0.511 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.0002504/0.34, allocations: 17.33 kB / 0.511 GB, free: 3.121 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003778/0.3404, allocations: 243.3 kB / 0.5112 GB, free: 2.949 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001115/0.3405, allocations: 0.6944 MB / 0.5119 GB, free: 2.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.034e-05/0.3405, allocations: 12.53 kB / 0.5119 GB, free: 2.238 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3405, allocations: 4.062 kB / 0.5119 GB, free: 2.234 MB / 382.1 MB Notification: Performance of Templates: time 0.002805/0.3433, allocations: 1.098 MB / 0.513 GB, free: 2.16 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches