Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001004/0.001004, allocations: 188.8 kB / 8.132 MB, free: 2.199 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.204/1.204, allocations: 194.2 MB / 202.8 MB, free: 8.742 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.001764/0.001765, allocations: 114.3 kB / 247.7 MB, free: 6.273 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1639/0.1639, allocations: 37.92 MB / 330.5 MB, free: 6.918 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.211e-06/6.221e-06, allocations: 4 kB / 389.8 MB, free: 78.12 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08495/0.08497, allocations: 53.23 MB / 443 MB, free: 24.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.249/0.334, allocations: 91.81 MB / 0.5223 GB, free: 9.836 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.3343, allocations: 86.09 kB / 0.5224 GB, free: 9.824 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02546/0.3597, allocations: 9.515 MB / 0.5317 GB, free: 6.324 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.581e-05/0.3598, allocations: 7.375 kB / 0.5317 GB, free: 6.324 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.000796/0.3606, allocations: 0.5748 MB / 0.5322 GB, free: 5.836 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.3606, allocations: 9.156 kB / 0.5323 GB, free: 5.836 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.992e-05/0.3608, allocations: 47.38 kB / 0.5323 GB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.362, allocations: 0.6135 MB / 0.5329 GB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.3621, allocations: 8.062 kB / 0.5329 GB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.082e-05/0.3621, allocations: 15.03 kB / 0.5329 GB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003465/0.3625, allocations: 184.3 kB / 0.5331 GB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003502/0.3628, allocations: 289.2 kB / 0.5334 GB, free: 5.105 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.3629, allocations: 11.94 kB / 0.5334 GB, free: 5.094 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.65e-05/0.3629, allocations: 0 / 0.5334 GB, free: 5.094 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.3629, allocations: 11.91 kB / 0.5334 GB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.3641, allocations: 1.425 MB / 0.5348 GB, free: 3.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/0.3642, allocations: 153.5 kB / 0.5349 GB, free: 3.574 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.07e-05/0.3643, allocations: 74.3 kB / 0.535 GB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.3644, allocations: 0 / 0.535 GB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/0.3644, allocations: 38.56 kB / 0.535 GB, free: 3.461 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.3644, allocations: 0 / 0.535 GB, free: 3.461 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009375/0.3653, allocations: 0.7829 MB / 0.5358 GB, free: 2.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/0.3654, allocations: 128.5 kB / 0.5359 GB, free: 2.504 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.3656, allocations: 238 kB / 0.5362 GB, free: 2.301 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.3656, allocations: 29.8 kB / 0.5362 GB, free: 2.266 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.518e-05/0.3656, allocations: 179.4 kB / 0.5364 GB, free: 2.102 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.657e-05/0.3657, allocations: 60.73 kB / 0.5364 GB, free: 2.051 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.768e-06/0.3657, allocations: 0 / 0.5364 GB, free: 2.051 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.325e-05/0.3658, allocations: 346.8 kB / 0.5367 GB, free: 1.715 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.431e-05/0.3658, allocations: 42.81 kB / 0.5368 GB, free: 1.691 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.456e-05/0.3659, allocations: 151.5 kB / 0.5369 GB, free: 1.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.366, allocations: 73.14 kB / 0.537 GB, free: 1.469 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.366, allocations: 0 / 0.537 GB, free: 1.469 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002966/0.3664, allocations: 230.4 kB / 0.5372 GB, free: 1.273 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.709e-06/0.3664, allocations: 4 kB / 0.5372 GB, free: 1.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3664, allocations: 4 kB / 0.5372 GB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3664, allocations: 8 kB / 0.5372 GB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003789/0.3668, allocations: 79.7 kB / 0.5373 GB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005692/0.3674, allocations: 1.237 MB / 0.5385 GB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.3675, allocations: 4.156 kB / 0.5385 GB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.3676, allocations: 16 kB / 0.5385 GB, free: 15.82 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (32): * Single equations (assignments): 31 * 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 8.545e-05/0.3677, allocations: 116.2 kB / 0.5386 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.524e-05/0.3678, allocations: 31.61 kB / 0.5387 GB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002919/0.3681, allocations: 167.2 kB / 0.5388 GB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3681, allocations: 4 kB / 0.5388 GB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.3681, allocations: 0 / 0.5388 GB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.3681, allocations: 3.984 kB / 0.5388 GB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006672/0.3688, allocations: 0.4912 MB / 0.5393 GB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3688, allocations: 0 / 0.5393 GB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.3691, allocations: 51.41 kB / 0.5394 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.3691, allocations: 4 kB / 0.5394 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.3691, allocations: 3.938 kB / 0.5394 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.3691, allocations: 0 / 0.5394 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.3691, allocations: 7.906 kB / 0.5394 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004818/0.3696, allocations: 0.5051 MB / 0.5399 GB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.022e-05/0.3697, allocations: 100.8 kB / 0.54 GB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.312e-05/0.3697, allocations: 7.984 kB / 0.54 GB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.37, allocations: 3.984 kB / 0.54 GB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.538e-05/0.37, allocations: 19.3 kB / 0.54 GB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.37, allocations: 4 kB / 0.54 GB, free: 14.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001475/0.3702, allocations: 181.6 kB / 0.5402 GB, free: 14.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004582/0.3707, allocations: 56 kB / 0.5402 GB, free: 14.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (motor.phi_el,motor.w_el,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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.0002114/0.3709, allocations: 132.5 kB / 0.5404 GB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003123/0.3712, allocations: 156.8 kB / 0.5405 GB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3712, allocations: 0 / 0.5405 GB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.3713, allocations: 69.88 kB / 0.5406 GB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005028/0.3718, allocations: 66.89 kB / 0.5406 GB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.373, allocations: 0.5626 MB / 0.5412 GB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004485/0.3735, allocations: 0.8433 MB / 0.542 GB, free: 12.41 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3735, allocations: 0 / 0.542 GB, free: 12.41 MB / 362.7 MB Notification: Performance of Templates: time 0.006685/0.3802, allocations: 2.869 MB / 0.5448 GB, free: 9.594 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)