Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 113.3 kB / 17.69 MB, free: 5.312 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.001717/0.001717, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1809/0.1809, allocations: 37.99 MB / 309.8 MB, free: 5.969 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00147/0.001471, allocations: 63.89 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3336, allocations: 55.24 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004772/0.3384, allocations: 3.328 MB / 435.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001522/0.34, allocations: 1.262 MB / 436.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.3401, allocations: 11.94 kB / 436.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006764/0.3408, allocations: 151.3 kB / 436.8 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003774/0.3412, allocations: 179.2 kB / 437 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.3415, allocations: 131.6 kB / 437.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002949/0.3418, allocations: 290.9 kB / 437.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002669/0.3421, allocations: 118.2 kB / 437.5 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.3422, allocations: 115.5 kB / 437.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.3424, allocations: 119.5 kB / 437.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.3424, allocations: 12 kB / 437.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003/0.3427, allocations: 227.4 kB / 437.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.497e-05/0.3428, allocations: 59.81 kB / 438 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.3429, allocations: 99.48 kB / 438.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000359/0.3433, allocations: 286.9 kB / 438.4 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3433, allocations: 0 / 438.4 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.3433, allocations: 0 / 438.4 MB, free: 13.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.3433, allocations: 4 kB / 438.4 MB, free: 13.12 MB / 318.1 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.0007305/0.344, allocations: 0.495 MB / 438.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.3441, allocations: 19.89 kB / 438.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000749/0.3448, allocations: 76.58 kB / 439 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.3452, allocations: 259.9 kB / 439.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.3452, allocations: 12.69 kB / 439.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.347e-05/0.3453, allocations: 24.28 kB / 439.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003893/0.3457, allocations: 276 kB / 439.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.3457, allocations: 0 / 439.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.3457, allocations: 4 kB / 439.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.217e-05/0.3458, allocations: 16.31 kB / 439.5 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.3461, allocations: 224.4 kB / 439.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001432/0.3475, allocations: 1.206 MB / 441 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.3478, allocations: 137.1 kB / 441.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.12e-05/0.3478, allocations: 49.84 kB / 441.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.3479, allocations: 0 / 441.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.3479, allocations: 42.5 kB / 441.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.062e-06/0.3479, allocations: 0 / 441.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003547/0.3483, allocations: 169.3 kB / 441.4 MB, free: 9.895 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.3483, allocations: 77.11 kB / 441.4 MB, free: 9.801 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.3485, allocations: 206.8 kB / 441.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.3485, allocations: 29.7 kB / 441.7 MB, free: 9.551 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.859e-05/0.3486, allocations: 155.8 kB / 441.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.994e-05/0.3487, allocations: 43.39 kB / 441.9 MB, free: 9.352 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.418e-05/0.3487, allocations: 49.73 kB / 441.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.19e-05/0.3488, allocations: 326.8 kB / 442.2 MB, free: 8.969 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.741e-05/0.3489, allocations: 43.97 kB / 442.3 MB, free: 8.926 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.762e-05/0.349, allocations: 126 kB / 442.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.3492, allocations: 182.1 kB / 442.6 MB, free: 8.551 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3492, allocations: 4 kB / 442.6 MB, free: 8.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002405/0.3494, allocations: 212.9 kB / 442.8 MB, free: 8.336 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.3495, allocations: 8 kB / 442.8 MB, free: 8.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.3495, allocations: 3.938 kB / 442.8 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.858e-05/0.3495, allocations: 7.938 kB / 442.8 MB, free: 8.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/0.3497, allocations: 51.91 kB / 442.9 MB, free: 8.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007905/0.3505, allocations: 1.412 MB / 444.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.3507, allocations: 27.75 kB / 444.3 MB, free: 6.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.3507, allocations: 8 kB / 444.3 MB, free: 6.68 MB / 318.1 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.3508, allocations: 153.7 kB / 444.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.907e-05/0.3508, allocations: 15.81 kB / 444.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002027/0.3511, allocations: 142.9 kB / 444.6 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.3511, allocations: 4 kB / 444.6 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.3511, allocations: 3.984 kB / 444.6 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.3511, allocations: 3.984 kB / 444.6 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006163/0.3517, allocations: 492 kB / 445.1 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3517, allocations: 4.062 kB / 445.1 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001718/0.3519, allocations: 35.92 kB / 445.1 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3519, allocations: 0 / 445.1 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.3519, allocations: 4 kB / 445.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006954/0.3526, allocations: 1.416 MB / 446.6 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.3527, allocations: 4.031 kB / 446.6 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002732/0.3529, allocations: 305 kB / 446.9 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.406e-05/0.353, allocations: 104.8 kB / 447 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.353, allocations: 4 kB / 447 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.189e-05/0.3531, allocations: 0 / 447 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.235e-05/0.3532, allocations: 15.92 kB / 447 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.3532, allocations: 4 kB / 447 MB, free: 3.738 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.3533, allocations: 152.4 kB / 447.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3533, allocations: 64 / 447.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003289/0.3536, allocations: 44 kB / 447.2 MB, free: 3.547 MB / 318.1 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001206/0.3538, allocations: 103.2 kB / 447.3 MB, free: 3.438 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003157/0.3541, allocations: 131.7 kB / 447.4 MB, free: 3.309 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3541, allocations: 0.6875 kB / 447.4 MB, free: 3.309 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.3542, allocations: 60.06 kB / 447.5 MB, free: 3.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004192/0.3547, allocations: 39.92 kB / 447.5 MB, free: 3.211 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.3557, allocations: 0.5159 MB / 448 MB, free: 2.656 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.356, allocations: 0.7398 MB / 448.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.026e-05/0.3561, allocations: 33.53 kB / 448.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.196e-05/0.3561, allocations: 19.44 kB / 448.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3561, allocations: 0 / 448.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of Templates: time 0.004711/0.3609, allocations: 1.486 MB / 450.3 MB, free: 368 kB / 318.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)