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.00238/0.002384, allocations: 356.2 kB / 16.57 MB, free: 5.59 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 3.511/3.511, allocations: 388.9 MB / 406.2 MB, free: 11.91 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003368/0.003368, allocations: 241.6 kB / 451.6 MB, free: 14.51 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.644/0.644, allocations: 76 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005353/0.0005356, allocations: 8 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06695/0.06751, allocations: 53.24 MB / 0.6736 GB, free: 60.81 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003401/0.07096, allocations: 3.302 MB / 0.6768 GB, free: 57.49 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.07316, allocations: 1.647 MB / 0.6784 GB, free: 55.84 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.07333, allocations: 11.94 kB / 0.6785 GB, free: 55.82 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002532/0.0736, allocations: 55.66 kB / 0.6785 GB, free: 55.77 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004476/0.07406, allocations: 183.1 kB / 0.6787 GB, free: 55.59 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003897/0.07447, allocations: 139.5 kB / 0.6788 GB, free: 55.45 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003995/0.07489, allocations: 478.8 kB / 0.6793 GB, free: 54.98 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005566/0.07546, allocations: 322.5 kB / 0.6796 GB, free: 54.64 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002884/0.07577, allocations: 159.3 kB / 0.6797 GB, free: 54.49 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.076, allocations: 167.4 kB / 0.6799 GB, free: 54.32 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 3.687e-05/0.07606, allocations: 16 kB / 0.6799 GB, free: 54.31 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003553/0.07642, allocations: 187.5 kB / 0.6801 GB, free: 54.12 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 9.271e-05/0.07653, allocations: 95.75 kB / 0.6802 GB, free: 54.03 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 6.654e-05/0.07661, allocations: 81.45 kB / 0.6803 GB, free: 53.95 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004457/0.07707, allocations: 403 kB / 0.6806 GB, free: 53.55 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.922e-06/0.07709, allocations: 0 / 0.6806 GB, free: 53.55 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.77e-06/0.0771, allocations: 0 / 0.6806 GB, free: 53.55 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.489e-06/0.07711, allocations: 0 / 0.6806 GB, free: 53.55 MB / 442.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.0007075/0.07783, allocations: 0.6156 MB / 0.6812 GB, free: 52.87 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.07787, allocations: 8.828 kB / 0.6812 GB, free: 52.86 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008288/0.07871, allocations: 95.55 kB / 0.6813 GB, free: 52.77 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.0792, allocations: 365.6 kB / 0.6817 GB, free: 52.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.915e-05/0.07924, allocations: 12.38 kB / 0.6817 GB, free: 52.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.066e-05/0.0793, allocations: 27.98 kB / 0.6817 GB, free: 52.33 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005882/0.0799, allocations: 360.6 kB / 0.6821 GB, free: 51.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.07993, allocations: 0 / 0.6821 GB, free: 51.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/0.07997, allocations: 8 kB / 0.6821 GB, free: 51.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.838e-05/0.08002, allocations: 20.36 kB / 0.6821 GB, free: 51.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006834/0.08072, allocations: 396.8 kB / 0.6825 GB, free: 51.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.08262, allocations: 1.582 MB / 0.684 GB, free: 49.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006934/0.08334, allocations: 333.6 kB / 0.6843 GB, free: 49.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002112/0.08357, allocations: 117.9 kB / 0.6844 GB, free: 49.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.551e-05/0.08362, allocations: 4.188 kB / 0.6845 GB, free: 49.38 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003188/0.08395, allocations: 202.2 kB / 0.6846 GB, free: 49.16 MB / 442.7 MB Notification: Performance of pre-optimization done (n=24): time 2.51e-06/0.08397, allocations: 0 / 0.6846 GB, free: 49.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008636/0.08484, allocations: 406 kB / 0.685 GB, free: 48.76 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.08489, allocations: 136.5 kB / 0.6852 GB, free: 48.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003058/0.08521, allocations: 279 kB / 0.6854 GB, free: 48.31 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.08526, allocations: 37.7 kB / 0.6855 GB, free: 48.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.08537, allocations: 180.1 kB / 0.6856 GB, free: 48.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.422e-05/0.08545, allocations: 86.84 kB / 0.6857 GB, free: 48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.96e-05/0.08548, allocations: 4 kB / 0.6857 GB, free: 48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.924e-05/0.08555, allocations: 347 kB / 0.6861 GB, free: 47.65 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.0858, allocations: 116 kB / 0.6862 GB, free: 47.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002684/0.08608, allocations: 198.8 kB / 0.6864 GB, free: 47.31 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002895/0.08639, allocations: 178.3 kB / 0.6865 GB, free: 47.13 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.482e-06/0.08641, allocations: 4 kB / 0.6865 GB, free: 47.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007519/0.08717, allocations: 442.7 kB / 0.6869 GB, free: 46.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.395e-05/0.08722, allocations: 37.69 kB / 0.687 GB, free: 46.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.481e-06/0.08723, allocations: 4 kB / 0.687 GB, free: 46.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.08726, allocations: 7.938 kB / 0.687 GB, free: 46.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003011/0.08757, allocations: 67.84 kB / 0.6871 GB, free: 46.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.0876, allocations: 7.984 kB / 0.6871 GB, free: 46.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000183/0.08779, allocations: 32 kB / 0.6871 GB, free: 46.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.171e-05/0.08786, allocations: 19.98 kB / 0.6871 GB, free: 46.5 MB / 442.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.0001817/0.08805, allocations: 177.7 kB / 0.6873 GB, free: 46.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.531e-05/0.08812, allocations: 31.62 kB / 0.6873 GB, free: 46.29 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006522/0.08878, allocations: 327.7 kB / 0.6876 GB, free: 45.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.947e-06/0.0888, allocations: 7.938 kB / 0.6876 GB, free: 45.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.827e-06/0.08882, allocations: 0 / 0.6876 GB, free: 45.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.632e-06/0.08886, allocations: 3.984 kB / 0.6876 GB, free: 45.94 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.08997, allocations: 0.7753 MB / 0.6884 GB, free: 45.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.583e-06/0.08999, allocations: 0 / 0.6884 GB, free: 45.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.09022, allocations: 43.91 kB / 0.6884 GB, free: 45.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.963e-06/0.09024, allocations: 11.94 kB / 0.6885 GB, free: 45.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.549e-05/0.09028, allocations: 8 kB / 0.6885 GB, free: 45.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.393e-06/0.09029, allocations: 0 / 0.6885 GB, free: 45.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.983e-06/0.0903, allocations: 4 kB / 0.6885 GB, free: 45.04 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006465/0.09096, allocations: 428.6 kB / 0.6889 GB, free: 44.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.09111, allocations: 144.6 kB / 0.689 GB, free: 44.44 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.065e-05/0.09118, allocations: 8 kB / 0.689 GB, free: 44.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.09139, allocations: 11.98 kB / 0.689 GB, free: 44.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.278e-05/0.09146, allocations: 15.98 kB / 0.689 GB, free: 44.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.0915, allocations: 15.98 kB / 0.6891 GB, free: 44.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002084/0.09172, allocations: 209.9 kB / 0.6893 GB, free: 44.19 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.89e-07/0.09173, allocations: 0 / 0.6893 GB, free: 44.19 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004873/0.09223, allocations: 83.94 kB / 0.6893 GB, free: 44.11 MB / 442.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.001447/0.09369, allocations: 465.1 kB / 0.6898 GB, free: 43.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0005941/0.0943, allocations: 347.2 kB / 0.6901 GB, free: 43.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.134e-06/0.09432, allocations: 0 / 0.6901 GB, free: 43.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.09456, allocations: 123.8 kB / 0.6902 GB, free: 43.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004872/0.09507, allocations: 58.11 kB / 0.6903 GB, free: 43.18 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009783/0.09606, allocations: 0.6835 MB / 0.691 GB, free: 42.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.09633, allocations: 0.7956 MB / 0.6917 GB, free: 41.64 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002511/0.09659, allocations: 82.8 kB / 0.6918 GB, free: 41.56 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.09671, allocations: 35.42 kB / 0.6918 GB, free: 41.52 MB / 442.7 MB Notification: Performance of SimCode: time 1.334e-06/0.09672, allocations: 0 / 0.6918 GB, free: 41.52 MB / 442.7 MB Notification: Performance of Templates: time 0.008516/0.1052, allocations: 3.59 MB / 0.6954 GB, free: 37.93 MB / 442.7 MB