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: 183.8 kB / 8.354 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.58/1.58, allocations: 194.4 MB / 203.1 MB, free: 13.02 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.001837/0.001838, allocations: 127 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1577/0.1577, allocations: 37.93 MB / 330.9 MB, free: 2.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.513e-05/1.515e-05, allocations: 4 kB / 390.4 MB, free: 7.098 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2654, allocations: 53.21 MB / 443.6 MB, free: 17.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1246/0.39, allocations: 88.62 MB / 0.5197 GB, free: 9.043 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.3903, allocations: 87.94 kB / 0.5198 GB, free: 8.957 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2376/0.6279, allocations: 9.67 MB / 0.5293 GB, free: 88.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.628, allocations: 0 / 0.5293 GB, free: 88.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.628, allocations: 4.094 kB / 0.5293 GB, free: 88.02 MB / 378.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.0006783/0.6287, allocations: 484.8 kB / 0.5297 GB, free: 87.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.6287, allocations: 13.25 kB / 0.5297 GB, free: 87.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007161/0.6295, allocations: 84.72 kB / 0.5298 GB, free: 87.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003821/0.6299, allocations: 272.4 kB / 0.5301 GB, free: 87.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.6299, allocations: 5.312 kB / 0.5301 GB, free: 87.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.053e-05/0.6299, allocations: 15.22 kB / 0.5301 GB, free: 87.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003173/0.6303, allocations: 133.2 kB / 0.5302 GB, free: 87.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.6307, allocations: 239.6 kB / 0.5305 GB, free: 87.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.6307, allocations: 4.875 kB / 0.5305 GB, free: 87.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.6307, allocations: 0 / 0.5305 GB, free: 87.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.839e-05/0.6308, allocations: 14.88 kB / 0.5305 GB, free: 87.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.6323, allocations: 1.215 MB / 0.5317 GB, free: 86.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003027/0.6326, allocations: 147.2 kB / 0.5318 GB, free: 86.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.833e-05/0.6327, allocations: 45.25 kB / 0.5318 GB, free: 86.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.6327, allocations: 4.328 kB / 0.5318 GB, free: 86.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.6327, allocations: 37.08 kB / 0.5319 GB, free: 86.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.6327, allocations: 0 / 0.5319 GB, free: 86.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002689/0.633, allocations: 126.4 kB / 0.532 GB, free: 86.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.578e-05/0.633, allocations: 83.03 kB / 0.5321 GB, free: 86.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.6332, allocations: 152 kB / 0.5322 GB, free: 86.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.6332, allocations: 26.98 kB / 0.5323 GB, free: 86.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.945e-05/0.6332, allocations: 147.4 kB / 0.5324 GB, free: 86.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.176e-05/0.6333, allocations: 53.84 kB / 0.5324 GB, free: 86.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.324e-06/0.6333, allocations: 0 / 0.5324 GB, free: 86.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.481e-05/0.6334, allocations: 327.1 kB / 0.5328 GB, free: 85.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.404e-05/0.6334, allocations: 38.06 kB / 0.5328 GB, free: 85.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.247e-05/0.6335, allocations: 116.6 kB / 0.5329 GB, free: 85.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.243e-05/0.6336, allocations: 63.47 kB / 0.533 GB, free: 85.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.6336, allocations: 0 / 0.533 GB, free: 85.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000256/0.6339, allocations: 186.9 kB / 0.5331 GB, free: 85.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.6339, allocations: 6.25 kB / 0.5331 GB, free: 85.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.6339, allocations: 2.281 kB / 0.5331 GB, free: 85.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.634, allocations: 4.672 kB / 0.5332 GB, free: 85.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.6342, allocations: 52.36 kB / 0.5332 GB, free: 85.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.6342, allocations: 6.969 kB / 0.5332 GB, free: 85.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.973e-05/0.6343, allocations: 12.41 kB / 0.5332 GB, free: 85.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.6343, allocations: 9.156 kB / 0.5332 GB, free: 85.54 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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 7.087e-05/0.6344, allocations: 121.6 kB / 0.5333 GB, free: 85.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.963e-05/0.6344, allocations: 18.88 kB / 0.5334 GB, free: 85.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002816/0.6347, allocations: 134.9 kB / 0.5335 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.6347, allocations: 4.969 kB / 0.5335 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.6348, allocations: 0.9688 kB / 0.5335 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.6348, allocations: 2.406 kB / 0.5335 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006949/0.6355, allocations: 472.4 kB / 0.534 GB, free: 85.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.6355, allocations: 1.062 kB / 0.534 GB, free: 85.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.6357, allocations: 34.8 kB / 0.534 GB, free: 85.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.6357, allocations: 5.328 kB / 0.534 GB, free: 85.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.6357, allocations: 4.688 kB / 0.534 GB, free: 85.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.748e-06/0.6357, allocations: 2.891 kB / 0.534 GB, free: 85.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.6357, allocations: 2.062 kB / 0.534 GB, free: 85.06 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004545/0.6362, allocations: 356.4 kB / 0.5343 GB, free: 84.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.452e-05/0.6363, allocations: 94.59 kB / 0.5344 GB, free: 84.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.402e-05/0.6363, allocations: 7.781 kB / 0.5344 GB, free: 84.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.799e-05/0.6364, allocations: 5.766 kB / 0.5344 GB, free: 84.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/0.6365, allocations: 11.61 kB / 0.5345 GB, free: 84.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.6365, allocations: 3.938 kB / 0.5345 GB, free: 84.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.615e-05/0.6366, allocations: 122.7 kB / 0.5346 GB, free: 84.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6366, allocations: 0 / 0.5346 GB, free: 84.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004049/0.637, allocations: 48.94 kB / 0.5346 GB, free: 84.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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.0001841/0.6372, allocations: 108.6 kB / 0.5347 GB, free: 84.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002689/0.6375, allocations: 110.3 kB / 0.5348 GB, free: 84.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.6375, allocations: 0 / 0.5348 GB, free: 84.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.6376, allocations: 48.75 kB / 0.5349 GB, free: 84.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.6379, allocations: 29.91 kB / 0.5349 GB, free: 84.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008041/0.6388, allocations: 384 kB / 0.5353 GB, free: 84.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002532/0.639, allocations: 0.7536 MB / 0.536 GB, free: 83.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.6392, allocations: 38.58 kB / 0.536 GB, free: 83.56 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.815e-05/0.6392, allocations: 17.81 kB / 0.5361 GB, free: 83.55 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.6392, allocations: 4 kB / 0.5361 GB, free: 83.55 MB / 378.7 MB Notification: Performance of Templates: time 0.004023/0.6432, allocations: 1.162 MB / 0.5372 GB, free: 83.45 MB / 378.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)