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.00134/0.00134, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001486/0.001486, allocations: 194 kB / 16.25 MB, free: 6.625 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.919/1.919, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.002834/0.002834, allocations: 47.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3559, allocations: 46.63 MB / 324.9 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01184/0.3678, allocations: 9.49 MB / 334.3 MB, free: 10.41 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007054/0.3749, allocations: 3.09 MB / 337.4 MB, free: 7.473 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002131/0.3772, allocations: 31.88 kB / 337.5 MB, free: 7.441 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002115/0.3793, allocations: 0.5168 MB / 338 MB, free: 6.922 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002823/0.3821, allocations: 0.4887 MB / 338.5 MB, free: 6.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001193/0.3833, allocations: 267.7 kB / 338.7 MB, free: 6.168 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003615/0.387, allocations: 1.755 MB / 340.5 MB, free: 4.406 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001262/0.3882, allocations: 0.6375 MB / 341.1 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001318/0.3896, allocations: 0.6732 MB / 341.8 MB, free: 3.07 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008908/0.3905, allocations: 0.7467 MB / 342.5 MB, free: 2.32 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.3907, allocations: 156 kB / 342.7 MB, free: 2.168 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003939/0.3911, allocations: 196 kB / 342.9 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002956/0.3914, allocations: 330.8 kB / 343.2 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000956/0.3924, allocations: 0.8087 MB / 344 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002286/0.3947, allocations: 1.954 MB / 346 MB, free: 14.88 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3947, allocations: 0 / 346 MB, free: 14.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3947, allocations: 0 / 346 MB, free: 14.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.605e-05/0.3947, allocations: 4 kB / 346 MB, free: 14.88 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.003343/0.3981, allocations: 1.804 MB / 347.8 MB, free: 13 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.3981, allocations: 8.031 kB / 347.8 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006021/0.3987, allocations: 199 kB / 348 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.4, allocations: 0.8172 MB / 348.8 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.4002, allocations: 116.4 kB / 348.9 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/0.4004, allocations: 120 kB / 349 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001896/0.4023, allocations: 1.131 MB / 350.2 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.822e-05/0.4023, allocations: 8 kB / 350.2 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-05/0.4024, allocations: 40 kB / 350.2 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.4024, allocations: 28 kB / 350.2 MB, free: 10.4 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/0.404, allocations: 0.7613 MB / 351 MB, free: 9.637 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.005998/0.41, allocations: 3.953 MB / 355 MB, free: 5.48 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001466/0.4115, allocations: 0.5816 MB / 355.5 MB, free: 4.895 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/0.412, allocations: 270.8 kB / 355.8 MB, free: 4.629 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.335e-05/0.412, allocations: 12.5 kB / 355.8 MB, free: 4.617 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007408/0.4128, allocations: 299.1 kB / 356.1 MB, free: 4.309 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 4.438e-06/0.4128, allocations: 0 / 356.1 MB, free: 4.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.005513/0.4183, allocations: 2.073 MB / 358.2 MB, free: 2.141 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003189/0.4187, allocations: 483.2 kB / 358.6 MB, free: 1.559 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001645/0.4203, allocations: 1.101 MB / 359.7 MB, free: 456 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.436e-05/0.4204, allocations: 41.64 kB / 359.8 MB, free: 408 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005549/0.421, allocations: 0.6507 MB / 360.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002925/0.4213, allocations: 224.8 kB / 360.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/0.4216, allocations: 198.8 kB / 360.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.4218, allocations: 345.9 kB / 361.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000545/0.4223, allocations: 242.5 kB / 361.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009586/0.4233, allocations: 0.7169 MB / 362.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.4246, allocations: 0.9375 MB / 363.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/0.4247, allocations: 7.938 kB / 363.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002141/0.4268, allocations: 1.145 MB / 364.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.857e-05/0.4269, allocations: 63.41 kB / 364.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.065e-05/0.4269, allocations: 12 kB / 364.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006246/0.4276, allocations: 173.8 kB / 364.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006681/0.4282, allocations: 207.7 kB / 364.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004797/0.433, allocations: 3.888 MB / 368.6 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.4345, allocations: 75.8 kB / 368.6 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.769e-05/0.4346, allocations: 48 kB / 368.7 MB, free: 6.77 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.000675/0.4353, allocations: 301.7 kB / 369 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002169/0.4355, allocations: 122.5 kB / 369.1 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001638/0.4372, allocations: 0.7077 MB / 369.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.4372, allocations: 8 kB / 369.8 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.4372, allocations: 0 / 369.8 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001454/0.4386, allocations: 0.9568 MB / 370.8 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002947/0.4416, allocations: 1.794 MB / 372.6 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.473e-06/0.4416, allocations: 0 / 372.6 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005321/0.4422, allocations: 111.8 kB / 372.7 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005158/0.4427, allocations: 125.8 kB / 372.8 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.16e-05/0.4427, allocations: 12 kB / 372.8 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003764/0.4465, allocations: 3.603 MB / 376.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4466, allocations: 0 / 376.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/0.4485, allocations: 1.053 MB / 377.5 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000635/0.4492, allocations: 255.6 kB / 377.7 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.4493, allocations: 19.98 kB / 377.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006486/0.45, allocations: 39.97 kB / 377.8 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.4502, allocations: 56.42 kB / 377.8 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.819e-05/0.4502, allocations: 24 kB / 377.9 MB, free: 13.03 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001078/0.4513, allocations: 0.7406 MB / 378.6 MB, free: 12.28 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4513, allocations: 0 / 378.6 MB, free: 12.28 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001152/0.4525, allocations: 312 kB / 378.9 MB, free: 11.98 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.0002787/0.4528, allocations: 143.1 kB / 379 MB, free: 11.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002505/0.4553, allocations: 1.118 MB / 380.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/0.4553, allocations: 4 kB / 380.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.4563, allocations: 0.55 MB / 380.7 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001646/0.458, allocations: 316.5 kB / 381 MB, free: 9.773 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004601/0.4626, allocations: 2.703 MB / 383.7 MB, free: 7.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/0.4637, allocations: 1.082 MB / 384.8 MB, free: 5.906 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008501/0.4646, allocations: 145.8 kB / 385 MB, free: 5.762 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.4648, allocations: 75.44 kB / 385 MB, free: 5.688 MB / 318.1 MB Notification: Performance of SimCode: time 2.154e-06/0.4648, allocations: 0 / 385 MB, free: 5.688 MB / 318.1 MB Notification: Performance of Templates: time 0.04003/0.5048, allocations: 17.84 MB / 402.9 MB, free: 3.805 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)