Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001806/0.001806, allocations: 190.2 kB / 8.134 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.927/1.927, allocations: 194.2 MB / 202.8 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001999/0.001999, allocations: 120.9 kB / 247.7 MB, free: 6.352 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.266e-05/1.278e-05, allocations: 4 kB / 297.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1247, allocations: 44.48 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2978/0.4226, allocations: 73.67 MB / 415.7 MB, free: 21.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.4229, allocations: 71.92 kB / 415.8 MB, free: 21.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.0393/0.4622, allocations: 8.762 MB / 424.6 MB, free: 14.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.682e-05/0.4623, allocations: 12 kB / 424.6 MB, free: 14.05 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002314/0.4646, allocations: 0.7957 MB / 425.4 MB, free: 13.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.4647, allocations: 8.031 kB / 425.4 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002216/0.4649, allocations: 63.25 kB / 425.4 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006259/0.4655, allocations: 334.4 kB / 425.8 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.913e-05/0.4656, allocations: 20 kB / 425.8 MB, free: 12.81 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.4657, allocations: 31.89 kB / 425.8 MB, free: 12.78 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00142/0.4672, allocations: 480.7 kB / 426.3 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.4685, allocations: 0.4946 MB / 426.8 MB, free: 12.1 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.107e-05/0.4686, allocations: 7.984 kB / 426.8 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-05/0.4687, allocations: 3.906 kB / 426.8 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.607e-05/0.4687, allocations: 8 kB / 426.8 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003913/0.4726, allocations: 1.283 MB / 428.1 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.4738, allocations: 347.4 kB / 428.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006355/0.4744, allocations: 251.8 kB / 428.7 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.505e-05/0.4745, allocations: 12.41 kB / 428.7 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.4745, allocations: 42.12 kB / 428.7 MB, free: 10.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 3.407e-06/0.4746, allocations: 0 / 428.7 MB, free: 10.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.006932/0.4815, allocations: 1.836 MB / 430.5 MB, free: 8.988 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/0.4816, allocations: 64.05 kB / 430.6 MB, free: 8.914 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003524/0.4819, allocations: 237.1 kB / 430.8 MB, free: 8.719 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.4821, allocations: 37.31 kB / 430.9 MB, free: 8.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.864e-05/0.4821, allocations: 159.3 kB / 431 MB, free: 8.531 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000237/0.4824, allocations: 224.9 kB / 431.3 MB, free: 8.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-05/0.4825, allocations: 7.375 kB / 431.3 MB, free: 8.336 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4826, allocations: 348.7 kB / 431.6 MB, free: 8.004 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006737/0.4833, allocations: 245.8 kB / 431.8 MB, free: 7.867 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007644/0.4841, allocations: 302.5 kB / 432.1 MB, free: 7.676 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009147/0.485, allocations: 198.1 kB / 432.3 MB, free: 7.543 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.4851, allocations: 4 kB / 432.3 MB, free: 7.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002502/0.4876, allocations: 0.7573 MB / 433.1 MB, free: 6.992 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.4876, allocations: 4 kB / 433.1 MB, free: 6.988 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.508e-05/0.4876, allocations: 7.75 kB / 433.1 MB, free: 6.984 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001614/0.4893, allocations: 0.5272 MB / 433.6 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007141/0.49, allocations: 113.8 kB / 433.7 MB, free: 6.477 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/0.4923, allocations: 1.086 MB / 434.8 MB, free: 5.582 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001302/0.4936, allocations: 155.6 kB / 435 MB, free: 5.434 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/0.4938, allocations: 31.42 kB / 435 MB, free: 5.406 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003233/0.4941, allocations: 132.5 kB / 435.1 MB, free: 5.273 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/0.4943, allocations: 47.44 kB / 435.2 MB, free: 5.227 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002847/0.4972, allocations: 0.8325 MB / 436 MB, free: 4.621 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.4972, allocations: 4 kB / 436 MB, free: 4.617 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4972, allocations: 4 kB / 436 MB, free: 4.613 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.4973, allocations: 3.984 kB / 436 MB, free: 4.609 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00382/0.5011, allocations: 1.332 MB / 437.4 MB, free: 3.559 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.5011, allocations: 1.375 kB / 437.4 MB, free: 3.559 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008965/0.502, allocations: 103.4 kB / 437.5 MB, free: 3.461 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001534/0.5036, allocations: 0.5055 MB / 438 MB, free: 3.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.5037, allocations: 23.39 kB / 438 MB, free: 3.051 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002165/0.5059, allocations: 1.044 MB / 439 MB, free: 2.168 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.5059, allocations: 0 / 439 MB, free: 2.168 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00319/0.5091, allocations: 1.083 MB / 440.1 MB, free: 1.387 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004012/0.5095, allocations: 186.6 kB / 440.3 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002152/0.5098, allocations: 19.67 kB / 440.3 MB, free: 1.199 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.511, allocations: 143.9 kB / 440.5 MB, free: 1.059 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004301/0.5115, allocations: 157.2 kB / 440.6 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001332/0.5116, allocations: 35.72 kB / 440.6 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002409/0.5119, allocations: 193.5 kB / 440.8 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009281/0.5128, allocations: 135.9 kB / 441 MB, free: 0.6094 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003295/0.5132, allocations: 136.2 kB / 441.1 MB, free: 484 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001878/0.515, allocations: 0.7172 MB / 441.8 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5151, allocations: 0 / 441.8 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001107/0.5162, allocations: 359.6 kB / 442.2 MB, free: 15.71 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000906/0.5171, allocations: 62.94 kB / 442.2 MB, free: 15.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004324/0.5215, allocations: 1.144 MB / 443.4 MB, free: 14.61 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008608/0.5224, allocations: 0.896 MB / 444.3 MB, free: 13.69 MB / 330.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5224, allocations: 0 / 444.3 MB, free: 13.69 MB / 330.7 MB Notification: Performance of Templates: time 0.03216/0.5545, allocations: 11.63 MB / 455.9 MB, free: 2.121 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1)