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/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.2.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.2.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.001585/0.001591, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001568/0.001568, allocations: 190 kB / 16.14 MB, free: 6.668 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.806/1.806, allocations: 205.1 MB / 222 MB, free: 4.758 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.001513/0.001514, allocations: 51.92 kB / 278.1 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.3638, allocations: 46.63 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01303/0.3769, allocations: 9.493 MB / 334.2 MB, free: 10.42 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007445/0.3845, allocations: 3.114 MB / 337.3 MB, free: 7.504 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002084/0.3867, allocations: 23.94 kB / 337.3 MB, free: 7.48 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002027/0.3888, allocations: 0.5051 MB / 337.8 MB, free: 6.973 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002414/0.3912, allocations: 0.4926 MB / 338.3 MB, free: 6.477 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008533/0.3921, allocations: 275.7 kB / 338.6 MB, free: 6.207 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002351/0.3944, allocations: 1.673 MB / 340.3 MB, free: 4.527 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008636/0.3953, allocations: 0.5454 MB / 340.8 MB, free: 3.957 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008896/0.3962, allocations: 0.6185 MB / 341.4 MB, free: 3.336 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.3972, allocations: 0.7077 MB / 342.1 MB, free: 2.625 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001959/0.3975, allocations: 108 kB / 342.2 MB, free: 2.52 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004258/0.3979, allocations: 140 kB / 342.4 MB, free: 2.383 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003111/0.3982, allocations: 286.8 kB / 342.6 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008693/0.3991, allocations: 0.7579 MB / 343.4 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002167/0.4013, allocations: 1.911 MB / 345.3 MB, free: 15.42 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.507e-06/0.4013, allocations: 4 kB / 345.3 MB, free: 15.42 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4013, allocations: 0 / 345.3 MB, free: 15.42 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.833e-05/0.4013, allocations: 0 / 345.3 MB, free: 15.42 MB / 286.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.00413/0.4055, allocations: 1.796 MB / 347.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/0.4056, allocations: 12.03 kB / 347.1 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000698/0.4063, allocations: 195 kB / 347.3 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001577/0.4078, allocations: 0.8133 MB / 348.1 MB, free: 12.49 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/0.408, allocations: 116.4 kB / 348.2 MB, free: 12.37 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001709/0.4082, allocations: 116 kB / 348.4 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00199/0.4102, allocations: 1.15 MB / 349.5 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.872e-05/0.4103, allocations: 0 / 349.5 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.4104, allocations: 48 kB / 349.6 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.448e-05/0.4104, allocations: 24 kB / 349.6 MB, free: 10.94 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.412, allocations: 0.7652 MB / 350.3 MB, free: 10.18 MB / 286.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.006568/0.4186, allocations: 3.934 MB / 354.3 MB, free: 6.043 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.4201, allocations: 0.5891 MB / 354.9 MB, free: 5.449 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000467/0.4206, allocations: 266.9 kB / 355.1 MB, free: 5.188 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.918e-05/0.4206, allocations: 12.55 kB / 355.1 MB, free: 5.176 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006238/0.4213, allocations: 291.1 kB / 355.4 MB, free: 4.875 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 3.426e-06/0.4213, allocations: 4 kB / 355.4 MB, free: 4.871 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.005269/0.4266, allocations: 2.08 MB / 357.5 MB, free: 2.695 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003178/0.4269, allocations: 479.2 kB / 358 MB, free: 2.117 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001766/0.4287, allocations: 1.097 MB / 359.1 MB, free: 1.008 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.495e-05/0.4287, allocations: 45.7 kB / 359.1 MB, free: 0.957 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006112/0.4294, allocations: 0.6505 MB / 359.8 MB, free: 304 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000218/0.4296, allocations: 232.7 kB / 360 MB, free: 68 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003176/0.4299, allocations: 194.8 kB / 360.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.4301, allocations: 341.9 kB / 360.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005459/0.4306, allocations: 254.4 kB / 360.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009828/0.4316, allocations: 0.7131 MB / 361.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.433, allocations: 0.9414 MB / 362.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.433, allocations: 7.938 kB / 362.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002141/0.4352, allocations: 1.138 MB / 363.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.607e-05/0.4353, allocations: 71.39 kB / 363.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.135e-05/0.4353, allocations: 8 kB / 363.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006382/0.436, allocations: 173.7 kB / 363.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006477/0.4366, allocations: 199.7 kB / 364 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004153/0.4408, allocations: 3.549 MB / 367.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.4419, allocations: 67.86 kB / 367.6 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.674e-05/0.4419, allocations: 52.09 kB / 367.7 MB, free: 7.684 MB / 302.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.0005353/0.4425, allocations: 289.6 kB / 368 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.4426, allocations: 130.5 kB / 368.1 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001449/0.4441, allocations: 0.7115 MB / 368.8 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.4441, allocations: 8 kB / 368.8 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.4441, allocations: 0 / 368.8 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001339/0.4455, allocations: 0.9529 MB / 369.8 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002797/0.4483, allocations: 1.794 MB / 371.6 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.4483, allocations: 3.938 kB / 371.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000474/0.4488, allocations: 108.1 kB / 371.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004181/0.4492, allocations: 125.6 kB / 371.8 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.837e-05/0.4493, allocations: 15.98 kB / 371.8 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003359/0.4526, allocations: 3.287 MB / 375.1 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.151e-05/0.4527, allocations: 11.95 kB / 375.1 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/0.4546, allocations: 1.045 MB / 376.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004402/0.4551, allocations: 251.6 kB / 376.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.4552, allocations: 20 kB / 376.4 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006424/0.4559, allocations: 43.95 kB / 376.5 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.456, allocations: 52.44 kB / 376.5 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.67e-05/0.4561, allocations: 19.98 kB / 376.5 MB, free: 14.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001082/0.4572, allocations: 0.7484 MB / 377.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4572, allocations: 7.938 kB / 377.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001176/0.4584, allocations: 312.1 kB / 377.6 MB, free: 13.21 MB / 318.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.0002625/0.4586, allocations: 131 kB / 377.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001987/0.4606, allocations: 1.096 MB / 378.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.4606, allocations: 0 / 378.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009308/0.4616, allocations: 0.5489 MB / 379.4 MB, free: 11.35 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/0.4632, allocations: 315.6 kB / 379.7 MB, free: 11.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004174/0.4674, allocations: 2.69 MB / 382.4 MB, free: 8.309 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007302/0.4681, allocations: 1.082 MB / 383.4 MB, free: 7.195 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005699/0.4687, allocations: 145.8 kB / 383.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001823/0.4689, allocations: 83.42 kB / 383.7 MB, free: 6.969 MB / 318.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4689, allocations: 0 / 383.7 MB, free: 6.969 MB / 318.1 MB Notification: Performance of Templates: time 0.03246/0.5014, allocations: 16.96 MB / 400.6 MB, free: 5.973 MB / 334.1 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)