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.0009529/0.0009528, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001132/0.001132, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.548/1.548, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004654/0.0004654, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2882, allocations: 47.59 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009226/0.2974, allocations: 8.451 MB / 334.9 MB, free: 10.77 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005868/0.3034, allocations: 2.876 MB / 337.8 MB, free: 8.148 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001021/0.3044, allocations: 27.94 kB / 337.8 MB, free: 8.121 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.3058, allocations: 485.2 kB / 338.3 MB, free: 7.645 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001291/0.3071, allocations: 484.4 kB / 338.8 MB, free: 7.168 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005845/0.3077, allocations: 215.7 kB / 339 MB, free: 6.957 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001609/0.3093, allocations: 1.58 MB / 340.6 MB, free: 5.371 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007361/0.31, allocations: 495.4 kB / 341.1 MB, free: 4.867 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007092/0.3108, allocations: 0.5524 MB / 341.6 MB, free: 4.312 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007058/0.3115, allocations: 0.63 MB / 342.2 MB, free: 3.68 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001314/0.3116, allocations: 84 kB / 342.3 MB, free: 3.598 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003013/0.3119, allocations: 124 kB / 342.4 MB, free: 3.477 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002098/0.3121, allocations: 242.9 kB / 342.7 MB, free: 3.238 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002781/0.3124, allocations: 313 kB / 343 MB, free: 2.926 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001259/0.3137, allocations: 1.511 MB / 344.5 MB, free: 1.41 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3137, allocations: 0 / 344.5 MB, free: 1.41 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3137, allocations: 0 / 344.5 MB, free: 1.41 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.3137, allocations: 0 / 344.5 MB, free: 1.41 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.002629/0.3164, allocations: 1.571 MB / 346.1 MB, free: 15.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.3164, allocations: 12.03 kB / 346.1 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005286/0.317, allocations: 202 kB / 346.3 MB, free: 15.56 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.3182, allocations: 0.7776 MB / 347 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.3183, allocations: 115.8 kB / 347.2 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/0.3185, allocations: 119.9 kB / 347.3 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/0.3204, allocations: 1.142 MB / 348.4 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.436e-05/0.3204, allocations: 3.938 kB / 348.4 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.208e-05/0.3205, allocations: 51.98 kB / 348.5 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.522e-05/0.3206, allocations: 27.95 kB / 348.5 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.322, allocations: 0.7691 MB / 349.3 MB, free: 12.41 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.00555/0.3276, allocations: 3.949 MB / 353.2 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.329, allocations: 0.6087 MB / 353.8 MB, free: 7.645 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004826/0.3295, allocations: 278.9 kB / 354.1 MB, free: 7.371 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.142e-05/0.3296, allocations: 8.562 kB / 354.1 MB, free: 7.363 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006167/0.3302, allocations: 299.1 kB / 354.4 MB, free: 7.059 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 3.006e-06/0.3302, allocations: 0 / 354.4 MB, free: 7.059 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.004353/0.3346, allocations: 2.124 MB / 356.5 MB, free: 4.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001906/0.3348, allocations: 479.2 kB / 357 MB, free: 4.262 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001319/0.3361, allocations: 1.093 MB / 358.1 MB, free: 3.156 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.978e-05/0.3362, allocations: 45.7 kB / 358.1 MB, free: 3.105 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004764/0.3367, allocations: 0.6389 MB / 358.8 MB, free: 2.457 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.3368, allocations: 236.7 kB / 359 MB, free: 2.223 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-05/0.3369, allocations: 20 kB / 359 MB, free: 2.203 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.337, allocations: 341.9 kB / 359.4 MB, free: 1.863 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005033/0.3375, allocations: 254.4 kB / 359.6 MB, free: 1.613 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008077/0.3383, allocations: 0.717 MB / 360.3 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006623/0.339, allocations: 414.3 kB / 360.7 MB, free: 276 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.339, allocations: 4 kB / 360.7 MB, free: 272 kB / 286.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001962/0.341, allocations: 1.134 MB / 361.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.902e-05/0.3411, allocations: 63.41 kB / 361.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/0.3411, allocations: 11.98 kB / 361.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000562/0.3417, allocations: 173.7 kB / 362.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006728/0.3423, allocations: 211.6 kB / 362.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00388/0.3462, allocations: 3.545 MB / 365.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009201/0.3472, allocations: 79.95 kB / 365.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.178e-05/0.3472, allocations: 51.98 kB / 366 MB, free: 10.7 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.000485/0.3477, allocations: 289.6 kB / 366.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.3479, allocations: 126.5 kB / 366.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00138/0.3493, allocations: 0.7195 MB / 367.1 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3493, allocations: 4 kB / 367.1 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.3493, allocations: 0 / 367.1 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00132/0.3506, allocations: 0.9801 MB / 368.1 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003353/0.354, allocations: 1.806 MB / 369.9 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.354, allocations: 4 kB / 369.9 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004947/0.3545, allocations: 112.1 kB / 370 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004426/0.355, allocations: 129.6 kB / 370.1 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.096e-05/0.355, allocations: 16 kB / 370.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003519/0.3585, allocations: 3.291 MB / 373.5 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.508e-05/0.3586, allocations: 0 / 373.5 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.3606, allocations: 1.069 MB / 374.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005979/0.3612, allocations: 259.5 kB / 374.8 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.3614, allocations: 19.98 kB / 374.8 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006942/0.3622, allocations: 43.97 kB / 374.8 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.3623, allocations: 60.42 kB / 374.9 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.383e-05/0.3624, allocations: 19.98 kB / 374.9 MB, free: 1.211 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00128/0.3636, allocations: 0.7367 MB / 375.7 MB, free: 480 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3636, allocations: 0 / 375.7 MB, free: 480 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.001381/0.365, allocations: 319.9 kB / 376 MB, free: 156 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.0002786/0.3653, allocations: 127.1 kB / 376.1 MB, free: 20 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002195/0.3675, allocations: 1.111 MB / 377.2 MB, free: 14.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/0.3676, allocations: 4 kB / 377.2 MB, free: 14.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009235/0.3685, allocations: 0.5496 MB / 377.8 MB, free: 14.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001594/0.3701, allocations: 335.4 kB / 378.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004352/0.3745, allocations: 2.699 MB / 380.8 MB, free: 11.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008072/0.3753, allocations: 1.082 MB / 381.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006602/0.376, allocations: 145.8 kB / 382 MB, free: 9.953 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.3762, allocations: 79.42 kB / 382.1 MB, free: 9.875 MB / 318.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3762, allocations: 0 / 382.1 MB, free: 9.875 MB / 318.1 MB Notification: Performance of Templates: time 0.03058/0.4068, allocations: 16.26 MB / 398.3 MB, free: 9.586 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)