Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.0113/0.0113, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001707/0.001707, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.827/1.827, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001688/0.001688, allocations: 50.44 kB / 326.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1392, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01372/0.1529, allocations: 9.542 MB / 382.7 MB, free: 7.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00821/0.1612, allocations: 3.112 MB / 385.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002129/0.1635, allocations: 35.88 kB / 385.9 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002568/0.1661, allocations: 0.6056 MB / 386.5 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003107/0.1692, allocations: 0.5932 MB / 387.1 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001659/0.1709, allocations: 319.5 kB / 387.4 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004195/0.1751, allocations: 1.759 MB / 389.2 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001431/0.1765, allocations: 0.6374 MB / 389.8 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001778/0.1783, allocations: 0.6772 MB / 390.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001838/0.1802, allocations: 0.7389 MB / 391.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007433/0.181, allocations: 156 kB / 391.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/0.1823, allocations: 204 kB / 391.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005891/0.1829, allocations: 334.8 kB / 391.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001756/0.1847, allocations: 0.801 MB / 392.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003812/0.1885, allocations: 1.989 MB / 394.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/0.1885, allocations: 7.938 kB / 394.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1885, allocations: 0 / 394.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001341/0.1887, allocations: 0 / 394.7 MB, free: 11.7 MB / 334.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.006712/0.1954, allocations: 1.785 MB / 396.5 MB, free: 9.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.657e-05/0.1955, allocations: 8.031 kB / 396.5 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001095/0.1966, allocations: 199 kB / 396.7 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002542/0.1992, allocations: 0.8366 MB / 397.5 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001887/0.1994, allocations: 116.4 kB / 397.6 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003343/0.1997, allocations: 112.1 kB / 397.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002824/0.2025, allocations: 1.147 MB / 398.9 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-05/0.2026, allocations: 7.891 kB / 398.9 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001413/0.2028, allocations: 48 kB / 398.9 MB, free: 7.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.263e-05/0.2028, allocations: 24 kB / 399 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/0.2047, allocations: 0.7574 MB / 399.7 MB, free: 6.449 MB / 334.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.008043/0.2128, allocations: 3.926 MB / 403.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001916/0.2148, allocations: 0.5811 MB / 404.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005983/0.2154, allocations: 270.9 kB / 404.5 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.612e-05/0.2155, allocations: 8.562 kB / 404.5 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007384/0.2162, allocations: 299.4 kB / 404.8 MB, free: 1.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 5.36e-06/0.2162, allocations: 0 / 404.8 MB, free: 1.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.006996/0.2232, allocations: 2.077 MB / 406.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003868/0.2237, allocations: 471.2 kB / 407.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002539/0.2262, allocations: 1.105 MB / 408.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001118/0.2264, allocations: 41.7 kB / 408.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000806/0.2272, allocations: 0.6466 MB / 409.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003275/0.2275, allocations: 232.7 kB / 409.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004166/0.228, allocations: 198.8 kB / 409.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.2282, allocations: 341.9 kB / 409.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006599/0.2288, allocations: 242.5 kB / 410.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.2302, allocations: 0.713 MB / 410.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/0.2322, allocations: 0.9375 MB / 411.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.21e-05/0.2323, allocations: 7.938 kB / 411.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00313/0.2354, allocations: 1.145 MB / 412.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.2355, allocations: 71.33 kB / 413 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.458e-05/0.2356, allocations: 12 kB / 413 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007978/0.2364, allocations: 177.7 kB / 413.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007894/0.2372, allocations: 203.7 kB / 413.4 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005447/0.2426, allocations: 3.881 MB / 417.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.2442, allocations: 63.81 kB / 417.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/0.2444, allocations: 56.02 kB / 417.4 MB, free: 3.621 MB / 350.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.0009238/0.2453, allocations: 293.6 kB / 417.6 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003698/0.2457, allocations: 126.5 kB / 417.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.2476, allocations: 0.7038 MB / 418.5 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.2476, allocations: 4 kB / 418.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.2476, allocations: 4 kB / 418.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001554/0.2492, allocations: 0.9607 MB / 419.4 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004077/0.2533, allocations: 1.782 MB / 421.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.2533, allocations: 4 kB / 421.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005051/0.2538, allocations: 103.9 kB / 421.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004868/0.2543, allocations: 137.9 kB / 421.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-05/0.2544, allocations: 16 kB / 421.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003937/0.2583, allocations: 3.588 MB / 425.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.2583, allocations: 4 kB / 425.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002287/0.2606, allocations: 1.042 MB / 426.1 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008386/0.2615, allocations: 255.6 kB / 426.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004155/0.2619, allocations: 23.98 kB / 426.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008769/0.2628, allocations: 35.97 kB / 426.4 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.263, allocations: 60.36 kB / 426.5 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-05/0.263, allocations: 16 kB / 426.5 MB, free: 9.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001477/0.2645, allocations: 0.7445 MB / 427.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.2645, allocations: 4 kB / 427.2 MB, free: 9.156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00152/0.266, allocations: 311.9 kB / 427.6 MB, free: 8.852 MB / 366.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.0003223/0.2664, allocations: 131.2 kB / 427.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002676/0.2691, allocations: 1.102 MB / 428.8 MB, free: 7.562 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/0.2691, allocations: 1.938 kB / 428.8 MB, free: 7.562 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.2702, allocations: 0.5515 MB / 429.3 MB, free: 6.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/0.2722, allocations: 332.6 kB / 429.7 MB, free: 6.652 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004708/0.277, allocations: 2.227 MB / 431.9 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.2782, allocations: 1.082 MB / 433 MB, free: 3.262 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007705/0.279, allocations: 145.8 kB / 433.1 MB, free: 3.117 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.2792, allocations: 79.44 kB / 433.2 MB, free: 3.043 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2792, allocations: 0 / 433.2 MB, free: 3.043 MB / 366.1 MB Notification: Performance of Templates: time 0.04141/0.3206, allocations: 18.18 MB / 451.4 MB, free: 0.8281 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1)