Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 107.6 kB / 17.06 MB, free: 5.824 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.001123/0.001123, allocations: 192 kB / 18 MB, free: 4.977 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.391/1.391, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1828/0.1828, allocations: 38.02 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 71.88 kB / 458.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4109/0.4122, allocations: 58.05 MB / 0.5041 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006136/0.4184, allocations: 4.931 MB / 0.5089 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00338/0.4218, allocations: 2.474 MB / 0.5113 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000339/0.4221, allocations: 14.09 kB / 0.5113 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001318/0.4235, allocations: 437.1 kB / 0.5117 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001415/0.4249, allocations: 0.5114 MB / 0.5122 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008459/0.4258, allocations: 282.4 kB / 0.5125 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008489/0.4266, allocations: 0.7465 MB / 0.5132 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005221/0.4272, allocations: 339.1 kB / 0.5136 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004562/0.4276, allocations: 319.1 kB / 0.5139 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004456/0.4281, allocations: 329.9 kB / 0.5142 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.411e-05/0.4282, allocations: 36.31 kB / 0.5142 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001153/0.4293, allocations: 0.6291 MB / 0.5148 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002307/0.4296, allocations: 203.5 kB / 0.515 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003106/0.4299, allocations: 244.4 kB / 0.5153 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001198/0.4311, allocations: 0.7643 MB / 0.516 GB, free: 444 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.4311, allocations: 0 / 0.516 GB, free: 444 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4311, allocations: 1.125 kB / 0.516 GB, free: 444 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.4312, allocations: 0 / 0.516 GB, free: 444 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001238/0.4324, allocations: 0.7697 MB / 0.5168 GB, free: 15.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.4325, allocations: 17.48 kB / 0.5168 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00178/0.4343, allocations: 203.4 kB / 0.517 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000662/0.4349, allocations: 369.2 kB / 0.5173 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.958e-05/0.435, allocations: 34.44 kB / 0.5174 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.4351, allocations: 44.66 kB / 0.5174 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.4363, allocations: 0.6263 MB / 0.518 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.4363, allocations: 6.281 kB / 0.518 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.654e-05/0.4364, allocations: 20.27 kB / 0.518 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.669e-05/0.4365, allocations: 32.08 kB / 0.5181 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.4375, allocations: 0.6146 MB / 0.5187 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003806/0.4413, allocations: 2.24 MB / 0.5209 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007107/0.442, allocations: 497.6 kB / 0.5213 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003643/0.4424, allocations: 234.4 kB / 0.5216 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.303e-05/0.4425, allocations: 8.953 kB / 0.5216 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.4425, allocations: 37.88 kB / 0.5216 GB, free: 13.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.114e-06/0.4425, allocations: 5.438 kB / 0.5216 GB, free: 13.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003758/0.4463, allocations: 1.696 MB / 0.5233 GB, free: 12.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.4464, allocations: 82.08 kB / 0.5233 GB, free: 12.15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003812/0.4467, allocations: 288.2 kB / 0.5236 GB, free: 11.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.4468, allocations: 35.2 kB / 0.5236 GB, free: 11.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.447, allocations: 232.9 kB / 0.5239 GB, free: 11.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.4471, allocations: 153.3 kB / 0.524 GB, free: 11.63 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.4473, allocations: 85.22 kB / 0.5241 GB, free: 11.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.4475, allocations: 348.6 kB / 0.5244 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003521/0.4478, allocations: 177.9 kB / 0.5246 GB, free: 11.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004057/0.4482, allocations: 287.8 kB / 0.5249 GB, free: 11.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007406/0.449, allocations: 0.5085 MB / 0.5254 GB, free: 10.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.449, allocations: 1.344 kB / 0.5254 GB, free: 10.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001289/0.4503, allocations: 0.6801 MB / 0.526 GB, free: 10.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.4503, allocations: 7.344 kB / 0.526 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.4503, allocations: 3.844 kB / 0.526 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006469/0.451, allocations: 180.5 kB / 0.5262 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/0.4514, allocations: 98.23 kB / 0.5263 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003763/0.4552, allocations: 2.778 MB / 0.529 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003569/0.4555, allocations: 22.17 kB / 0.529 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.135e-05/0.4556, allocations: 19.59 kB / 0.5291 GB, free: 8.348 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003038/0.4559, allocations: 207 kB / 0.5293 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.172e-05/0.456, allocations: 34.7 kB / 0.5293 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001613/0.4576, allocations: 0.6394 MB / 0.5299 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.4576, allocations: 4.281 kB / 0.5299 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.4576, allocations: 1.406 kB / 0.5299 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.4577, allocations: 6.188 kB / 0.5299 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002734/0.4604, allocations: 1.34 MB / 0.5312 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.4604, allocations: 5.688 kB / 0.5312 GB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003796/0.4608, allocations: 80.97 kB / 0.5313 GB, free: 7.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005092/0.4613, allocations: 147.5 kB / 0.5315 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.721e-05/0.4614, allocations: 19.7 kB / 0.5315 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003834/0.4652, allocations: 2.559 MB / 0.534 GB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/0.4653, allocations: 5.422 kB / 0.534 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/0.467, allocations: 0.9663 MB / 0.5349 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001636/0.4671, allocations: 103.5 kB / 0.535 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.915e-05/0.4672, allocations: 16 kB / 0.535 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.4675, allocations: 12.81 kB / 0.5351 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.4676, allocations: 34.7 kB / 0.5351 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.748e-05/0.4676, allocations: 14.19 kB / 0.5351 GB, free: 4.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002489/0.4679, allocations: 199.8 kB / 0.5353 GB, free: 4.047 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4679, allocations: 0 / 0.5353 GB, free: 4.047 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008146/0.4687, allocations: 139 kB / 0.5354 GB, free: 4.031 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * 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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001697/0.4689, allocations: 102.8 kB / 0.5355 GB, free: 3.938 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.4707, allocations: 0.6794 MB / 0.5362 GB, free: 3.551 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.4707, allocations: 2.094 kB / 0.5362 GB, free: 3.551 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.4718, allocations: 434.6 kB / 0.5366 GB, free: 3.281 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007315/0.4726, allocations: 63.5 kB / 0.5367 GB, free: 3.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.4754, allocations: 1.115 MB / 0.5377 GB, free: 2.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006648/0.4761, allocations: 0.8791 MB / 0.5386 GB, free: 1.707 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002626/0.4763, allocations: 72.69 kB / 0.5387 GB, free: 1.676 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.4765, allocations: 37.89 kB / 0.5387 GB, free: 1.66 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4765, allocations: 0 / 0.5387 GB, free: 1.66 MB / 398.1 MB Notification: Performance of Templates: time 0.01485/0.4913, allocations: 5.823 MB / 0.5444 GB, free: 14.32 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)