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.001879/0.001879, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00251/0.002511, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.739/1.739, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001422/0.001422, allocations: 59.91 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3176, allocations: 46.64 MB / 325.3 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01304/0.3307, allocations: 9.532 MB / 334.9 MB, free: 10.26 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00828/0.339, allocations: 3.117 MB / 338 MB, free: 7.234 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003137/0.3423, allocations: 27.88 kB / 338 MB, free: 7.207 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002451/0.3448, allocations: 0.5783 MB / 338.6 MB, free: 6.625 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003454/0.3483, allocations: 0.5541 MB / 339.1 MB, free: 6.066 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.3496, allocations: 323.4 kB / 339.4 MB, free: 5.75 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003429/0.3531, allocations: 1.748 MB / 341.2 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001364/0.3545, allocations: 0.6492 MB / 341.8 MB, free: 3.324 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001651/0.3561, allocations: 0.6654 MB / 342.5 MB, free: 2.656 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001689/0.3578, allocations: 0.7428 MB / 343.2 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004987/0.3583, allocations: 160 kB / 343.4 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009365/0.3593, allocations: 200 kB / 343.6 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004775/0.3598, allocations: 334.8 kB / 343.9 MB, free: 1.23 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001666/0.3615, allocations: 0.8087 MB / 344.7 MB, free: 428 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002958/0.3644, allocations: 1.954 MB / 346.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.3645, allocations: 4 kB / 346.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3645, allocations: 0 / 346.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.675e-05/0.3645, allocations: 0 / 346.7 MB, free: 14.45 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.003533/0.3681, allocations: 1.8 MB / 348.5 MB, free: 12.58 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3681, allocations: 8.031 kB / 348.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006169/0.3687, allocations: 203 kB / 348.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.3701, allocations: 0.8172 MB / 349.5 MB, free: 11.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/0.3702, allocations: 112.4 kB / 349.6 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.3704, allocations: 120 kB / 349.7 MB, free: 11.28 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001903/0.3723, allocations: 1.139 MB / 350.9 MB, free: 10.05 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.337e-05/0.3724, allocations: 4 kB / 350.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.182e-05/0.3725, allocations: 44 kB / 350.9 MB, free: 10 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.772e-05/0.3725, allocations: 28 kB / 351 MB, free: 9.973 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.374, allocations: 0.7534 MB / 351.7 MB, free: 9.219 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.006147/0.3802, allocations: 3.957 MB / 355.7 MB, free: 5.059 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.3817, allocations: 0.5771 MB / 356.2 MB, free: 4.477 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005155/0.3822, allocations: 266.9 kB / 356.5 MB, free: 4.211 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.629e-05/0.3823, allocations: 13.06 kB / 356.5 MB, free: 4.199 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007172/0.383, allocations: 295 kB / 356.8 MB, free: 3.898 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 4.077e-06/0.383, allocations: 3.938 kB / 356.8 MB, free: 3.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.00546/0.3885, allocations: 2.084 MB / 358.9 MB, free: 1.715 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002697/0.3888, allocations: 479.2 kB / 359.4 MB, free: 1.137 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001746/0.3905, allocations: 1.101 MB / 360.5 MB, free: 24 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.997e-05/0.3906, allocations: 41.69 kB / 360.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006059/0.3913, allocations: 0.6467 MB / 361.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002059/0.3915, allocations: 224.8 kB / 361.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002803/0.3918, allocations: 194.8 kB / 361.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.3919, allocations: 345.9 kB / 361.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005311/0.3925, allocations: 250.5 kB / 362.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008956/0.3934, allocations: 0.713 MB / 362.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.3948, allocations: 0.9375 MB / 363.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.3948, allocations: 7.938 kB / 363.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002348/0.3972, allocations: 1.142 MB / 364.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.536e-05/0.3973, allocations: 67.41 kB / 365 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.3973, allocations: 12 kB / 365 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006703/0.398, allocations: 173.6 kB / 365.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006714/0.3987, allocations: 199.7 kB / 365.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004758/0.4034, allocations: 3.892 MB / 369.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/0.4049, allocations: 71.89 kB / 369.3 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001678/0.4051, allocations: 44 kB / 369.4 MB, free: 6.363 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.0008215/0.4059, allocations: 293.6 kB / 369.7 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003645/0.4063, allocations: 122.5 kB / 369.8 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.408, allocations: 0.7077 MB / 370.5 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.4081, allocations: 4 kB / 370.5 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.4081, allocations: 0 / 370.5 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001421/0.4095, allocations: 0.9568 MB / 371.5 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003528/0.4131, allocations: 1.798 MB / 373.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.4131, allocations: 8.156 kB / 373.3 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004995/0.4136, allocations: 111.8 kB / 373.4 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004633/0.4141, allocations: 125.6 kB / 373.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.678e-05/0.4141, allocations: 19.98 kB / 373.5 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004764/0.4189, allocations: 3.584 MB / 377.1 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/0.419, allocations: 7.969 kB / 377.1 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002414/0.4214, allocations: 1.049 MB / 378.2 MB, free: 13.03 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000751/0.4222, allocations: 255.5 kB / 378.4 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003827/0.4225, allocations: 16 kB / 378.4 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009687/0.4235, allocations: 35.97 kB / 378.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.4238, allocations: 60.42 kB / 378.5 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.88e-05/0.4238, allocations: 23.94 kB / 378.5 MB, free: 12.63 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001753/0.4256, allocations: 0.7484 MB / 379.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4256, allocations: 0 / 379.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002004/0.4276, allocations: 304 kB / 379.6 MB, free: 11.58 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.0004733/0.4281, allocations: 135.1 kB / 379.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002914/0.431, allocations: 1.127 MB / 380.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.4311, allocations: 0 / 380.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.4322, allocations: 0.5491 MB / 381.4 MB, free: 9.688 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002349/0.4346, allocations: 336.3 kB / 381.7 MB, free: 9.363 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005053/0.4397, allocations: 2.25 MB / 384 MB, free: 7.059 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.4407, allocations: 1.082 MB / 385.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008514/0.4416, allocations: 145.8 kB / 385.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002432/0.4419, allocations: 79.44 kB / 385.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of SimCode: time 1.923e-06/0.4419, allocations: 4 kB / 385.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of Templates: time 0.03992/0.4818, allocations: 17.92 MB / 403.2 MB, free: 3.762 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)