Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 111.1 kB / 17.06 MB, free: 5.992 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.002116/0.002116, allocations: 200 kB / 18.01 MB, free: 5.066 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.426/1.426, allocations: 222.9 MB / 241.7 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.1724/0.1724, allocations: 38.05 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 59.91 kB / 458.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4426/0.4439, allocations: 58.06 MB / 0.5041 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.00687/0.4508, allocations: 5.433 MB / 0.5094 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002199/0.453, allocations: 1.099 MB / 0.5105 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.4533, allocations: 19.31 kB / 0.5105 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003028/0.4536, allocations: 78.05 kB / 0.5106 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000767/0.4544, allocations: 297.3 kB / 0.5109 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003094/0.4547, allocations: 141.8 kB / 0.511 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009138/0.4556, allocations: 0.6995 MB / 0.5117 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003936/0.456, allocations: 182.2 kB / 0.5118 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004348/0.4565, allocations: 317 kB / 0.5121 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006173/0.4571, allocations: 329.6 kB / 0.5125 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.013e-05/0.4572, allocations: 32.41 kB / 0.5125 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.598e-05/0.4573, allocations: 33.75 kB / 0.5125 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002211/0.4575, allocations: 154.1 kB / 0.5127 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002418/0.4578, allocations: 242.3 kB / 0.5129 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006366/0.4584, allocations: 0.4895 MB / 0.5134 GB, free: 1.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.4584, allocations: 6 kB / 0.5134 GB, free: 1.895 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4585, allocations: 0 / 0.5134 GB, free: 1.895 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.51e-05/0.4585, allocations: 0 / 0.5134 GB, free: 1.895 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001426/0.4599, allocations: 0.808 MB / 0.5142 GB, free: 1.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.46, allocations: 9.516 kB / 0.5142 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.4601, allocations: 54.77 kB / 0.5142 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008311/0.4609, allocations: 472.6 kB / 0.5147 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.885e-05/0.461, allocations: 31.81 kB / 0.5147 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.569e-05/0.4611, allocations: 37.72 kB / 0.5148 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007486/0.4618, allocations: 457.4 kB / 0.5152 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.4618, allocations: 5.672 kB / 0.5152 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.042e-05/0.4619, allocations: 17.25 kB / 0.5152 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.4619, allocations: 8.156 kB / 0.5152 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005708/0.4625, allocations: 309.1 kB / 0.5155 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002312/0.4648, allocations: 1.762 MB / 0.5172 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.4651, allocations: 142.3 kB / 0.5174 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.4652, allocations: 61.61 kB / 0.5174 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.167e-05/0.4653, allocations: 5.062 kB / 0.5174 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.507e-05/0.4653, allocations: 33.52 kB / 0.5175 GB, free: 14.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.4653, allocations: 0 / 0.5175 GB, free: 14.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001153/0.4665, allocations: 0.6211 MB / 0.5181 GB, free: 14.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/0.4666, allocations: 105.2 kB / 0.5182 GB, free: 14.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005208/0.4671, allocations: 374.6 kB / 0.5185 GB, free: 14.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.4671, allocations: 27.05 kB / 0.5186 GB, free: 14.1 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002232/0.4674, allocations: 287.4 kB / 0.5188 GB, free: 13.87 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.87e-05/0.4674, allocations: 65.28 kB / 0.5189 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.886e-05/0.4675, allocations: 56.8 kB / 0.5189 GB, free: 13.78 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.4677, allocations: 350.8 kB / 0.5193 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.4678, allocations: 48.78 kB / 0.5193 GB, free: 13.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.468, allocations: 197.5 kB / 0.5195 GB, free: 13.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.4683, allocations: 267.7 kB / 0.5198 GB, free: 12.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.4683, allocations: 2.594 kB / 0.5198 GB, free: 12.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004529/0.4688, allocations: 297 kB / 0.5201 GB, free: 12.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.4688, allocations: 7.688 kB / 0.5201 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.4688, allocations: 4.906 kB / 0.5201 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.4688, allocations: 7 kB / 0.5201 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.4691, allocations: 69.88 kB / 0.5201 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/0.4691, allocations: 12.05 kB / 0.5202 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.4693, allocations: 14.38 kB / 0.5202 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.4693, allocations: 13.22 kB / 0.5202 GB, free: 12.8 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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.0002026/0.4695, allocations: 191.7 kB / 0.5204 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.715e-05/0.4696, allocations: 45.41 kB / 0.5204 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003052/0.4699, allocations: 168.1 kB / 0.5206 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.4699, allocations: 3.594 kB / 0.5206 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.099e-05/0.47, allocations: 1.438 kB / 0.5206 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.47, allocations: 5.109 kB / 0.5206 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007321/0.4707, allocations: 0.5225 MB / 0.5211 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4707, allocations: 1.375 kB / 0.5211 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.4709, allocations: 39.81 kB / 0.5211 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.418e-06/0.4709, allocations: 2.844 kB / 0.5211 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.471, allocations: 9.719 kB / 0.5211 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.471, allocations: 2.656 kB / 0.5211 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.471, allocations: 5.094 kB / 0.5211 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004533/0.4714, allocations: 403.6 kB / 0.5215 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.619e-05/0.4715, allocations: 112.7 kB / 0.5216 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.611e-05/0.4716, allocations: 7.188 kB / 0.5216 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.4718, allocations: 5.25 kB / 0.5217 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.619e-05/0.4718, allocations: 18.94 kB / 0.5217 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.4718, allocations: 3.75 kB / 0.5217 GB, free: 11.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000304/0.4721, allocations: 252.9 kB / 0.5219 GB, free: 11.54 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4721, allocations: 0 / 0.5219 GB, free: 11.54 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004371/0.4726, allocations: 72.88 kB / 0.522 GB, free: 11.53 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001055/0.4727, allocations: 106.4 kB / 0.5221 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003021/0.473, allocations: 152.9 kB / 0.5222 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.473, allocations: 5.125 kB / 0.5222 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.4731, allocations: 55.81 kB / 0.5223 GB, free: 11.36 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000704/0.4738, allocations: 96.11 kB / 0.5224 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.4753, allocations: 0.8767 MB / 0.5232 GB, free: 10.76 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.4757, allocations: 0.8378 MB / 0.5241 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001542/0.4759, allocations: 47.23 kB / 0.5241 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.367e-05/0.476, allocations: 28.62 kB / 0.5241 GB, free: 10.04 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.476, allocations: 4 kB / 0.5241 GB, free: 10.03 MB / 398.1 MB Notification: Performance of Templates: time 0.008319/0.4843, allocations: 3.289 MB / 0.5273 GB, free: 9.762 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches