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.002252/0.002252, allocations: 112.6 kB / 16.63 MB, free: 6.812 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.002023/0.002023, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.672/1.672, allocations: 205.1 MB / 223.4 MB, free: 12.43 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.002676/0.002676, allocations: 48.31 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1362, allocations: 46.64 MB / 326.1 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01275/0.149, allocations: 9.487 MB / 335.6 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008127/0.1572, allocations: 3.081 MB / 338.7 MB, free: 8.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002002/0.1593, allocations: 27.94 kB / 338.7 MB, free: 8.109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003037/0.1624, allocations: 0.5168 MB / 339.3 MB, free: 7.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002747/0.1652, allocations: 492.4 kB / 339.7 MB, free: 7.105 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001313/0.1665, allocations: 275.7 kB / 340 MB, free: 6.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004095/0.1706, allocations: 1.775 MB / 341.8 MB, free: 5.055 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001699/0.1724, allocations: 0.6374 MB / 342.4 MB, free: 4.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001718/0.1741, allocations: 0.6615 MB / 343.1 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001499/0.1756, allocations: 0.7506 MB / 343.8 MB, free: 2.977 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005918/0.1762, allocations: 160 kB / 344 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.1775, allocations: 192 kB / 344.2 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005348/0.1781, allocations: 334.8 kB / 344.5 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002023/0.1801, allocations: 0.8087 MB / 345.3 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004073/0.1842, allocations: 1.95 MB / 347.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.864e-06/0.1843, allocations: 0 / 347.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.626e-06/0.1843, allocations: 0 / 347.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001725/0.1845, allocations: 0 / 347.3 MB, free: 15.54 MB / 302.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.006614/0.1911, allocations: 1.804 MB / 349.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.1911, allocations: 8.031 kB / 349.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007197/0.1919, allocations: 203 kB / 349.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001645/0.1935, allocations: 0.8094 MB / 350.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/0.1937, allocations: 116.4 kB / 350.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000204/0.1939, allocations: 120 kB / 350.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/0.1963, allocations: 1.135 MB / 351.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.511e-05/0.1963, allocations: 12 kB / 351.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.874e-05/0.1965, allocations: 44 kB / 351.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.1965, allocations: 24 kB / 351.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.198, allocations: 0.7574 MB / 352.3 MB, free: 10.3 MB / 302.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.007313/0.2054, allocations: 3.957 MB / 356.2 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.2071, allocations: 0.5892 MB / 356.8 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005409/0.2076, allocations: 266.9 kB / 357.1 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.558e-05/0.2077, allocations: 12.56 kB / 357.1 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00085/0.2086, allocations: 295.1 kB / 357.4 MB, free: 4.965 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.396e-06/0.2086, allocations: 0 / 357.4 MB, free: 4.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.005354/0.2139, allocations: 2.069 MB / 359.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003249/0.2143, allocations: 487.1 kB / 359.9 MB, free: 2.215 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001765/0.2161, allocations: 1.105 MB / 361 MB, free: 1.098 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.2162, allocations: 37.7 kB / 361.1 MB, free: 1.055 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006562/0.2169, allocations: 0.6467 MB / 361.7 MB, free: 408 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002712/0.2172, allocations: 232.7 kB / 362 MB, free: 172 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003603/0.2175, allocations: 198.7 kB / 362.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.2178, allocations: 345.9 kB / 362.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005597/0.2183, allocations: 246.5 kB / 362.7 MB, free: 15.38 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009916/0.2193, allocations: 0.7092 MB / 363.4 MB, free: 14.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001576/0.2209, allocations: 0.9453 MB / 364.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.268e-06/0.221, allocations: 3.938 kB / 364.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002385/0.2233, allocations: 1.145 MB / 365.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.168e-05/0.2234, allocations: 67.41 kB / 365.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/0.2235, allocations: 12 kB / 365.6 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000646/0.2241, allocations: 167 kB / 365.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006928/0.2248, allocations: 203.7 kB / 366 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005269/0.2301, allocations: 3.894 MB / 369.9 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.2316, allocations: 87.8 kB / 369.9 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.956e-05/0.2317, allocations: 44 kB / 370 MB, free: 7.422 MB / 318.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.0006685/0.2324, allocations: 293.7 kB / 370.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/0.2326, allocations: 126.4 kB / 370.4 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001805/0.2344, allocations: 0.6999 MB / 371.1 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2344, allocations: 8 kB / 371.1 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2345, allocations: 0 / 371.1 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00149/0.236, allocations: 0.9568 MB / 372.1 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004033/0.24, allocations: 1.798 MB / 373.9 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/0.24, allocations: 4 kB / 373.9 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005894/0.2406, allocations: 103.9 kB / 374 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005903/0.2412, allocations: 125.7 kB / 374.1 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.486e-05/0.2413, allocations: 16 kB / 374.1 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2454/0.4868, allocations: 3.593 MB / 377.7 MB, free: 51.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.936e-06/0.4869, allocations: 2.812 kB / 377.7 MB, free: 51.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003261/0.4901, allocations: 1.049 MB / 378.8 MB, free: 51.19 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006979/0.4909, allocations: 254.4 kB / 379 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/0.491, allocations: 15.67 kB / 379 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007465/0.4918, allocations: 42.81 kB / 379.1 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002751/0.4921, allocations: 61.42 kB / 379.1 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.499e-05/0.4921, allocations: 18.86 kB / 379.1 MB, free: 51.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00198/0.4941, allocations: 0.7434 MB / 379.9 MB, free: 50.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.693e-06/0.4941, allocations: 0 / 379.9 MB, free: 50.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002469/0.4966, allocations: 314.3 kB / 380.2 MB, free: 50.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.0005362/0.4972, allocations: 135.1 kB / 380.3 MB, free: 50.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003336/0.5005, allocations: 1.114 MB / 381.4 MB, free: 50.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/0.5005, allocations: 1.562 kB / 381.4 MB, free: 50.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.5018, allocations: 0.5488 MB / 382 MB, free: 50.24 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.5036, allocations: 336.5 kB / 382.3 MB, free: 50.15 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006035/0.5096, allocations: 2.695 MB / 385 MB, free: 48.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00096/0.5106, allocations: 1.083 MB / 386.1 MB, free: 47.79 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001012/0.5116, allocations: 147.8 kB / 386.2 MB, free: 47.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002157/0.5119, allocations: 77.56 kB / 386.3 MB, free: 47.75 MB / 318.1 MB Notification: Performance of SimCode: time 2.234e-06/0.5119, allocations: 0 / 386.3 MB, free: 47.75 MB / 318.1 MB Notification: Performance of Templates: time 0.03478/0.5467, allocations: 17.85 MB / 404.2 MB, free: 37.43 MB / 318.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)