Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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.1_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.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006994/0.006994, allocations: 103.6 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 194.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.674/1.674, allocations: 205.1 MB / 222.6 MB, free: 4.258 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002212/0.002213, allocations: 51.14 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1343, allocations: 46.63 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01066/0.145, allocations: 9.534 MB / 382.7 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006296/0.1514, allocations: 3.116 MB / 385.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001541/0.153, allocations: 27.94 kB / 385.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001797/0.1548, allocations: 0.5899 MB / 386.5 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002342/0.1572, allocations: 0.5581 MB / 387 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008785/0.158, allocations: 323.4 kB / 387.3 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002496/0.1606, allocations: 1.759 MB / 389.1 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009163/0.1615, allocations: 0.6374 MB / 389.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001095/0.1626, allocations: 0.6732 MB / 390.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008969/0.1635, allocations: 0.7389 MB / 391.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002068/0.1637, allocations: 160 kB / 391.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003999/0.1641, allocations: 204 kB / 391.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002605/0.1644, allocations: 330.8 kB / 391.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008032/0.1652, allocations: 0.801 MB / 392.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002197/0.1674, allocations: 1.989 MB / 394.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1674, allocations: 0 / 394.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1675, allocations: 0 / 394.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.438e-05/0.1675, allocations: 0 / 394.6 MB, free: 11.75 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003317/0.1708, allocations: 1.789 MB / 396.4 MB, free: 9.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.1709, allocations: 8.031 kB / 396.4 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005809/0.1714, allocations: 207 kB / 396.6 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.1729, allocations: 0.8288 MB / 397.4 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001402/0.1731, allocations: 116.4 kB / 397.6 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.1733, allocations: 112.1 kB / 397.7 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001984/0.1753, allocations: 1.139 MB / 398.8 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.364e-05/0.1753, allocations: 3.906 kB / 398.8 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-05/0.1754, allocations: 55.92 kB / 398.9 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.43e-05/0.1755, allocations: 32 kB / 398.9 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00163/0.1771, allocations: 0.7574 MB / 399.6 MB, free: 6.496 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006278/0.1834, allocations: 3.918 MB / 403.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/0.185, allocations: 0.5853 MB / 404.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005784/0.1856, allocations: 266.9 kB / 404.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.011e-05/0.1857, allocations: 16.55 kB / 404.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006492/0.1863, allocations: 299.1 kB / 404.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 4.078e-06/0.1863, allocations: 0 / 404.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.005051/0.1914, allocations: 2.069 MB / 406.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002973/0.1917, allocations: 479.2 kB / 407.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001566/0.1933, allocations: 1.105 MB / 408.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.221e-05/0.1934, allocations: 45.7 kB / 408.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005655/0.1939, allocations: 0.635 MB / 409 MB, free: 12.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.1942, allocations: 236.7 kB / 409.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002927/0.1945, allocations: 194.8 kB / 409.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1946, allocations: 345.9 kB / 409.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005394/0.1952, allocations: 246.4 kB / 410 MB, free: 11.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008766/0.196, allocations: 0.7208 MB / 410.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/0.1974, allocations: 0.9336 MB / 411.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.1974, allocations: 7.938 kB / 411.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002228/0.1997, allocations: 1.145 MB / 412.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.27e-05/0.1997, allocations: 63.34 kB / 412.9 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.1998, allocations: 12.44 kB / 412.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006249/0.2004, allocations: 177.6 kB / 413.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006622/0.2011, allocations: 203.7 kB / 413.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004271/0.2054, allocations: 3.881 MB / 417.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.2065, allocations: 67.97 kB / 417.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.414e-05/0.2066, allocations: 48 kB / 417.3 MB, free: 3.676 MB / 350.1 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0006031/0.2072, allocations: 293.6 kB / 417.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/0.2074, allocations: 122.5 kB / 417.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001618/0.209, allocations: 0.7154 MB / 418.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.209, allocations: 8 kB / 418.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2091, allocations: 0 / 418.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001433/0.2105, allocations: 0.9529 MB / 419.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003058/0.2136, allocations: 1.789 MB / 421.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.2136, allocations: 224 / 421.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004822/0.2141, allocations: 111.8 kB / 421.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004377/0.2145, allocations: 125.6 kB / 421.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.691e-05/0.2146, allocations: 15.98 kB / 421.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.218, allocations: 3.591 MB / 425 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.2181, allocations: 7.969 kB / 425 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/0.22, allocations: 1.05 MB / 426.1 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004788/0.2205, allocations: 247.6 kB / 426.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.2206, allocations: 20 kB / 426.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006145/0.2212, allocations: 35.97 kB / 426.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.2214, allocations: 60.42 kB / 426.4 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.628e-05/0.2215, allocations: 20 kB / 426.4 MB, free: 9.957 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001094/0.2226, allocations: 0.7483 MB / 427.2 MB, free: 9.203 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2226, allocations: 0 / 427.2 MB, free: 9.203 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001179/0.2237, allocations: 319.9 kB / 427.5 MB, free: 8.891 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,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 (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002873/0.224, allocations: 131.2 kB / 427.6 MB, free: 8.754 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002107/0.2262, allocations: 1.096 MB / 428.7 MB, free: 7.609 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.2262, allocations: 3.938 kB / 428.7 MB, free: 7.605 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008829/0.2271, allocations: 0.5473 MB / 429.3 MB, free: 7.027 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/0.2284, allocations: 332.9 kB / 429.6 MB, free: 6.699 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003788/0.2322, allocations: 2.215 MB / 431.8 MB, free: 4.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006508/0.2329, allocations: 1.086 MB / 432.9 MB, free: 3.316 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004901/0.2334, allocations: 149.8 kB / 433 MB, free: 3.168 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.2335, allocations: 75.44 kB / 433.1 MB, free: 3.098 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2336, allocations: 0 / 433.1 MB, free: 3.098 MB / 366.1 MB Notification: Performance of Templates: time 0.03094/0.2645, allocations: 18.17 MB / 451.3 MB, free: 0.8867 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1)