Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.CityTest.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.CityTest") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001309/0.001309, allocations: 187.5 kB / 16.38 MB, free: 5.598 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.707/1.707, allocations: 194.5 MB / 211.6 MB, free: 11.15 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001834/0.001834, allocations: 120.7 kB / 256.9 MB, free: 14.41 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.3732/0.3732, allocations: 38.01 MB / 340.1 MB, free: 16.94 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004768/0.000477, allocations: 8 kB / 403.8 MB, free: 1.117 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2638, allocations: 53.21 MB / 457 MB, free: 27.22 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003665/0.2675, allocations: 3.247 MB / 460.3 MB, free: 24.9 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002366/0.2699, allocations: 1.618 MB / 461.9 MB, free: 23.72 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.2701, allocations: 10.91 kB / 461.9 MB, free: 23.72 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002651/0.2704, allocations: 64.2 kB / 461.9 MB, free: 23.67 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004256/0.2708, allocations: 165.8 kB / 462.1 MB, free: 23.54 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003554/0.2712, allocations: 134.8 kB / 462.2 MB, free: 23.44 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002921/0.2715, allocations: 222.5 kB / 462.5 MB, free: 23.29 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000581/0.2721, allocations: 331.4 kB / 462.8 MB, free: 23.04 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000301/0.2724, allocations: 141.4 kB / 462.9 MB, free: 22.96 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.2726, allocations: 106.3 kB / 463 MB, free: 22.9 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.832e-05/0.2726, allocations: 12.03 kB / 463 MB, free: 22.9 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003729/0.273, allocations: 163.8 kB / 463.2 MB, free: 22.82 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.675e-05/0.2731, allocations: 91.28 kB / 463.3 MB, free: 22.77 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.338e-05/0.2732, allocations: 79.2 kB / 463.4 MB, free: 22.71 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005055/0.2738, allocations: 394.9 kB / 463.7 MB, free: 22.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.331e-06/0.2738, allocations: 0 / 463.7 MB, free: 22.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.526e-06/0.2738, allocations: 0 / 463.7 MB, free: 22.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.165e-06/0.2738, allocations: 11.88 kB / 463.8 MB, free: 22.45 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007097/0.2745, allocations: 0.6221 MB / 464.4 MB, free: 21.85 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.2746, allocations: 13.3 kB / 464.4 MB, free: 21.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008617/0.2754, allocations: 92.8 kB / 464.5 MB, free: 21.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004683/0.2759, allocations: 357.4 kB / 464.8 MB, free: 21.47 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.276, allocations: 16.33 kB / 464.9 MB, free: 21.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.842e-05/0.276, allocations: 21.8 kB / 464.9 MB, free: 21.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006385/0.2767, allocations: 364 kB / 465.2 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.2767, allocations: 5.016 kB / 465.2 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.596e-05/0.2768, allocations: 9.906 kB / 465.2 MB, free: 21.19 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.568e-05/0.2768, allocations: 17.36 kB / 465.3 MB, free: 21.19 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000803/0.2776, allocations: 395.9 kB / 465.6 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.2795, allocations: 1.591 MB / 467.2 MB, free: 19.59 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007962/0.2803, allocations: 343.4 kB / 467.6 MB, free: 19.4 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.2804, allocations: 9.469 kB / 467.6 MB, free: 19.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003523/0.2808, allocations: 200.1 kB / 467.8 MB, free: 19.24 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.591e-06/0.2808, allocations: 5.219 kB / 467.8 MB, free: 19.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009486/0.2817, allocations: 394.5 kB / 468.2 MB, free: 19.05 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.2818, allocations: 131.9 kB / 468.3 MB, free: 18.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.2821, allocations: 294.3 kB / 468.6 MB, free: 18.69 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.2822, allocations: 32.98 kB / 468.6 MB, free: 18.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.2823, allocations: 176.4 kB / 468.8 MB, free: 18.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.594e-05/0.2824, allocations: 80.97 kB / 468.9 MB, free: 18.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.045e-05/0.2824, allocations: 5.719 kB / 468.9 MB, free: 18.42 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.1e-05/0.2825, allocations: 346.7 kB / 469.2 MB, free: 18.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.2827, allocations: 111.3 kB / 469.3 MB, free: 18.03 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002866/0.283, allocations: 201.2 kB / 469.5 MB, free: 17.86 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/0.2834, allocations: 180.4 kB / 469.7 MB, free: 17.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.592e-06/0.2834, allocations: 0 / 469.7 MB, free: 17.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008451/0.2842, allocations: 451.4 kB / 470.1 MB, free: 17.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.2843, allocations: 33.67 kB / 470.2 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2843, allocations: 3.375 kB / 470.2 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.2843, allocations: 4.281 kB / 470.2 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003143/0.2847, allocations: 69.52 kB / 470.2 MB, free: 17.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.2847, allocations: 8.375 kB / 470.2 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.2849, allocations: 33.59 kB / 470.3 MB, free: 17.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.238e-05/0.2849, allocations: 17.12 kB / 470.3 MB, free: 17.43 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.2851, allocations: 195 kB / 470.5 MB, free: 17.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.805e-05/0.2852, allocations: 28.88 kB / 470.5 MB, free: 17.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007117/0.2859, allocations: 332.6 kB / 470.8 MB, free: 16.97 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.588e-06/0.2859, allocations: 4 kB / 470.8 MB, free: 16.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.958e-06/0.286, allocations: 0 / 470.8 MB, free: 16.97 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.59e-06/0.286, allocations: 4 kB / 470.9 MB, free: 16.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.287, allocations: 0.7752 MB / 471.6 MB, free: 16.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.472e-06/0.287, allocations: 0 / 471.6 MB, free: 16.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.2872, allocations: 43.92 kB / 471.7 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.202e-06/0.2872, allocations: 0 / 471.7 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.2873, allocations: 11.98 kB / 471.7 MB, free: 16.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.151e-06/0.2873, allocations: 4 kB / 471.7 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.2873, allocations: 0 / 471.7 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005858/0.2879, allocations: 448.2 kB / 472.1 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.288, allocations: 140.6 kB / 472.3 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.385e-05/0.2881, allocations: 12 kB / 472.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001814/0.2883, allocations: 4 kB / 472.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.744e-05/0.2884, allocations: 31.86 kB / 472.3 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.817e-05/0.2884, allocations: 8 kB / 472.3 MB, free: 15.39 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001986/0.2887, allocations: 205.9 kB / 472.5 MB, free: 15.19 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2887, allocations: 3.938 kB / 472.5 MB, free: 15.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00046/0.2891, allocations: 87.89 kB / 472.6 MB, free: 15.1 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,$whenCondition1,city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of discrete states: 2 (city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001426/0.2906, allocations: 471.2 kB / 473.1 MB, free: 14.69 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006014/0.2912, allocations: 355.1 kB / 473.4 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.199e-06/0.2912, allocations: 4 kB / 473.4 MB, free: 14.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002287/0.2915, allocations: 116.5 kB / 473.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003776/0.2919, allocations: 52.98 kB / 473.6 MB, free: 14.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009693/0.2929, allocations: 0.6786 MB / 474.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.2931, allocations: 0.7994 MB / 475.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002725/0.2934, allocations: 82.84 kB / 475.1 MB, free: 12.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.2935, allocations: 35.42 kB / 475.2 MB, free: 12.51 MB / 314.7 MB Notification: Performance of SimCode: time 1.277e-06/0.2935, allocations: 0 / 475.2 MB, free: 12.51 MB / 314.7 MB Notification: Performance of Templates: time 0.00872/0.3023, allocations: 3.579 MB / 478.8 MB, free: 8.934 MB / 314.7 MB