Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001705/0.001706, allocations: 196 kB / 18 MB, free: 5.051 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.551/1.551, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1787/0.1787, allocations: 38.03 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 59.91 kB / 458.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4346/0.4359, allocations: 58.06 MB / 0.5041 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.004914/0.4409, allocations: 4.42 MB / 0.5084 GB, free: 4.707 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002404/0.4433, allocations: 1.419 MB / 0.5098 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002285/0.4435, allocations: 17.28 kB / 0.5098 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001084/0.4446, allocations: 381 kB / 0.5102 GB, free: 3.484 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000536/0.4452, allocations: 226.9 kB / 0.5104 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006416/0.4458, allocations: 239.9 kB / 0.5106 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000532/0.4464, allocations: 0.5336 MB / 0.5111 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004167/0.4468, allocations: 276.8 kB / 0.5114 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.4471, allocations: 244.4 kB / 0.5116 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004423/0.4476, allocations: 295 kB / 0.5119 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.961e-05/0.4477, allocations: 32.41 kB / 0.5119 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003355/0.448, allocations: 139 kB / 0.5121 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002683/0.4483, allocations: 221.9 kB / 0.5123 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002396/0.4485, allocations: 239.4 kB / 0.5125 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007839/0.4493, allocations: 0.5684 MB / 0.5131 GB, free: 2.242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.4493, allocations: 1.062 kB / 0.5131 GB, free: 2.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4493, allocations: 0 / 0.5131 GB, free: 2.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.4494, allocations: 0 / 0.5131 GB, free: 2.242 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.00126/0.4506, allocations: 0.7434 MB / 0.5138 GB, free: 1.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.4507, allocations: 14.75 kB / 0.5138 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005347/0.4512, allocations: 88.58 kB / 0.5139 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006247/0.4518, allocations: 410.7 kB / 0.5143 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.4519, allocations: 30.52 kB / 0.5143 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.452, allocations: 51.72 kB / 0.5144 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009015/0.4529, allocations: 0.6217 MB / 0.515 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.453, allocations: 6 kB / 0.515 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.683e-05/0.453, allocations: 22.11 kB / 0.515 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000117/0.4531, allocations: 28.28 kB / 0.515 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008121/0.454, allocations: 485.9 kB / 0.5155 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003377/0.4573, allocations: 2.886 MB / 0.5183 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00042/0.4578, allocations: 237.4 kB / 0.5185 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/0.458, allocations: 145 kB / 0.5187 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.4581, allocations: 4.984 kB / 0.5187 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.4581, allocations: 37.09 kB / 0.5187 GB, free: 14.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 4.067e-06/0.4581, allocations: 0 / 0.5187 GB, free: 14.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001713/0.4598, allocations: 0.9785 MB / 0.5197 GB, free: 13.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.4599, allocations: 81.7 kB / 0.5197 GB, free: 13.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003512/0.4602, allocations: 321.8 kB / 0.52 GB, free: 13.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.4603, allocations: 31.92 kB / 0.5201 GB, free: 13.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.4605, allocations: 289.1 kB / 0.5204 GB, free: 13.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.661e-05/0.4606, allocations: 102.5 kB / 0.5205 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/0.4608, allocations: 91.89 kB / 0.5205 GB, free: 13.01 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.461, allocations: 355.5 kB / 0.5209 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.4612, allocations: 143.5 kB / 0.521 GB, free: 12.63 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003744/0.4616, allocations: 347.5 kB / 0.5213 GB, free: 12.33 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006818/0.4623, allocations: 0.5234 MB / 0.5219 GB, free: 11.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.4623, allocations: 2.125 kB / 0.5219 GB, free: 11.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008541/0.4632, allocations: 0.5235 MB / 0.5224 GB, free: 11.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.4632, allocations: 7.781 kB / 0.5224 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.4632, allocations: 7.625 kB / 0.5224 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.864e-05/0.4633, allocations: 13.62 kB / 0.5224 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004305/0.4637, allocations: 119.2 kB / 0.5225 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.823e-05/0.4637, allocations: 18.95 kB / 0.5225 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002661/0.464, allocations: 31 kB / 0.5226 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.282e-05/0.4641, allocations: 23.91 kB / 0.5226 GB, free: 11.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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.0002814/0.4644, allocations: 215.7 kB / 0.5228 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.498e-05/0.4644, allocations: 31.59 kB / 0.5228 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007153/0.4652, allocations: 365 kB / 0.5232 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.4652, allocations: 4.906 kB / 0.5232 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.4652, allocations: 4.75 kB / 0.5232 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.4652, allocations: 3.141 kB / 0.5232 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.4667, allocations: 0.879 MB / 0.524 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.4667, allocations: 5.312 kB / 0.524 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003124/0.467, allocations: 72.75 kB / 0.5241 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.022e-06/0.467, allocations: 2.75 kB / 0.5241 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.998e-05/0.4671, allocations: 9.438 kB / 0.5241 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.4671, allocations: 9.906 kB / 0.5241 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4671, allocations: 1.375 kB / 0.5241 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008596/0.468, allocations: 0.5947 MB / 0.5247 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.081e-05/0.4681, allocations: 108 kB / 0.5248 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.37e-05/0.4681, allocations: 9.578 kB / 0.5248 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.4683, allocations: 14.48 kB / 0.5248 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.526e-05/0.4684, allocations: 20 kB / 0.5249 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.622e-05/0.4684, allocations: 8.734 kB / 0.5249 GB, free: 10.33 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003069/0.4687, allocations: 220.3 kB / 0.5251 GB, free: 10.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4687, allocations: 4 kB / 0.5251 GB, free: 10.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004954/0.4692, allocations: 93.31 kB / 0.5252 GB, free: 10.2 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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.0001329/0.4694, allocations: 104.2 kB / 0.5253 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006605/0.47, allocations: 375.1 kB / 0.5256 GB, free: 9.988 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.47, allocations: 0 / 0.5256 GB, free: 9.988 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002329/0.4703, allocations: 143.4 kB / 0.5258 GB, free: 9.945 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000533/0.4708, allocations: 63.48 kB / 0.5258 GB, free: 9.922 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.4727, allocations: 1.01 MB / 0.5268 GB, free: 9.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005541/0.4733, allocations: 0.8553 MB / 0.5276 GB, free: 8.605 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003518/0.4736, allocations: 135.8 kB / 0.5278 GB, free: 8.586 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.768e-05/0.4737, allocations: 31.84 kB / 0.5278 GB, free: 8.578 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4737, allocations: 0 / 0.5278 GB, free: 8.578 MB / 398.1 MB Notification: Performance of Templates: time 0.008499/0.4822, allocations: 3.42 MB / 0.5311 GB, free: 7.707 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)