Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001627/0.001627, allocations: 109.1 kB / 17.06 MB, free: 6 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.00188/0.00188, allocations: 200 kB / 18.01 MB, free: 5.074 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.447/1.447, 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/package.mo): time 0.1851/0.1851, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 63.91 kB / 458.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3587, allocations: 58.05 MB / 0.5041 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006064/0.3648, allocations: 5.513 MB / 0.5095 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002132/0.367, allocations: 1.354 MB / 0.5108 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003057/0.3673, allocations: 19.62 kB / 0.5108 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004277/0.3677, allocations: 140.8 kB / 0.5109 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008573/0.3686, allocations: 386.2 kB / 0.5113 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003827/0.369, allocations: 153.8 kB / 0.5115 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008077/0.3698, allocations: 0.785 MB / 0.5122 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003199/0.3702, allocations: 225 kB / 0.5124 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004832/0.3707, allocations: 349.6 kB / 0.5128 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005945/0.3713, allocations: 399.5 kB / 0.5132 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.991e-05/0.3713, allocations: 44.31 kB / 0.5132 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.349e-05/0.3715, allocations: 39.69 kB / 0.5132 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002264/0.3717, allocations: 205.3 kB / 0.5134 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002607/0.372, allocations: 275.2 kB / 0.5137 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006398/0.3726, allocations: 0.5808 MB / 0.5143 GB, free: 1.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3726, allocations: 0 / 0.5143 GB, free: 1.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3726, allocations: 5.25 kB / 0.5143 GB, free: 1.426 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.422e-05/0.3726, allocations: 0 / 0.5143 GB, free: 1.426 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.00129/0.3739, allocations: 0.8848 MB / 0.5151 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.374, allocations: 20.7 kB / 0.5152 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.715e-05/0.3741, allocations: 62.62 kB / 0.5152 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007164/0.3748, allocations: 0.5026 MB / 0.5157 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.3749, allocations: 34.77 kB / 0.5157 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.124e-05/0.3749, allocations: 38.88 kB / 0.5158 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008512/0.3758, allocations: 0.5377 MB / 0.5163 GB, free: 100 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.3758, allocations: 4.5 kB / 0.5163 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.793e-05/0.3759, allocations: 16.91 kB / 0.5163 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.011e-05/0.3759, allocations: 20.09 kB / 0.5163 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007653/0.3767, allocations: 399 kB / 0.5167 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002654/0.3794, allocations: 1.911 MB / 0.5186 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005877/0.38, allocations: 347.9 kB / 0.5189 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003195/0.3803, allocations: 185.2 kB / 0.5191 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.3803, allocations: 3.406 kB / 0.5191 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003999/0.3807, allocations: 285.7 kB / 0.5194 GB, free: 14.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.124e-06/0.3808, allocations: 0 / 0.5194 GB, free: 14.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.001877/0.3826, allocations: 1.181 MB / 0.5205 GB, free: 13.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.047e-05/0.3827, allocations: 160.1 kB / 0.5207 GB, free: 13.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004519/0.3832, allocations: 399.1 kB / 0.5211 GB, free: 13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.3832, allocations: 31.98 kB / 0.5211 GB, free: 12.97 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.3835, allocations: 302.5 kB / 0.5214 GB, free: 12.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.3836, allocations: 113 kB / 0.5215 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001371/0.3837, allocations: 96.84 kB / 0.5216 GB, free: 12.58 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3839, allocations: 356.1 kB / 0.5219 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/0.3841, allocations: 121.6 kB / 0.522 GB, free: 12.21 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003207/0.3844, allocations: 296.9 kB / 0.5223 GB, free: 11.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005703/0.385, allocations: 479.3 kB / 0.5228 GB, free: 11.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.385, allocations: 3.312 kB / 0.5228 GB, free: 11.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007801/0.3858, allocations: 0.5181 MB / 0.5233 GB, free: 11.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.668e-05/0.3858, allocations: 39.06 kB / 0.5233 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.3859, allocations: 13.27 kB / 0.5233 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.612e-05/0.3859, allocations: 9.875 kB / 0.5233 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004493/0.3863, allocations: 114.7 kB / 0.5234 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.859e-05/0.3864, allocations: 14.58 kB / 0.5235 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.3867, allocations: 17.84 kB / 0.5235 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-05/0.3867, allocations: 32.91 kB / 0.5235 GB, free: 11.25 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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.0002968/0.387, allocations: 245.9 kB / 0.5237 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.237e-05/0.3871, allocations: 49.69 kB / 0.5238 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007368/0.3878, allocations: 456.2 kB / 0.5242 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.3879, allocations: 8.719 kB / 0.5242 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.3879, allocations: 4 kB / 0.5242 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.3879, allocations: 2.688 kB / 0.5242 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.3893, allocations: 0.9745 MB / 0.5252 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3894, allocations: 1.312 kB / 0.5252 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003112/0.3897, allocations: 65.53 kB / 0.5253 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.3897, allocations: 5.406 kB / 0.5253 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.3897, allocations: 11.52 kB / 0.5253 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.3897, allocations: 3.109 kB / 0.5253 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3897, allocations: 0.9062 kB / 0.5253 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009618/0.3907, allocations: 0.7061 MB / 0.526 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.3909, allocations: 143.4 kB / 0.5261 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.497e-05/0.391, allocations: 9.422 kB / 0.5261 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.3912, allocations: 15.78 kB / 0.5261 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/0.3913, allocations: 25.72 kB / 0.5262 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-05/0.3914, allocations: 36.58 kB / 0.5262 GB, free: 9.688 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003243/0.3917, allocations: 268.2 kB / 0.5264 GB, free: 9.559 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3917, allocations: 0 / 0.5264 GB, free: 9.559 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005233/0.3922, allocations: 102.1 kB / 0.5265 GB, free: 9.547 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.0001277/0.3924, allocations: 115.4 kB / 0.5267 GB, free: 9.449 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006942/0.3931, allocations: 411.3 kB / 0.527 GB, free: 9.277 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3931, allocations: 0 / 0.527 GB, free: 9.277 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003366/0.3934, allocations: 258.2 kB / 0.5273 GB, free: 9.148 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006669/0.3941, allocations: 105.3 kB / 0.5274 GB, free: 9.105 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.3959, allocations: 0.9715 MB / 0.5283 GB, free: 8.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005617/0.3965, allocations: 0.8802 MB / 0.5292 GB, free: 7.855 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000318/0.3968, allocations: 93.94 kB / 0.5293 GB, free: 7.832 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.918e-05/0.3969, allocations: 40.08 kB / 0.5293 GB, free: 7.82 MB / 398.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3969, allocations: 0 / 0.5293 GB, free: 7.82 MB / 398.1 MB Notification: Performance of Templates: time 0.01022/0.4072, allocations: 4.338 MB / 0.5336 GB, free: 6.32 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)