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.001427/0.001431, allocations: 186.1 kB / 16.38 MB, free: 5.621 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.792/1.792, allocations: 194.5 MB / 211.6 MB, free: 7.52 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.001833/0.001833, allocations: 116.5 kB / 256.9 MB, free: 10.14 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.2395/0.2395, allocations: 38.02 MB / 340.1 MB, free: 13.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000447/0.0004471, allocations: 17.72 kB / 403.8 MB, free: 55.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06761/0.06808, allocations: 53.22 MB / 457 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003052/0.07117, allocations: 2.981 MB / 460 MB, free: 7.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.07274, allocations: 1.199 MB / 461.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.0729, allocations: 11.94 kB / 461.2 MB, free: 6.125 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.07303, allocations: 35.75 kB / 461.2 MB, free: 6.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003822/0.07343, allocations: 131.5 kB / 461.4 MB, free: 5.961 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.07372, allocations: 107.7 kB / 461.5 MB, free: 5.855 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.07396, allocations: 159.6 kB / 461.6 MB, free: 5.699 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004363/0.07441, allocations: 258.8 kB / 461.9 MB, free: 5.426 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001602/0.07459, allocations: 99.55 kB / 462 MB, free: 5.328 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/0.07472, allocations: 71.69 kB / 462 MB, free: 5.258 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.07476, allocations: 8 kB / 462.1 MB, free: 5.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002333/0.075, allocations: 107.8 kB / 462.2 MB, free: 5.145 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.396e-05/0.07507, allocations: 43.89 kB / 462.2 MB, free: 5.102 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.205e-05/0.07514, allocations: 61.58 kB / 462.3 MB, free: 5.035 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002557/0.07541, allocations: 203.5 kB / 462.5 MB, free: 4.836 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.301e-06/0.07543, allocations: 0 / 462.5 MB, free: 4.836 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.021e-06/0.07544, allocations: 4 kB / 462.5 MB, free: 4.832 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.767e-06/0.07546, allocations: 0 / 462.5 MB, free: 4.832 MB / 298.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.0004853/0.07595, allocations: 470.8 kB / 462.9 MB, free: 4.324 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.07599, allocations: 12.02 kB / 462.9 MB, free: 4.312 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008087/0.07681, allocations: 83.64 kB / 463 MB, free: 4.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002596/0.07709, allocations: 250.6 kB / 463.3 MB, free: 3.945 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.07713, allocations: 8.328 kB / 463.3 MB, free: 3.938 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.26e-05/0.07718, allocations: 27.91 kB / 463.3 MB, free: 3.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004281/0.07762, allocations: 263.9 kB / 463.6 MB, free: 3.629 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.07765, allocations: 0 / 463.6 MB, free: 3.629 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.831e-05/0.07769, allocations: 15.95 kB / 463.6 MB, free: 3.613 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.96e-05/0.07773, allocations: 8.328 kB / 463.6 MB, free: 3.605 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003999/0.07814, allocations: 220.4 kB / 463.8 MB, free: 3.391 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.07968, allocations: 1.214 MB / 465 MB, free: 2.078 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002351/0.07993, allocations: 133.2 kB / 465.1 MB, free: 1.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.07997, allocations: 8.062 kB / 465.1 MB, free: 1.922 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.607e-05/0.07999, allocations: 34.5 kB / 465.2 MB, free: 1.879 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 2.337e-06/0.08001, allocations: 0 / 465.2 MB, free: 1.879 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003643/0.08038, allocations: 165.9 kB / 465.3 MB, free: 1.711 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.08042, allocations: 89.05 kB / 465.4 MB, free: 1.605 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.08062, allocations: 199 kB / 465.6 MB, free: 1.402 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.08065, allocations: 29.83 kB / 465.7 MB, free: 1.367 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.349e-05/0.08074, allocations: 159.8 kB / 465.8 MB, free: 1.207 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.436e-05/0.08078, allocations: 39.45 kB / 465.8 MB, free: 1.168 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.015e-05/0.0808, allocations: 4 kB / 465.9 MB, free: 1.164 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.054e-05/0.08087, allocations: 334.8 kB / 466.2 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.211e-05/0.08098, allocations: 35.98 kB / 466.2 MB, free: 0.793 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.08111, allocations: 128.5 kB / 466.3 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001286/0.08125, allocations: 63.92 kB / 466.4 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.052e-06/0.08127, allocations: 0 / 466.4 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003544/0.08163, allocations: 205 kB / 466.6 MB, free: 372 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.08166, allocations: 11.75 kB / 466.6 MB, free: 364 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.356e-06/0.08168, allocations: 4.281 kB / 466.6 MB, free: 360 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.0817, allocations: 12 kB / 466.6 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.08198, allocations: 51.91 kB / 466.7 MB, free: 296 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/0.08317, allocations: 1.329 MB / 468 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001502/0.08334, allocations: 15.84 kB / 468 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.398e-05/0.08338, allocations: 11.98 kB / 468 MB, free: 14.8 MB / 314.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): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001736/0.08357, allocations: 149.7 kB / 468.2 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.109e-05/0.08364, allocations: 19.8 kB / 468.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003043/0.08395, allocations: 139 kB / 468.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.641e-06/0.08398, allocations: 0 / 468.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.08399, allocations: 0 / 468.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.115e-06/0.08401, allocations: 12 kB / 468.4 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008711/0.08489, allocations: 488 kB / 468.8 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.408e-06/0.08491, allocations: 4 kB / 468.8 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.08515, allocations: 35.92 kB / 468.9 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.511e-06/0.08517, allocations: 0 / 468.9 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.0852, allocations: 3.984 kB / 468.9 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001193/0.08641, allocations: 1.341 MB / 470.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.08643, allocations: 0 / 470.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004924/0.08693, allocations: 338.4 kB / 470.5 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.184e-05/0.08704, allocations: 96.81 kB / 470.6 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.08709, allocations: 8 kB / 470.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.08724, allocations: 64 / 470.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.833e-05/0.08729, allocations: 19.92 kB / 470.7 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.08732, allocations: 7.984 kB / 470.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001812/0.08752, allocations: 152.2 kB / 470.8 MB, free: 11.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.29e-07/0.08753, allocations: 0 / 470.8 MB, free: 11.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004347/0.08797, allocations: 47.91 kB / 470.9 MB, free: 11.71 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001265/0.08811, allocations: 103.2 kB / 471 MB, free: 11.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003895/0.08851, allocations: 131.8 kB / 471.1 MB, free: 11.47 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.248e-06/0.08853, allocations: 0 / 471.1 MB, free: 11.47 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.08874, allocations: 59.94 kB / 471.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.08909, allocations: 39.88 kB / 471.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.09029, allocations: 0.6138 MB / 471.8 MB, free: 10.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004567/0.09077, allocations: 0.7479 MB / 472.6 MB, free: 9.953 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.09092, allocations: 29.52 kB / 472.6 MB, free: 9.926 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.681e-05/0.09099, allocations: 23.44 kB / 472.6 MB, free: 9.902 MB / 314.7 MB Notification: Performance of SimCode: time 1.317e-06/0.091, allocations: 3.938 kB / 472.6 MB, free: 9.898 MB / 314.7 MB Notification: Performance of Templates: time 0.005339/0.09635, allocations: 1.351 MB / 474 MB, free: 8.551 MB / 314.7 MB