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.01123/0.01123, allocations: 99.64 kB / 15.73 MB, free: 6.02 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.001521/0.001521, allocations: 190.8 kB / 16.67 MB, free: 5.961 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.751/1.751, allocations: 205.1 MB / 222.5 MB, free: 4.391 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.001361/0.001361, allocations: 50.11 kB / 326.6 MB, free: 14.56 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1453, allocations: 46.63 MB / 373.2 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01404/0.1594, allocations: 9.538 MB / 382.7 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008939/0.1684, allocations: 3.116 MB / 385.8 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002115/0.1707, allocations: 27.94 kB / 385.9 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002721/0.1734, allocations: 0.586 MB / 386.5 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003389/0.1768, allocations: 0.558 MB / 387 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.1781, allocations: 319.5 kB / 387.3 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003597/0.1817, allocations: 1.771 MB / 389.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.183, allocations: 0.6413 MB / 389.7 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001501/0.1845, allocations: 0.6693 MB / 390.4 MB, free: 72 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001637/0.1862, allocations: 0.7428 MB / 391.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005325/0.1868, allocations: 160 kB / 391.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008674/0.1876, allocations: 196 kB / 391.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004772/0.1881, allocations: 330.8 kB / 391.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001698/0.1898, allocations: 0.8049 MB / 392.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003911/0.1938, allocations: 1.993 MB / 394.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.245e-05/0.1938, allocations: 4 kB / 394.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1938, allocations: 0 / 394.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001147/0.1939, allocations: 4 kB / 394.6 MB, free: 11.84 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.004864/0.1988, allocations: 1.781 MB / 396.4 MB, free: 9.984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1989, allocations: 8.031 kB / 396.4 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007213/0.1996, allocations: 199 kB / 396.6 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001744/0.2013, allocations: 0.8366 MB / 397.4 MB, free: 8.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.2015, allocations: 116.4 kB / 397.6 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001866/0.2017, allocations: 112.1 kB / 397.7 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002002/0.2037, allocations: 1.142 MB / 398.8 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.83e-05/0.2038, allocations: 7.906 kB / 398.8 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.761e-05/0.2039, allocations: 44 kB / 398.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.2039, allocations: 28 kB / 398.9 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.2055, allocations: 0.7612 MB / 399.7 MB, free: 6.594 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.00651/0.212, allocations: 3.918 MB / 403.6 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.2135, allocations: 0.5851 MB / 404.2 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005158/0.214, allocations: 270.9 kB / 404.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.086e-05/0.2141, allocations: 16.53 kB / 404.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006736/0.2148, allocations: 291.4 kB / 404.7 MB, free: 1.305 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 4.328e-06/0.2148, allocations: 7.938 kB / 404.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.005181/0.22, allocations: 2.073 MB / 406.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004262/0.2205, allocations: 479.2 kB / 407.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001691/0.2222, allocations: 1.101 MB / 408.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.571e-05/0.2223, allocations: 45.64 kB / 408.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006203/0.2229, allocations: 0.6389 MB / 409.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.2231, allocations: 240.7 kB / 409.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003185/0.2234, allocations: 194.8 kB / 409.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002075/0.2237, allocations: 341.9 kB / 409.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.2242, allocations: 246.5 kB / 410.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.2253, allocations: 0.7169 MB / 410.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.2268, allocations: 0.9336 MB / 411.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.2268, allocations: 7.938 kB / 411.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002494/0.2293, allocations: 1.142 MB / 412.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.651e-05/0.2294, allocations: 63.41 kB / 412.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.2294, allocations: 15.94 kB / 412.9 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007264/0.2302, allocations: 177.8 kB / 413.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007756/0.231, allocations: 199.7 kB / 413.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005007/0.236, allocations: 3.889 MB / 417.2 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/0.2372, allocations: 67.91 kB / 417.3 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.538e-05/0.2373, allocations: 48 kB / 417.3 MB, free: 3.766 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.0005864/0.2379, allocations: 297.6 kB / 417.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002/0.2381, allocations: 122.5 kB / 417.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/0.2396, allocations: 0.7038 MB / 418.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.2396, allocations: 8 kB / 418.4 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.2397, allocations: 0 / 418.4 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001506/0.2412, allocations: 0.9568 MB / 419.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003158/0.2443, allocations: 1.789 MB / 421.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.2444, allocations: 0 / 421.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004658/0.2448, allocations: 103.9 kB / 421.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004319/0.2453, allocations: 137.8 kB / 421.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/0.2453, allocations: 12 kB / 421.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003496/0.2488, allocations: 3.592 MB / 425 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2488, allocations: 4.031 kB / 425 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.2507, allocations: 1.046 MB / 426.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005023/0.2512, allocations: 259.6 kB / 426.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.2514, allocations: 12 kB / 426.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006294/0.252, allocations: 39.95 kB / 426.4 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.2522, allocations: 60.38 kB / 426.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.193e-05/0.2522, allocations: 23.98 kB / 426.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001095/0.2533, allocations: 0.7406 MB / 427.2 MB, free: 9.301 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2533, allocations: 4 kB / 427.2 MB, free: 9.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001239/0.2546, allocations: 316.1 kB / 427.5 MB, free: 8.988 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.0003089/0.2549, allocations: 135.1 kB / 427.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002151/0.2571, allocations: 1.096 MB / 428.7 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.2571, allocations: 4 kB / 428.7 MB, free: 7.699 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009723/0.2581, allocations: 0.5517 MB / 429.3 MB, free: 7.117 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/0.2595, allocations: 324.5 kB / 429.6 MB, free: 6.797 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003763/0.2632, allocations: 2.219 MB / 431.8 MB, free: 4.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006912/0.2639, allocations: 1.078 MB / 432.9 MB, free: 3.418 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005816/0.2645, allocations: 149.8 kB / 433 MB, free: 3.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.2647, allocations: 79.44 kB / 433.1 MB, free: 3.195 MB / 366.1 MB Notification: Performance of SimCode: time 1.493e-06/0.2647, allocations: 0 / 433.1 MB, free: 3.195 MB / 366.1 MB Notification: Performance of Templates: time 0.039/0.3037, allocations: 18.66 MB / 451.8 MB, free: 0.4922 MB / 382.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)