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.0009314/0.0009314, allocations: 86.8 kB / 16.31 MB, free: 6.449 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.001143/0.001143, allocations: 183.4 kB / 17.21 MB, free: 6.316 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.556/1.556, allocations: 205.4 MB / 223.4 MB, free: 5.277 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.000468/0.0004682, allocations: 12 kB / 280.1 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2805, allocations: 47.59 MB / 327.7 MB, free: 1.461 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01074/0.2913, allocations: 8.443 MB / 336.2 MB, free: 10.82 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006876/0.2983, allocations: 2.874 MB / 339.1 MB, free: 8.133 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001449/0.2998, allocations: 23.94 kB / 339.1 MB, free: 8.109 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001601/0.3014, allocations: 489.1 kB / 339.6 MB, free: 7.629 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002029/0.3034, allocations: 476.5 kB / 340 MB, free: 7.16 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008398/0.3043, allocations: 215.7 kB / 340.2 MB, free: 6.949 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002052/0.3064, allocations: 1.58 MB / 341.8 MB, free: 5.363 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009237/0.3073, allocations: 0.4994 MB / 342.3 MB, free: 4.844 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001095/0.3084, allocations: 0.5563 MB / 342.9 MB, free: 4.285 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008228/0.3092, allocations: 0.6261 MB / 343.5 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001389/0.3094, allocations: 84 kB / 343.6 MB, free: 3.574 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003295/0.3097, allocations: 124 kB / 343.7 MB, free: 3.453 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002207/0.3099, allocations: 242.9 kB / 343.9 MB, free: 3.215 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003292/0.3103, allocations: 316.9 kB / 344.2 MB, free: 2.898 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001517/0.3118, allocations: 1.511 MB / 345.8 MB, free: 1.383 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3118, allocations: 0 / 345.8 MB, free: 1.383 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3118, allocations: 0 / 345.8 MB, free: 1.383 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.649e-05/0.3119, allocations: 0 / 345.8 MB, free: 1.383 MB / 270.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.002842/0.3147, allocations: 1.559 MB / 347.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.105e-05/0.3148, allocations: 8.031 kB / 347.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005812/0.3154, allocations: 210 kB / 347.5 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.3166, allocations: 0.7854 MB / 348.3 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.3168, allocations: 115.8 kB / 348.4 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.317, allocations: 111.9 kB / 348.5 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001997/0.319, allocations: 1.139 MB / 349.7 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.215e-05/0.319, allocations: 7.938 kB / 349.7 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.133e-05/0.3191, allocations: 44 kB / 349.7 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.782e-05/0.3192, allocations: 31.95 kB / 349.8 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.3207, allocations: 0.773 MB / 350.5 MB, free: 12.39 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.005961/0.3267, allocations: 3.95 MB / 354.5 MB, free: 8.246 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.3282, allocations: 0.6045 MB / 355.1 MB, free: 7.629 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004904/0.3288, allocations: 278.9 kB / 355.4 MB, free: 7.355 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.199e-05/0.3288, allocations: 12.55 kB / 355.4 MB, free: 7.344 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006615/0.3295, allocations: 311.4 kB / 355.7 MB, free: 7.027 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 4.388e-06/0.3295, allocations: 0 / 355.7 MB, free: 7.027 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.004608/0.3341, allocations: 2.124 MB / 357.8 MB, free: 4.809 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002283/0.3344, allocations: 471.2 kB / 358.3 MB, free: 4.238 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001505/0.3359, allocations: 1.094 MB / 359.4 MB, free: 3.133 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.572e-05/0.3359, allocations: 41.7 kB / 359.4 MB, free: 3.086 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005377/0.3365, allocations: 0.6428 MB / 360 MB, free: 2.434 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002039/0.3367, allocations: 236.7 kB / 360.3 MB, free: 2.199 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.993e-05/0.3367, allocations: 24 kB / 360.3 MB, free: 2.176 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3369, allocations: 345.9 kB / 360.6 MB, free: 1.832 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000513/0.3374, allocations: 250.5 kB / 360.9 MB, free: 1.586 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008862/0.3383, allocations: 0.7208 MB / 361.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007174/0.3391, allocations: 406.4 kB / 362 MB, free: 252 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.3391, allocations: 0 / 362 MB, free: 252 kB / 286.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002024/0.3411, allocations: 1.137 MB / 363.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.158e-05/0.3412, allocations: 67.8 kB / 363.2 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.976e-05/0.3412, allocations: 16 kB / 363.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000583/0.3418, allocations: 161.6 kB / 363.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006476/0.3425, allocations: 215.6 kB / 363.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004319/0.3468, allocations: 3.54 MB / 367.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.348, allocations: 80.02 kB / 367.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.558e-05/0.3481, allocations: 48 kB / 367.2 MB, free: 10.68 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (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 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005652/0.3486, allocations: 293.6 kB / 367.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.3488, allocations: 122.5 kB / 367.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.3503, allocations: 0.7272 MB / 368.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.3503, allocations: 8 kB / 368.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.3503, allocations: 0 / 368.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001469/0.3518, allocations: 0.9686 MB / 369.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003018/0.3548, allocations: 1.813 MB / 371.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3548, allocations: 128 / 371.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004747/0.3553, allocations: 119.8 kB / 371.3 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004065/0.3557, allocations: 129.8 kB / 371.4 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.942e-05/0.3558, allocations: 15.98 kB / 371.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003141/0.3589, allocations: 3.279 MB / 374.7 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.3589, allocations: 8.016 kB / 374.7 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001751/0.3607, allocations: 1.077 MB / 375.8 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004605/0.3612, allocations: 259.5 kB / 376 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.3613, allocations: 12 kB / 376.1 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005898/0.3619, allocations: 55.95 kB / 376.1 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.362, allocations: 52.48 kB / 376.2 MB, free: 1.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.025e-05/0.3621, allocations: 20 kB / 376.2 MB, free: 1.188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001069/0.3632, allocations: 0.7367 MB / 376.9 MB, free: 456 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3632, allocations: 0 / 376.9 MB, free: 456 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.001156/0.3643, allocations: 307.9 kB / 377.2 MB, free: 148 kB / 302.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 (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.0002594/0.3646, allocations: 135.2 kB / 377.3 MB, free: 0 / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002285/0.3669, allocations: 1.116 MB / 378.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.3669, allocations: 0 / 378.5 MB, free: 14.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009586/0.3679, allocations: 0.5561 MB / 379 MB, free: 14.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/0.3694, allocations: 316.9 kB / 379.3 MB, free: 13.95 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004079/0.3734, allocations: 2.703 MB / 382 MB, free: 11.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007057/0.3742, allocations: 1.086 MB / 383.1 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006728/0.3748, allocations: 145.8 kB / 383.3 MB, free: 9.934 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000169/0.375, allocations: 75.44 kB / 383.3 MB, free: 9.859 MB / 318.1 MB Notification: Performance of SimCode: time 1.012e-06/0.375, allocations: 0 / 383.3 MB, free: 9.859 MB / 318.1 MB Notification: Performance of Templates: time 0.02921/0.4042, allocations: 16.26 MB / 399.6 MB, free: 9.57 MB / 334.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)