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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.002044/0.002044, allocations: 200 kB / 18.01 MB, free: 5.055 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.89/1.89, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.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.001859/0.001859, allocations: 51.92 kB / 327.9 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.126, allocations: 46.62 MB / 374.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.2726/0.3987, allocations: 9.537 MB / 384 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006876/0.4056, allocations: 3.128 MB / 387.2 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001905/0.4076, allocations: 27 kB / 387.2 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002507/0.4102, allocations: 0.578 MB / 387.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003595/0.4138, allocations: 0.5564 MB / 388.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001204/0.415, allocations: 320.2 kB / 388.6 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00273/0.4177, allocations: 1.767 MB / 390.4 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.419, allocations: 0.6337 MB / 391 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00155/0.4206, allocations: 0.6667 MB / 391.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001242/0.4218, allocations: 0.7483 MB / 392.5 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003/0.4221, allocations: 158.6 kB / 392.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005338/0.4227, allocations: 196.7 kB / 392.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002755/0.423, allocations: 336 kB / 393.1 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008076/0.4238, allocations: 0.8113 MB / 393.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002658/0.4264, allocations: 1.982 MB / 395.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.4264, allocations: 1.375 kB / 395.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4265, allocations: 0 / 395.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.407e-05/0.4265, allocations: 0 / 395.9 MB, free: 2.078 MB / 318.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.003724/0.4302, allocations: 1.783 MB / 397.7 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.4303, allocations: 10.22 kB / 397.7 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007825/0.4311, allocations: 204.5 kB / 397.9 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001702/0.4328, allocations: 0.8409 MB / 398.8 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001553/0.433, allocations: 114.5 kB / 398.9 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001815/0.4331, allocations: 113.1 kB / 399 MB, free: 132 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/0.4354, allocations: 1.149 MB / 400.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.923e-05/0.4354, allocations: 8.891 kB / 400.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.89e-05/0.4355, allocations: 47.41 kB / 400.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.762e-05/0.4356, allocations: 24.78 kB / 400.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.4371, allocations: 0.7625 MB / 401 MB, free: 15.2 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.006523/0.4437, allocations: 3.907 MB / 404.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.4453, allocations: 0.5873 MB / 405.5 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005175/0.4458, allocations: 268.6 kB / 405.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.037e-05/0.4459, allocations: 15.28 kB / 405.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006256/0.4465, allocations: 295.3 kB / 406 MB, free: 11.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 3.106e-06/0.4465, allocations: 0 / 406 MB, free: 11.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.005263/0.4518, allocations: 2.071 MB / 408.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003145/0.4521, allocations: 481.4 kB / 408.6 MB, free: 9.766 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001787/0.4539, allocations: 1.107 MB / 409.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.579e-05/0.454, allocations: 43.2 kB / 409.7 MB, free: 9.105 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006563/0.4547, allocations: 0.6462 MB / 410.4 MB, free: 8.527 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002045/0.4549, allocations: 230.3 kB / 410.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000321/0.4552, allocations: 195.8 kB / 410.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.4554, allocations: 346.2 kB / 411.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005587/0.456, allocations: 245 kB / 411.4 MB, free: 7.762 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001079/0.4571, allocations: 0.7119 MB / 412.1 MB, free: 7.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001778/0.4588, allocations: 0.9398 MB / 413 MB, free: 6.211 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-05/0.4589, allocations: 7.062 kB / 413 MB, free: 6.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002711/0.4616, allocations: 1.15 MB / 414.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.316e-05/0.4617, allocations: 67.91 kB / 414.2 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.808e-05/0.4617, allocations: 12.78 kB / 414.3 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006718/0.4624, allocations: 168.8 kB / 414.4 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006645/0.4631, allocations: 199.9 kB / 414.6 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004984/0.4681, allocations: 3.882 MB / 418.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001696/0.4698, allocations: 71.58 kB / 418.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.4699, allocations: 46.5 kB / 418.6 MB, free: 1.75 MB / 334.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.0008853/0.4708, allocations: 293.1 kB / 418.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002247/0.4711, allocations: 127 kB / 419 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.4727, allocations: 0.7088 MB / 419.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.4727, allocations: 7.125 kB / 419.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.4727, allocations: 0 / 419.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001425/0.4741, allocations: 0.9579 MB / 420.7 MB, free: 0 / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003493/0.4776, allocations: 1.785 MB / 422.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.4777, allocations: 0 / 422.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004922/0.4782, allocations: 108 kB / 422.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004329/0.4786, allocations: 133.6 kB / 422.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.101e-05/0.4787, allocations: 15.98 kB / 422.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004087/0.4827, allocations: 3.589 MB / 426.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.4828, allocations: 3.984 kB / 426.3 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.4852, allocations: 1.058 MB / 427.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007056/0.4859, allocations: 255.6 kB / 427.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/0.4861, allocations: 16 kB / 427.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000658/0.4868, allocations: 35.97 kB / 427.7 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.4869, allocations: 60.36 kB / 427.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.19e-05/0.487, allocations: 20 kB / 427.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00125/0.4883, allocations: 0.7484 MB / 428.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4883, allocations: 0 / 428.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00178/0.4901, allocations: 312 kB / 428.8 MB, free: 7.445 MB / 350.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.0004604/0.4905, allocations: 135.1 kB / 428.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002926/0.4935, allocations: 1.092 MB / 430 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.4935, allocations: 4 kB / 430 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.4947, allocations: 0.5404 MB / 430.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001731/0.4964, allocations: 341.5 kB / 430.9 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004744/0.5012, allocations: 2.226 MB / 433.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.5023, allocations: 1.086 MB / 434.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007956/0.5031, allocations: 145.8 kB / 434.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.5034, allocations: 83.38 kB / 434.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of SimCode: time 2.194e-06/0.5034, allocations: 0 / 434.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of Templates: time 0.03846/0.5418, allocations: 18.65 MB / 453.1 MB, free: 14.95 MB / 382.1 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)