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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/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_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/Complex 3.2.2+maint.om/package.mo): time 0.001102/0.001102, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.2/1.2, allocations: 194.2 MB / 212.2 MB, free: 2.367 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001628/0.001628, allocations: 130.8 kB / 256.6 MB, free: 4.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1631/0.1631, allocations: 37.95 MB / 338.8 MB, free: 2.211 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001159, allocations: 67.91 kB / 401.8 MB, free: 68.76 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07368/0.07485, allocations: 52.19 MB / 454 MB, free: 16.58 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004052/0.07895, allocations: 3.536 MB / 457.5 MB, free: 13.02 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.08031, allocations: 1.33 MB / 458.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.08043, allocations: 11.94 kB / 458.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004531/0.08089, allocations: 147.4 kB / 459 MB, free: 11.53 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002698/0.08117, allocations: 163.4 kB / 459.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002174/0.0814, allocations: 119.7 kB / 459.3 MB, free: 11.25 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00026/0.08167, allocations: 386.8 kB / 459.7 MB, free: 10.87 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.08189, allocations: 110 kB / 459.8 MB, free: 10.76 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.08203, allocations: 115.4 kB / 459.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.08216, allocations: 115.5 kB / 460 MB, free: 10.54 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.08219, allocations: 8 kB / 460 MB, free: 10.53 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002921/0.08248, allocations: 275.3 kB / 460.3 MB, free: 10.26 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.778e-05/0.08255, allocations: 63.8 kB / 460.3 MB, free: 10.2 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.921e-05/0.08263, allocations: 91.55 kB / 460.4 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002588/0.08289, allocations: 303 kB / 460.7 MB, free: 9.809 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.08291, allocations: 0 / 460.7 MB, free: 9.809 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.08291, allocations: 0 / 460.7 MB, free: 9.809 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.08292, allocations: 0 / 460.7 MB, free: 9.809 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.000475/0.0834, allocations: 0.5027 MB / 461.2 MB, free: 9.258 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.768e-05/0.08344, allocations: 8.031 kB / 461.2 MB, free: 9.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005542/0.08399, allocations: 76.58 kB / 461.3 MB, free: 9.176 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002174/0.08422, allocations: 260.5 kB / 461.6 MB, free: 8.883 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.08425, allocations: 20.44 kB / 461.6 MB, free: 8.863 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.389e-05/0.08429, allocations: 12 kB / 461.6 MB, free: 8.852 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/0.08459, allocations: 260 kB / 461.8 MB, free: 8.574 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.08461, allocations: 4 kB / 461.8 MB, free: 8.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.08464, allocations: 12 kB / 461.9 MB, free: 8.559 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.293e-05/0.08466, allocations: 12.31 kB / 461.9 MB, free: 8.547 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002575/0.08493, allocations: 224 kB / 462.1 MB, free: 8.328 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.08602, allocations: 1.202 MB / 463.3 MB, free: 7.027 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.08619, allocations: 141.1 kB / 463.4 MB, free: 6.871 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.609e-05/0.08626, allocations: 53.84 kB / 463.5 MB, free: 6.812 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.08628, allocations: 0 / 463.5 MB, free: 6.812 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.373e-05/0.08629, allocations: 34.5 kB / 463.5 MB, free: 6.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.0863, allocations: 0 / 463.5 MB, free: 6.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002641/0.08657, allocations: 165.5 kB / 463.7 MB, free: 6.602 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.403e-05/0.0866, allocations: 85.11 kB / 463.8 MB, free: 6.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.08673, allocations: 203.2 kB / 464 MB, free: 6.293 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.305e-06/0.08675, allocations: 29.64 kB / 464 MB, free: 6.258 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.198e-05/0.08681, allocations: 163.8 kB / 464.1 MB, free: 6.094 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.197e-05/0.08683, allocations: 39.36 kB / 464.2 MB, free: 6.055 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.688e-05/0.08689, allocations: 45.7 kB / 464.2 MB, free: 6.004 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.239e-05/0.08693, allocations: 330.8 kB / 464.6 MB, free: 5.672 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.835e-05/0.087, allocations: 43.98 kB / 464.6 MB, free: 5.629 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.634e-05/0.08708, allocations: 114.2 kB / 464.7 MB, free: 5.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/0.08723, allocations: 186.2 kB / 464.9 MB, free: 5.262 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.08724, allocations: 0 / 464.9 MB, free: 5.262 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002141/0.08746, allocations: 209.1 kB / 465.1 MB, free: 5.051 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.08748, allocations: 12.22 kB / 465.1 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.08749, allocations: 12 kB / 465.1 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.08751, allocations: 4 kB / 465.1 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001952/0.08771, allocations: 51.97 kB / 465.2 MB, free: 4.973 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005574/0.08827, allocations: 1.329 MB / 466.5 MB, free: 3.516 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.973e-05/0.08838, allocations: 19.69 kB / 466.5 MB, free: 3.496 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/0.0884, allocations: 12 kB / 466.5 MB, free: 3.484 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 (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 7.944e-05/0.08848, allocations: 145.7 kB / 466.7 MB, free: 3.332 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.308e-05/0.08852, allocations: 15.81 kB / 466.7 MB, free: 3.316 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001676/0.08869, allocations: 139 kB / 466.8 MB, free: 3.172 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.0887, allocations: 0 / 466.8 MB, free: 3.172 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.08871, allocations: 8.094 kB / 466.8 MB, free: 3.164 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.08872, allocations: 3.984 kB / 466.8 MB, free: 3.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004406/0.08916, allocations: 499.8 kB / 467.3 MB, free: 2.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.08918, allocations: 3.938 kB / 467.3 MB, free: 2.605 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.08933, allocations: 31.97 kB / 467.4 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.08934, allocations: 0 / 467.4 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.08936, allocations: 8 kB / 467.4 MB, free: 2.566 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004477/0.08981, allocations: 1.321 MB / 468.7 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.08982, allocations: 4 kB / 468.7 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.09095, allocations: 1.436 MB / 470.1 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.251e-05/0.09102, allocations: 100.8 kB / 470.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.09105, allocations: 4 kB / 470.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.642e-05/0.09114, allocations: 4 kB / 470.2 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.641e-05/0.09118, allocations: 7.984 kB / 470.2 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.09119, allocations: 4.094 kB / 470.2 MB, free: 15.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001239/0.09132, allocations: 164.2 kB / 470.4 MB, free: 15.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.09133, allocations: 0 / 470.4 MB, free: 15.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003759/0.09171, allocations: 63.84 kB / 470.5 MB, free: 15.17 MB / 330.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 (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 9.637e-05/0.09181, allocations: 107.2 kB / 470.6 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002787/0.0921, allocations: 132.4 kB / 470.7 MB, free: 14.92 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.09211, allocations: 0 / 470.7 MB, free: 14.92 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.09226, allocations: 59.97 kB / 470.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003365/0.09261, allocations: 27.98 kB / 470.8 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009496/0.09357, allocations: 0.7362 MB / 471.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.09389, allocations: 0.7401 MB / 472.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.731e-05/0.09399, allocations: 33.52 kB / 472.3 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.904e-05/0.09404, allocations: 19.44 kB / 472.3 MB, free: 13.23 MB / 330.7 MB Notification: Performance of SimCode: time 2.11e-07/0.09405, allocations: 0 / 472.3 MB, free: 13.23 MB / 330.7 MB Notification: Performance of Templates: time 0.003737/0.09779, allocations: 1.579 MB / 473.9 MB, free: 11.66 MB / 330.7 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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)