Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002635/0.002639, allocations: 363.9 kB / 17.21 MB, free: 4.953 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.82/3.82, allocations: 388.9 MB / 406.8 MB, free: 12.02 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.003575/0.003575, allocations: 227.8 kB / 452.2 MB, free: 14.61 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.7567/0.7567, allocations: 76.01 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004399/0.0004401, allocations: 12 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0916/0.09206, allocations: 53.23 MB / 0.6742 GB, free: 60.83 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4345/0.5266, allocations: 89.36 MB / 0.7615 GB, free: 81.57 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003266/0.527, allocations: 91 kB / 0.7616 GB, free: 81.57 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03557/0.5626, allocations: 9.793 MB / 0.7711 GB, free: 80.61 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.5627, allocations: 0 / 0.7711 GB, free: 80.61 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.943e-05/0.5627, allocations: 3.719 kB / 0.7711 GB, free: 80.61 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008248/0.5635, allocations: 497.5 kB / 0.7716 GB, free: 80.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.5636, allocations: 7.688 kB / 0.7716 GB, free: 80.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/0.5646, allocations: 93.11 kB / 0.7717 GB, free: 80.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004366/0.5651, allocations: 270.7 kB / 0.772 GB, free: 79.94 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.5651, allocations: 13.73 kB / 0.772 GB, free: 79.94 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.661e-05/0.5652, allocations: 17.06 kB / 0.772 GB, free: 79.94 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005307/0.5657, allocations: 255.6 kB / 0.7722 GB, free: 79.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.5657, allocations: 0 / 0.7722 GB, free: 79.86 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.5658, allocations: 16.5 kB / 0.7723 GB, free: 79.85 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.758e-05/0.5658, allocations: 18.12 kB / 0.7723 GB, free: 79.85 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000471/0.5663, allocations: 202.7 kB / 0.7725 GB, free: 79.85 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001946/0.5683, allocations: 1.207 MB / 0.7736 GB, free: 79.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.5686, allocations: 120.5 kB / 0.7738 GB, free: 78.98 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.739e-05/0.5687, allocations: 42.58 kB / 0.7738 GB, free: 78.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.5687, allocations: 4.469 kB / 0.7738 GB, free: 78.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.5688, allocations: 39.91 kB / 0.7738 GB, free: 78.92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=12): time 3.046e-06/0.5688, allocations: 0 / 0.7738 GB, free: 78.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=12): time 0.000438/0.5692, allocations: 153 kB / 0.774 GB, free: 78.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.5693, allocations: 80.98 kB / 0.7741 GB, free: 78.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.5695, allocations: 207.3 kB / 0.7743 GB, free: 78.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.5696, allocations: 28.89 kB / 0.7743 GB, free: 78.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.155e-05/0.5697, allocations: 156.4 kB / 0.7744 GB, free: 78.54 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.071e-05/0.5697, allocations: 45.42 kB / 0.7745 GB, free: 78.51 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.114e-05/0.5697, allocations: 3.125 kB / 0.7745 GB, free: 78.51 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.858e-05/0.5698, allocations: 332.1 kB / 0.7748 GB, free: 78.19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.5699, allocations: 41.72 kB / 0.7748 GB, free: 78.19 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.5701, allocations: 116 kB / 0.775 GB, free: 78.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.5702, allocations: 58.8 kB / 0.775 GB, free: 78.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5702, allocations: 2.406 kB / 0.775 GB, free: 78.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003866/0.5706, allocations: 196.6 kB / 0.7752 GB, free: 78.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.5707, allocations: 11.62 kB / 0.7752 GB, free: 78.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.5707, allocations: 3.844 kB / 0.7752 GB, free: 78.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.5707, allocations: 3.844 kB / 0.7752 GB, free: 78.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003638/0.5711, allocations: 49.27 kB / 0.7753 GB, free: 78.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.5711, allocations: 3.844 kB / 0.7753 GB, free: 78.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.5713, allocations: 23.81 kB / 0.7753 GB, free: 78.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.5713, allocations: 11.31 kB / 0.7753 GB, free: 78.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * 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.0001506/0.5715, allocations: 146 kB / 0.7754 GB, free: 77.89 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.045e-05/0.5716, allocations: 18.97 kB / 0.7755 GB, free: 77.89 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003037/0.5719, allocations: 135.2 kB / 0.7756 GB, free: 77.85 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.5719, allocations: 0 / 0.7756 GB, free: 77.85 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.5719, allocations: 0.6562 kB / 0.7756 GB, free: 77.85 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.5719, allocations: 3.422 kB / 0.7756 GB, free: 77.85 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008183/0.5727, allocations: 0.5349 MB / 0.7761 GB, free: 77.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.5728, allocations: 6.062 kB / 0.7761 GB, free: 77.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/0.573, allocations: 30.61 kB / 0.7762 GB, free: 77.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.573, allocations: 7.312 kB / 0.7762 GB, free: 77.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.5731, allocations: 3.969 kB / 0.7762 GB, free: 77.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.414e-06/0.5731, allocations: 9.438 kB / 0.7762 GB, free: 77.48 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.5731, allocations: 3.844 kB / 0.7762 GB, free: 77.48 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004278/0.5735, allocations: 329.2 kB / 0.7765 GB, free: 77.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.124e-05/0.5736, allocations: 100.5 kB / 0.7766 GB, free: 77.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/0.5737, allocations: 3.375 kB / 0.7766 GB, free: 77.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001573/0.5738, allocations: 4.219 kB / 0.7766 GB, free: 77.17 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.036e-05/0.5739, allocations: 22.88 kB / 0.7766 GB, free: 77.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.5739, allocations: 5.625 kB / 0.7766 GB, free: 77.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001501/0.5741, allocations: 150.2 kB / 0.7768 GB, free: 77.08 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5741, allocations: 0 / 0.7768 GB, free: 77.08 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004416/0.5745, allocations: 49.91 kB / 0.7768 GB, free: 77.08 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001237/0.5747, allocations: 103 kB / 0.7769 GB, free: 76.99 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000327/0.575, allocations: 127.9 kB / 0.777 GB, free: 76.97 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.575, allocations: 0 / 0.777 GB, free: 76.97 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.5752, allocations: 49.64 kB / 0.7771 GB, free: 76.96 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005201/0.5757, allocations: 35.89 kB / 0.7771 GB, free: 76.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.5768, allocations: 0.6463 MB / 0.7777 GB, free: 76.56 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.5771, allocations: 0.747 MB / 0.7785 GB, free: 75.86 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001658/0.5772, allocations: 31.92 kB / 0.7785 GB, free: 75.86 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.554e-05/0.5773, allocations: 22.41 kB / 0.7785 GB, free: 75.85 MB / 442.7 MB Notification: Performance of SimCode: time 1.232e-06/0.5773, allocations: 3.938 kB / 0.7785 GB, free: 75.85 MB / 442.7 MB Notification: Performance of Templates: time 0.005166/0.5825, allocations: 1.223 MB / 0.7797 GB, free: 75.78 MB / 442.7 MB