Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.005471/0.005471, allocations: 165.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.188/1.188, allocations: 170.8 MB / 186.6 MB, free: 1.121 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001568/0.001568, allocations: 107.3 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003291/0.0003292, allocations: 8 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2401, allocations: 38.77 MB / 312.9 MB, free: 38.82 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1144/0.3546, allocations: 89.33 MB / 402.2 MB, free: 1.152 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004348/0.3551, allocations: 87.95 kB / 402.3 MB, free: 1.066 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2715/0.6267, allocations: 30.32 MB / 432.6 MB, free: 80.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.6267, allocations: 0 / 432.6 MB, free: 80.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.42e-05/0.6268, allocations: 27.41 kB / 432.7 MB, free: 80.95 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.002704/0.6295, allocations: 1.534 MB / 434.2 MB, free: 79.95 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.6296, allocations: 11.98 kB / 434.2 MB, free: 79.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006105/0.6302, allocations: 206.2 kB / 434.4 MB, free: 79.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.6317, allocations: 0.8411 MB / 435.2 MB, free: 79.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.6318, allocations: 113.8 kB / 435.4 MB, free: 79.26 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.632, allocations: 113.8 kB / 435.5 MB, free: 79.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001606/0.6336, allocations: 1.136 MB / 436.6 MB, free: 78.6 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/0.6336, allocations: 7.906 kB / 436.6 MB, free: 78.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.128e-05/0.6337, allocations: 47.5 kB / 436.7 MB, free: 78.56 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/0.6337, allocations: 27.41 kB / 436.7 MB, free: 78.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001305/0.635, allocations: 0.7744 MB / 437.5 MB, free: 78.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004824/0.6399, allocations: 3.915 MB / 441.4 MB, free: 75.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.6413, allocations: 0.6016 MB / 442 MB, free: 75.67 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.553e-05/0.6413, allocations: 11.8 kB / 442 MB, free: 75.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005342/0.6419, allocations: 311.2 kB / 442.3 MB, free: 75.53 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 2.435e-06/0.6419, allocations: 0 / 442.3 MB, free: 75.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.003914/0.6458, allocations: 2.112 MB / 444.4 MB, free: 74.35 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.6459, allocations: 477.4 kB / 444.9 MB, free: 73.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009634/0.6469, allocations: 0.9237 MB / 445.8 MB, free: 73.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.226e-05/0.6469, allocations: 39.98 kB / 445.8 MB, free: 73.35 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003489/0.6473, allocations: 0.6371 MB / 446.5 MB, free: 72.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.6474, allocations: 235.9 kB / 446.7 MB, free: 72.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.444e-05/0.6475, allocations: 19.97 kB / 446.7 MB, free: 72.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.069e-05/0.6476, allocations: 347.2 kB / 447.1 MB, free: 72.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004461/0.648, allocations: 254.5 kB / 447.3 MB, free: 72.24 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000688/0.6487, allocations: 0.722 MB / 448 MB, free: 71.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005856/0.6493, allocations: 412.8 kB / 448.4 MB, free: 71.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.6493, allocations: 2.75 kB / 448.4 MB, free: 71.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001694/0.651, allocations: 1.163 MB / 449.6 MB, free: 70.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.446e-05/0.6511, allocations: 69.8 kB / 449.7 MB, free: 70.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/0.6511, allocations: 20.08 kB / 449.7 MB, free: 70.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005129/0.6516, allocations: 168.2 kB / 449.9 MB, free: 70.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006162/0.6523, allocations: 211.8 kB / 450.1 MB, free: 70.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003084/0.6554, allocations: 3.6 MB / 453.7 MB, free: 67.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008763/0.6563, allocations: 79.28 kB / 453.7 MB, free: 67.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.17e-05/0.6563, allocations: 49.58 kB / 453.8 MB, free: 67.17 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {5 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004286/0.6568, allocations: 297.9 kB / 454.1 MB, free: 66.94 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.6569, allocations: 123 kB / 454.2 MB, free: 66.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001289/0.6582, allocations: 0.7303 MB / 454.9 MB, free: 66.19 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.6582, allocations: 4 kB / 454.9 MB, free: 66.19 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.6582, allocations: 4 kB / 454.9 MB, free: 66.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009824/0.6592, allocations: 0.9569 MB / 455.9 MB, free: 65.12 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002284/0.6615, allocations: 1.804 MB / 457.7 MB, free: 63.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.6615, allocations: 4 kB / 457.7 MB, free: 63.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004502/0.662, allocations: 112.1 kB / 457.8 MB, free: 63.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00036/0.6623, allocations: 126.8 kB / 457.9 MB, free: 63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.524e-05/0.6624, allocations: 15.95 kB / 457.9 MB, free: 62.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002323/0.6647, allocations: 3.312 MB / 461.3 MB, free: 59.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.6647, allocations: 0 / 461.3 MB, free: 59.41 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.6663, allocations: 1.191 MB / 462.4 MB, free: 58.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003518/0.6667, allocations: 251.6 kB / 462.7 MB, free: 57.88 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.6668, allocations: 20 kB / 462.7 MB, free: 57.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005263/0.6673, allocations: 47.91 kB / 462.8 MB, free: 57.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.6675, allocations: 60.41 kB / 462.8 MB, free: 57.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.6675, allocations: 20 kB / 462.8 MB, free: 57.73 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008859/0.6684, allocations: 0.7008 MB / 463.5 MB, free: 57.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6684, allocations: 0 / 463.5 MB, free: 57.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001336/0.6697, allocations: 352.1 kB / 463.9 MB, free: 56.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005706/0.6703, allocations: 356.6 kB / 464.2 MB, free: 56.35 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.6721, allocations: 1.107 MB / 465.3 MB, free: 55.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.6721, allocations: 0.9375 kB / 465.3 MB, free: 55.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007154/0.6728, allocations: 0.5704 MB / 465.9 MB, free: 54.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.674, allocations: 295.2 kB / 466.2 MB, free: 54.31 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003678/0.6777, allocations: 2.705 MB / 468.9 MB, free: 51.55 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005291/0.6782, allocations: 1.109 MB / 470 MB, free: 50.41 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000644/0.6789, allocations: 141.8 kB / 470.2 MB, free: 50.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.6791, allocations: 79.42 kB / 470.2 MB, free: 50.2 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6791, allocations: 0 / 470.2 MB, free: 50.2 MB / 314.7 MB Notification: Performance of Templates: time 0.02831/0.7074, allocations: 18.38 MB / 488.6 MB, free: 31.85 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1)