Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009697/0.0009698, allocations: 178.9 kB / 16.38 MB, free: 5.762 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.245/1.245, allocations: 194.5 MB / 211.6 MB, free: 3.059 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.001595/0.001595, allocations: 107.8 kB / 256.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.000262, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07134/0.07161, allocations: 44.49 MB / 355.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.23/0.3016, allocations: 94.48 MB / 449.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.3019, allocations: 86.77 kB / 449.6 MB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07656/0.3785, allocations: 30.29 MB / 479.9 MB, free: 15.26 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3785, allocations: 4 kB / 479.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001017/0.3786, allocations: 24 kB / 479.9 MB, free: 15.23 MB / 362.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.00357/0.3822, allocations: 1.537 MB / 481.5 MB, free: 13.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.3822, allocations: 8.031 kB / 481.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000726/0.383, allocations: 206.4 kB / 481.7 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001686/0.3847, allocations: 0.836 MB / 482.5 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.3848, allocations: 111.8 kB / 482.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.3849, allocations: 108 kB / 482.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/0.3868, allocations: 1.136 MB / 483.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.57e-05/0.3869, allocations: 7.906 kB / 483.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.143e-05/0.387, allocations: 47.98 kB / 483.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.001e-05/0.387, allocations: 39.88 kB / 484 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00154/0.3886, allocations: 0.7769 MB / 484.8 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006028/0.3946, allocations: 3.914 MB / 488.7 MB, free: 6.113 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.3961, allocations: 0.605 MB / 489.3 MB, free: 5.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.882e-05/0.3962, allocations: 12.52 kB / 489.3 MB, free: 5.488 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006069/0.3968, allocations: 318.9 kB / 489.6 MB, free: 5.164 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 4.008e-06/0.3968, allocations: 0 / 489.6 MB, free: 5.164 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.004532/0.4014, allocations: 2.106 MB / 491.7 MB, free: 2.965 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001909/0.4016, allocations: 479.2 kB / 492.2 MB, free: 2.383 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.4029, allocations: 0.9144 MB / 493.1 MB, free: 1.457 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.829e-05/0.4029, allocations: 49.7 kB / 493.1 MB, free: 1.402 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004797/0.4034, allocations: 0.6426 MB / 493.8 MB, free: 0.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.4036, allocations: 236.7 kB / 494 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/0.4037, allocations: 23.94 kB / 494 MB, free: 0.4922 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.4038, allocations: 341.9 kB / 494.4 MB, free: 156 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005132/0.4043, allocations: 262.6 kB / 494.6 MB, free: 15.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007464/0.405, allocations: 0.7092 MB / 495.3 MB, free: 14.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000635/0.4057, allocations: 414.3 kB / 495.7 MB, free: 14.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.4057, allocations: 4 kB / 495.7 MB, free: 14.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00193/0.4076, allocations: 1.161 MB / 496.9 MB, free: 13.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.888e-05/0.4077, allocations: 63.41 kB / 497 MB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.4077, allocations: 12 kB / 497 MB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005234/0.4083, allocations: 173.7 kB / 497.1 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006722/0.4089, allocations: 207.7 kB / 497.3 MB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003766/0.4127, allocations: 3.612 MB / 0.4892 GB, free: 9.039 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008857/0.4136, allocations: 84.17 kB / 0.4893 GB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.201e-05/0.4137, allocations: 51.98 kB / 0.4893 GB, free: 8.906 MB / 378.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 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005049/0.4142, allocations: 285.5 kB / 0.4896 GB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001885/0.4144, allocations: 130.5 kB / 0.4897 GB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.4159, allocations: 0.7348 MB / 0.4905 GB, free: 7.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.4159, allocations: 8 kB / 0.4905 GB, free: 7.723 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.416, allocations: 0 / 0.4905 GB, free: 7.723 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001191/0.4171, allocations: 0.953 MB / 0.4914 GB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00287/0.42, allocations: 1.805 MB / 0.4932 GB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.42, allocations: 0 / 0.4932 GB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000486/0.4205, allocations: 112.1 kB / 0.4933 GB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004126/0.421, allocations: 126.6 kB / 0.4934 GB, free: 4.531 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.625e-05/0.421, allocations: 31.86 kB / 0.4934 GB, free: 4.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003083/0.4241, allocations: 3.304 MB / 0.4966 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4241, allocations: 0 / 0.4966 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001913/0.426, allocations: 1.187 MB / 0.4978 GB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00048/0.4265, allocations: 255.6 kB / 0.498 GB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000182/0.4267, allocations: 15.95 kB / 0.4981 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/0.4273, allocations: 47.97 kB / 0.4981 GB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.4275, allocations: 60.47 kB / 0.4982 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.4275, allocations: 20 kB / 0.4982 GB, free: 15.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009956/0.4285, allocations: 0.693 MB / 0.4989 GB, free: 14.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4285, allocations: 4 kB / 0.4989 GB, free: 14.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00116/0.4297, allocations: 364 kB / 0.4992 GB, free: 14.19 MB / 394.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.0004644/0.4302, allocations: 344.8 kB / 0.4995 GB, free: 13.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001952/0.4321, allocations: 1.113 MB / 0.5006 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.4322, allocations: 7.938 kB / 0.5006 GB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009011/0.4331, allocations: 0.5672 MB / 0.5012 GB, free: 12.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.4343, allocations: 309.1 kB / 0.5015 GB, free: 11.81 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.4383, allocations: 2.7 MB / 0.5041 GB, free: 9.059 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007088/0.439, allocations: 1.109 MB / 0.5052 GB, free: 7.918 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006649/0.4397, allocations: 149.8 kB / 0.5053 GB, free: 7.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.4399, allocations: 75.44 kB / 0.5054 GB, free: 7.695 MB / 394.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4399, allocations: 0 / 0.5054 GB, free: 7.695 MB / 394.7 MB Notification: Performance of Templates: time 0.1745/0.6144, allocations: 18.49 MB / 0.5235 GB, free: 105.3 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1)