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.001299/0.001299, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.001416/0.001416, allocations: 191 kB / 18 MB, free: 5.102 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.433/1.433, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1738/0.1738, allocations: 38.04 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.89 kB / 458.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3632/0.3645, allocations: 58.06 MB / 0.5041 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.005693/0.3702, allocations: 5.5 MB / 0.5095 GB, free: 3.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.3724, allocations: 1.369 MB / 0.5108 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004066/0.3728, allocations: 15.06 kB / 0.5108 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006169/0.3735, allocations: 136.5 kB / 0.511 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001181/0.3747, allocations: 381.9 kB / 0.5113 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004786/0.3752, allocations: 152.5 kB / 0.5115 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009847/0.3762, allocations: 0.7814 MB / 0.5122 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000386/0.3766, allocations: 220.3 kB / 0.5124 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004955/0.3771, allocations: 340.2 kB / 0.5128 GB, free: 2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006458/0.3778, allocations: 404.1 kB / 0.5131 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.415e-05/0.3778, allocations: 43.94 kB / 0.5132 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.378, allocations: 39.53 kB / 0.5132 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002071/0.3782, allocations: 203.4 kB / 0.5134 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002454/0.3784, allocations: 282.3 kB / 0.5137 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007496/0.3792, allocations: 0.5797 MB / 0.5143 GB, free: 1.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3792, allocations: 1.219 kB / 0.5143 GB, free: 1.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3792, allocations: 0 / 0.5143 GB, free: 1.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.3792, allocations: 4.641 kB / 0.5143 GB, free: 1.359 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.001461/0.3807, allocations: 0.8976 MB / 0.5151 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.3807, allocations: 18.14 kB / 0.5152 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.3809, allocations: 64.58 kB / 0.5152 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008435/0.3817, allocations: 0.5152 MB / 0.5157 GB, free: 304 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.502e-05/0.3818, allocations: 34.62 kB / 0.5158 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.579e-05/0.3819, allocations: 44.09 kB / 0.5158 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009422/0.3828, allocations: 0.5294 MB / 0.5163 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.3828, allocations: 3.938 kB / 0.5163 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.372e-05/0.3829, allocations: 17.11 kB / 0.5163 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.889e-05/0.383, allocations: 24.41 kB / 0.5164 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00086/0.3839, allocations: 390.5 kB / 0.5167 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003011/0.3869, allocations: 1.919 MB / 0.5186 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006419/0.3875, allocations: 340 kB / 0.5189 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003493/0.3879, allocations: 180.4 kB / 0.5191 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.3879, allocations: 3.703 kB / 0.5191 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003832/0.3883, allocations: 290 kB / 0.5194 GB, free: 14.03 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.763e-06/0.3883, allocations: 0 / 0.5194 GB, free: 14.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002274/0.3906, allocations: 1.193 MB / 0.5205 GB, free: 13.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.3907, allocations: 174.1 kB / 0.5207 GB, free: 13.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004919/0.3912, allocations: 399 kB / 0.5211 GB, free: 12.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.3913, allocations: 31.95 kB / 0.5211 GB, free: 12.86 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.3915, allocations: 296.6 kB / 0.5214 GB, free: 12.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.3916, allocations: 121.3 kB / 0.5215 GB, free: 12.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.3917, allocations: 97.58 kB / 0.5216 GB, free: 12.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.3919, allocations: 357.6 kB / 0.522 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.3921, allocations: 120.2 kB / 0.5221 GB, free: 12.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003241/0.3924, allocations: 297.8 kB / 0.5223 GB, free: 11.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005328/0.393, allocations: 478 kB / 0.5228 GB, free: 11.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.393, allocations: 1.375 kB / 0.5228 GB, free: 11.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007689/0.3938, allocations: 0.5206 MB / 0.5233 GB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.679e-05/0.3938, allocations: 33.38 kB / 0.5233 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.3938, allocations: 10.09 kB / 0.5234 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.3939, allocations: 8.25 kB / 0.5234 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004085/0.3943, allocations: 108.2 kB / 0.5235 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.032e-05/0.3943, allocations: 12.53 kB / 0.5235 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.3946, allocations: 22.94 kB / 0.5235 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.58e-05/0.3947, allocations: 36.11 kB / 0.5235 GB, free: 11.15 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.0003277/0.395, allocations: 255.3 kB / 0.5238 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.693e-05/0.3951, allocations: 53.23 kB / 0.5238 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007892/0.3959, allocations: 456 kB / 0.5243 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.3959, allocations: 7.781 kB / 0.5243 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.3959, allocations: 1.781 kB / 0.5243 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.3959, allocations: 1.781 kB / 0.5243 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001501/0.3974, allocations: 0.9788 MB / 0.5252 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.3975, allocations: 1.859 kB / 0.5252 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002897/0.3978, allocations: 60.3 kB / 0.5253 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.3978, allocations: 1.781 kB / 0.5253 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.3978, allocations: 15.7 kB / 0.5253 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.3978, allocations: 2.688 kB / 0.5253 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3978, allocations: 2.094 kB / 0.5253 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.3988, allocations: 0.7095 MB / 0.526 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.399, allocations: 148.3 kB / 0.5261 GB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.292e-05/0.3991, allocations: 8.984 kB / 0.5262 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.3993, allocations: 15.31 kB / 0.5262 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.342e-05/0.3994, allocations: 30.48 kB / 0.5262 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.596e-05/0.3994, allocations: 32.47 kB / 0.5262 GB, free: 9.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003208/0.3998, allocations: 269.1 kB / 0.5265 GB, free: 9.441 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.81e-07/0.3998, allocations: 0 / 0.5265 GB, free: 9.441 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005005/0.4003, allocations: 102.2 kB / 0.5266 GB, free: 9.43 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.000151/0.4004, allocations: 112.4 kB / 0.5267 GB, free: 9.332 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006258/0.4011, allocations: 409.1 kB / 0.5271 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4011, allocations: 0 / 0.5271 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003347/0.4014, allocations: 266 kB / 0.5273 GB, free: 9.023 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006419/0.4021, allocations: 112 kB / 0.5274 GB, free: 8.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.4037, allocations: 0.9852 MB / 0.5284 GB, free: 8.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005567/0.4043, allocations: 0.8795 MB / 0.5293 GB, free: 7.715 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003049/0.4046, allocations: 94.11 kB / 0.5294 GB, free: 7.691 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.792e-05/0.4047, allocations: 39.89 kB / 0.5294 GB, free: 7.68 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4047, allocations: 0 / 0.5294 GB, free: 7.68 MB / 398.1 MB Notification: Performance of Templates: time 0.009548/0.4143, allocations: 4.338 MB / 0.5336 GB, free: 6.25 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)