Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001032/0.001032, allocations: 180 kB / 17.4 MB, free: 4.414 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.404/1.404, allocations: 194.5 MB / 212.6 MB, free: 2.852 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.001664/0.001664, allocations: 115.4 kB / 257.9 MB, free: 4.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1753/0.1753, allocations: 38.01 MB / 341.1 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003943/0.0003943, allocations: 12 kB / 405 MB, free: 68.47 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1083, allocations: 53.23 MB / 458.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3778/0.4862, allocations: 97.03 MB / 0.5423 GB, free: 13.94 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002255/0.4885, allocations: 0.8827 MB / 0.5431 GB, free: 13.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04619/0.5347, allocations: 16.1 MB / 0.5589 GB, free: 15.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.488e-06/0.5348, allocations: 0 / 0.5589 GB, free: 15.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.38e-05/0.5349, allocations: 15.94 kB / 0.5589 GB, free: 15.73 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001993/0.5369, allocations: 0.8496 MB / 0.5597 GB, free: 14.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.5369, allocations: 8.031 kB / 0.5597 GB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002334/0.5372, allocations: 64.19 kB / 0.5598 GB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001515/0.5387, allocations: 0.59 MB / 0.5603 GB, free: 14.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.891e-05/0.5388, allocations: 31.38 kB / 0.5604 GB, free: 14.24 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.5389, allocations: 52.09 kB / 0.5604 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.54, allocations: 0.5265 MB / 0.5609 GB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.051e-05/0.5401, allocations: 3.938 kB / 0.5609 GB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.739e-05/0.5401, allocations: 21.25 kB / 0.561 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.5402, allocations: 12 kB / 0.561 GB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006379/0.5408, allocations: 331.6 kB / 0.5613 GB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003028/0.5438, allocations: 2.087 MB / 0.5633 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004276/0.5443, allocations: 233.7 kB / 0.5635 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.5444, allocations: 87.05 kB / 0.5636 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.5445, allocations: 4 kB / 0.5636 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002686/0.5447, allocations: 161.1 kB / 0.5638 GB, free: 11.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 2.425e-06/0.5448, allocations: 4 kB / 0.5638 GB, free: 11.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.002192/0.547, allocations: 1.146 MB / 0.5649 GB, free: 10.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.705e-05/0.5471, allocations: 132.5 kB / 0.565 GB, free: 10.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005432/0.5476, allocations: 421.3 kB / 0.5654 GB, free: 9.691 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.5476, allocations: 37.27 kB / 0.5655 GB, free: 9.652 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.5478, allocations: 288.8 kB / 0.5658 GB, free: 9.438 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.301e-05/0.5479, allocations: 97.27 kB / 0.5658 GB, free: 9.355 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.72e-05/0.5479, allocations: 11.31 kB / 0.5659 GB, free: 9.352 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.5481, allocations: 352.9 kB / 0.5662 GB, free: 9.016 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.5483, allocations: 89.83 kB / 0.5663 GB, free: 8.957 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/0.5485, allocations: 225.4 kB / 0.5665 GB, free: 8.719 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004457/0.549, allocations: 351.1 kB / 0.5668 GB, free: 8.398 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.549, allocations: 4 kB / 0.5668 GB, free: 8.395 MB / 378.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009489/0.55, allocations: 481 kB / 0.5673 GB, free: 8.008 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.298e-05/0.55, allocations: 33.7 kB / 0.5673 GB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.55, allocations: 4 kB / 0.5673 GB, free: 7.965 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000417/0.5505, allocations: 93.89 kB / 0.5674 GB, free: 7.883 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003034/0.5508, allocations: 71.56 kB / 0.5675 GB, free: 7.816 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002097/0.5529, allocations: 1.7 MB / 0.5691 GB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003279/0.5532, allocations: 22.55 kB / 0.5692 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/0.5533, allocations: 23.19 kB / 0.5692 GB, free: 6.148 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003494/0.5536, allocations: 208.8 kB / 0.5694 GB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.387e-05/0.5537, allocations: 43.44 kB / 0.5694 GB, free: 5.934 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005911/0.5543, allocations: 288.4 kB / 0.5697 GB, free: 5.727 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.5543, allocations: 11.88 kB / 0.5697 GB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.5543, allocations: 0 / 0.5697 GB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.5544, allocations: 3.984 kB / 0.5697 GB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001302/0.5557, allocations: 0.7861 MB / 0.5705 GB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.5557, allocations: 0 / 0.5705 GB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002809/0.556, allocations: 51.91 kB / 0.5705 GB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002087/0.5562, allocations: 47.31 kB / 0.5706 GB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/0.5562, allocations: 11.81 kB / 0.5706 GB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.5575, allocations: 1.441 MB / 0.572 GB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.5575, allocations: 4.031 kB / 0.572 GB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007175/0.5582, allocations: 484.8 kB / 0.5725 GB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.5585, allocations: 143.4 kB / 0.5726 GB, free: 2.926 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.69e-05/0.5585, allocations: 3.812 kB / 0.5726 GB, free: 2.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002709/0.5588, allocations: 12 kB / 0.5726 GB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.551e-05/0.5589, allocations: 23.78 kB / 0.5726 GB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.5589, allocations: 11.8 kB / 0.5727 GB, free: 2.887 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000335/0.5593, allocations: 287 kB / 0.5729 GB, free: 2.664 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5593, allocations: 0 / 0.5729 GB, free: 2.664 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005712/0.5598, allocations: 123.6 kB / 0.573 GB, free: 2.555 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.motor.phi_el,dcm_par.motor.w_el,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008883/0.5607, allocations: 370 kB / 0.5734 GB, free: 2.219 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008817/0.5616, allocations: 449.9 kB / 0.5738 GB, free: 1.828 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.5616, allocations: 0 / 0.5738 GB, free: 1.828 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004086/0.5621, allocations: 245.8 kB / 0.5741 GB, free: 1.605 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007986/0.5629, allocations: 117 kB / 0.5742 GB, free: 1.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002324/0.5652, allocations: 1.483 MB / 0.5756 GB, free: 88 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006689/0.5659, allocations: 0.8813 MB / 0.5765 GB, free: 15.19 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003561/0.5663, allocations: 68.23 kB / 0.5765 GB, free: 15.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.703e-05/0.5664, allocations: 35.38 kB / 0.5766 GB, free: 15.09 MB / 394.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5664, allocations: 0 / 0.5766 GB, free: 15.09 MB / 394.7 MB Notification: Performance of Templates: time 0.01403/0.5804, allocations: 6.2 MB / 0.5826 GB, free: 8.891 MB / 394.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)