Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 108.3 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.002214/0.002214, allocations: 191 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.899/2.899, 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.4549/0.4549, allocations: 38.04 MB / 330.6 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002419/0.00242, allocations: 67.89 kB / 458.8 MB, free: 6.809 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6135/0.6159, allocations: 58.05 MB / 0.5048 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.009736/0.6258, allocations: 2.147 MB / 0.5069 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006129/0.632, allocations: 2.045 MB / 0.5089 GB, free: 4.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.6322, allocations: 1.125 kB / 0.5089 GB, free: 4.938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002582/0.6326, allocations: 9.688 kB / 0.5089 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.6328, allocations: 47.88 kB / 0.5089 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005064/0.6379, allocations: 0.8146 MB / 0.5097 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004548/0.6383, allocations: 102.4 kB / 0.5098 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.6385, allocations: 7.812 kB / 0.5098 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.6387, allocations: 37.91 kB / 0.5099 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.6389, allocations: 54.67 kB / 0.5099 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.6389, allocations: 2.5 kB / 0.5099 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006763/0.6457, allocations: 1.382 MB / 0.5113 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001713/0.6459, allocations: 35.55 kB / 0.5113 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.6461, allocations: 36.36 kB / 0.5113 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006249/0.6523, allocations: 1.328 MB / 0.5126 GB, free: 3.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.248e-06/0.6524, allocations: 0 / 0.5126 GB, free: 3.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.6524, allocations: 0 / 0.5126 GB, free: 3.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.641e-05/0.6524, allocations: 0 / 0.5126 GB, free: 3.855 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.002419/0.6549, allocations: 0.5332 MB / 0.5132 GB, free: 3.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.539e-05/0.655, allocations: 16.92 kB / 0.5132 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.6552, allocations: 14.09 kB / 0.5132 GB, free: 3.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004507/0.6556, allocations: 201.1 kB / 0.5134 GB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.6557, allocations: 5.5 kB / 0.5134 GB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.6557, allocations: 2.062 kB / 0.5134 GB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009679/0.6567, allocations: 70.98 kB / 0.5134 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.6567, allocations: 0 / 0.5134 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.6568, allocations: 2.344 kB / 0.5134 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.6568, allocations: 1.734 kB / 0.5135 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001999/0.657, allocations: 44.69 kB / 0.5135 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004136/0.6575, allocations: 184.6 kB / 0.5137 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/0.6577, allocations: 84.25 kB / 0.5138 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.6579, allocations: 59.27 kB / 0.5138 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.658, allocations: 1.438 kB / 0.5138 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.441e-05/0.658, allocations: 30.56 kB / 0.5138 GB, free: 2.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 3.196e-06/0.658, allocations: 1.25 kB / 0.5138 GB, free: 2.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008735/0.6589, allocations: 230.2 kB / 0.5141 GB, free: 2.652 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.6591, allocations: 91.95 kB / 0.5141 GB, free: 2.555 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/0.6593, allocations: 149.1 kB / 0.5143 GB, free: 2.445 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.6594, allocations: 27.52 kB / 0.5143 GB, free: 2.414 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.994e-05/0.6595, allocations: 98.38 kB / 0.5144 GB, free: 2.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.6596, allocations: 41.08 kB / 0.5144 GB, free: 2.289 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.6597, allocations: 24.83 kB / 0.5145 GB, free: 2.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.6599, allocations: 323.7 kB / 0.5148 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.6601, allocations: 40.12 kB / 0.5148 GB, free: 1.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.6602, allocations: 41.98 kB / 0.5149 GB, free: 1.938 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004593/0.6607, allocations: 175.2 kB / 0.515 GB, free: 1.852 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.6607, allocations: 3.938 kB / 0.515 GB, free: 1.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005133/0.6613, allocations: 176 kB / 0.5152 GB, free: 1.762 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001192/0.6614, allocations: 50.88 kB / 0.5152 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.6614, allocations: 0 / 0.5152 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.567e-05/0.6615, allocations: 1.531 kB / 0.5152 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.138e-06/0.6615, allocations: 0.6094 kB / 0.5152 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.6615, allocations: 0 / 0.5152 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.6616, allocations: 20.19 kB / 0.5153 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.407e-05/0.6617, allocations: 8.828 kB / 0.5153 GB, free: 1.707 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.000211/0.6619, allocations: 170.8 kB / 0.5154 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/0.662, allocations: 16.62 kB / 0.5155 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.599e-05/0.662, allocations: 13.08 kB / 0.5155 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.662, allocations: 1.062 kB / 0.5155 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.662, allocations: 0.75 kB / 0.5155 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.6621, allocations: 3.016 kB / 0.5155 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002391/0.6623, allocations: 186 kB / 0.5156 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.6623, allocations: 4.984 kB / 0.5157 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.954e-06/0.6623, allocations: 0 / 0.5157 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.6624, allocations: 5.469 kB / 0.5157 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.6624, allocations: 4.516 kB / 0.5157 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.6624, allocations: 0 / 0.5157 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.6624, allocations: 0 / 0.5157 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006712/0.6631, allocations: 306.9 kB / 0.516 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.975e-05/0.6632, allocations: 88.77 kB / 0.516 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/0.6632, allocations: 7.406 kB / 0.516 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.449e-05/0.6633, allocations: 1.312 kB / 0.516 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.824e-05/0.6633, allocations: 2.75 kB / 0.5161 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.549e-05/0.6634, allocations: 7.922 kB / 0.5161 GB, free: 1.078 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001311/0.6635, allocations: 116.5 kB / 0.5162 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6635, allocations: 0 / 0.5162 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003242/0.6668, allocations: 326.2 kB / 0.5165 GB, free: 0.9531 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.003359/0.6702, allocations: 374.5 kB / 0.5168 GB, free: 0.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009491/0.6711, allocations: 334.2 kB / 0.5172 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.6712, allocations: 0 / 0.5172 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004722/0.6717, allocations: 257.7 kB / 0.5174 GB, free: 488 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000615/0.6723, allocations: 21.88 kB / 0.5174 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.6735, allocations: 385.8 kB / 0.5178 GB, free: 252 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004852/0.674, allocations: 0.7173 MB / 0.5185 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.674, allocations: 8.469 kB / 0.5185 GB, free: 15.54 MB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.674, allocations: 0 / 0.5185 GB, free: 15.54 MB / 398.1 MB Notification: Performance of Templates: time 0.0367/0.7107, allocations: 6.157 MB / 0.5245 GB, free: 13.85 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches