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.00125/0.00125, allocations: 169.5 kB / 12.72 MB, free: 2.594 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.178/1.178, allocations: 170.6 MB / 183.8 MB, free: 11.48 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.001532/0.001532, allocations: 103.5 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.316e-05/2.317e-05, allocations: 8 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0592/0.05924, allocations: 38.76 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.255/0.3143, allocations: 89.24 MB / 396.9 MB, free: 3.32 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.3145, allocations: 81.95 kB / 396.9 MB, free: 3.277 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08204/0.3966, allocations: 30.36 MB / 427.3 MB, free: 9.699 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3966, allocations: 0 / 427.3 MB, free: 9.699 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.679e-05/0.3967, allocations: 24 kB / 427.3 MB, free: 9.676 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.002376/0.3991, allocations: 1.349 MB / 428.7 MB, free: 8.348 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.3992, allocations: 15.97 kB / 428.7 MB, free: 8.332 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006416/0.3998, allocations: 198.1 kB / 428.9 MB, free: 8.137 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/0.4014, allocations: 0.8359 MB / 429.7 MB, free: 7.438 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.4015, allocations: 119.3 kB / 429.8 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.4017, allocations: 110.6 kB / 429.9 MB, free: 7.273 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00175/0.4035, allocations: 1.08 MB / 431 MB, free: 6.449 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.364e-05/0.4035, allocations: 11.41 kB / 431 MB, free: 6.441 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.515e-05/0.4036, allocations: 46.69 kB / 431.1 MB, free: 6.43 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.4036, allocations: 24 kB / 431.1 MB, free: 6.406 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.4049, allocations: 0.6914 MB / 431.8 MB, free: 5.793 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005928/0.4108, allocations: 3.914 MB / 435.7 MB, free: 1.688 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.4122, allocations: 0.546 MB / 436.3 MB, free: 1.125 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003672/0.4125, allocations: 243.7 kB / 436.5 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.838e-05/0.4126, allocations: 16.48 kB / 436.5 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004825/0.4131, allocations: 271.1 kB / 436.8 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 3.607e-06/0.4131, allocations: 0 / 436.8 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.00278/0.4159, allocations: 1.517 MB / 438.3 MB, free: 15.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002114/0.4161, allocations: 479.2 kB / 438.8 MB, free: 14.44 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001234/0.4174, allocations: 0.9078 MB / 439.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/0.4174, allocations: 41.7 kB / 439.7 MB, free: 13.47 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004991/0.4179, allocations: 0.6387 MB / 440.4 MB, free: 12.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.4181, allocations: 240.7 kB / 440.6 MB, free: 12.58 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.069e-05/0.4182, allocations: 20 kB / 440.6 MB, free: 12.56 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.4184, allocations: 345.9 kB / 440.9 MB, free: 12.22 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.4187, allocations: 222.6 kB / 441.2 MB, free: 12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000734/0.4195, allocations: 0.6748 MB / 441.8 MB, free: 11.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005473/0.42, allocations: 385.2 kB / 442.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.42, allocations: 0 / 442.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001831/0.4219, allocations: 1.129 MB / 443.3 MB, free: 9.574 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.705e-05/0.4219, allocations: 70.67 kB / 443.4 MB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.422, allocations: 8 kB / 443.4 MB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006599/0.4226, allocations: 195.4 kB / 443.6 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000699/0.4233, allocations: 211.7 kB / 443.8 MB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003932/0.4273, allocations: 3.53 MB / 447.3 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009618/0.4283, allocations: 84.03 kB / 447.4 MB, free: 5.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.825e-05/0.4284, allocations: 44 kB / 447.5 MB, free: 5.164 MB / 330.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 () * 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: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000218/0.4286, allocations: 180.6 kB / 447.6 MB, free: 4.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.4287, allocations: 122.5 kB / 447.8 MB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001483/0.4302, allocations: 0.6995 MB / 448.5 MB, free: 4.141 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.4302, allocations: 7.984 kB / 448.5 MB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.4303, allocations: 8 kB / 448.5 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001184/0.4315, allocations: 0.9255 MB / 449.4 MB, free: 3.086 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002706/0.4342, allocations: 1.75 MB / 451.2 MB, free: 1.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.4342, allocations: 3.938 kB / 451.2 MB, free: 1.246 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00048/0.4347, allocations: 116.1 kB / 451.3 MB, free: 1.133 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004332/0.4351, allocations: 134.5 kB / 451.4 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.849e-05/0.4352, allocations: 16 kB / 451.4 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003082/0.4383, allocations: 3.267 MB / 454.7 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.4383, allocations: 7.875 kB / 454.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.4401, allocations: 1.106 MB / 455.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005116/0.4406, allocations: 255.5 kB / 456 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.4407, allocations: 20.12 kB / 456.1 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005364/0.4413, allocations: 47.97 kB / 456.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.4414, allocations: 56.42 kB / 456.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/0.4415, allocations: 23.98 kB / 456.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001003/0.4425, allocations: 0.6865 MB / 456.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4425, allocations: 4 kB / 456.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001267/0.4438, allocations: 360 kB / 457.2 MB, free: 10.79 MB / 346.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) * 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.000537/0.4443, allocations: 333 kB / 457.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001954/0.4463, allocations: 1.042 MB / 458.6 MB, free: 9.363 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.4463, allocations: 8 kB / 458.6 MB, free: 9.355 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007733/0.4471, allocations: 0.5119 MB / 459.1 MB, free: 8.82 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00117/0.4483, allocations: 300.9 kB / 459.4 MB, free: 8.527 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.4511, allocations: 1.635 MB / 461.1 MB, free: 6.836 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006452/0.4518, allocations: 1.105 MB / 462.2 MB, free: 5.703 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000514/0.4523, allocations: 149.8 kB / 462.3 MB, free: 5.555 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.4525, allocations: 71.44 kB / 462.4 MB, free: 5.484 MB / 346.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4525, allocations: 0 / 462.4 MB, free: 5.484 MB / 346.7 MB Notification: Performance of Templates: time 0.1982/0.6507, allocations: 18.76 MB / 481.1 MB, free: 92.54 MB / 346.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)