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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001443/0.001443, allocations: 183.2 kB / 8.354 MB, free: 0.7305 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.718/1.718, allocations: 194.4 MB / 203.1 MB, free: 13.02 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.001735/0.001735, allocations: 112 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.8e-05/1.802e-05, allocations: 7.984 kB / 298.1 MB, free: 35.51 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09081, allocations: 44.49 MB / 342.6 MB, free: 7.004 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.34/0.4308, allocations: 73.75 MB / 416.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.4311, allocations: 64.3 kB / 416.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02332/0.4544, allocations: 8.948 MB / 425.3 MB, free: 8.715 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4544, allocations: 3.844 kB / 425.3 MB, free: 8.715 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.7e-05/0.4545, allocations: 7.688 kB / 425.3 MB, free: 8.715 MB / 298.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.001871/0.4563, allocations: 0.7745 MB / 426.1 MB, free: 8.145 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.4564, allocations: 15.52 kB / 426.1 MB, free: 8.141 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002623/0.4567, allocations: 57.97 kB / 426.2 MB, free: 8.109 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005678/0.4573, allocations: 342.8 kB / 426.5 MB, free: 7.824 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/0.4573, allocations: 14.53 kB / 426.5 MB, free: 7.824 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.4574, allocations: 26.28 kB / 426.6 MB, free: 7.824 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008653/0.4583, allocations: 483.2 kB / 427 MB, free: 7.766 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007998/0.4591, allocations: 0.5106 MB / 427.5 MB, free: 7.586 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.4592, allocations: 3.906 kB / 427.5 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.104e-05/0.4592, allocations: 0 / 427.5 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.4592, allocations: 15.27 kB / 427.6 MB, free: 7.578 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.4616, allocations: 1.246 MB / 428.8 MB, free: 6.906 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006631/0.4622, allocations: 426.3 kB / 429.2 MB, free: 6.852 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002902/0.4626, allocations: 253.9 kB / 429.5 MB, free: 6.828 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.352e-05/0.4626, allocations: 12.3 kB / 429.5 MB, free: 6.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.4627, allocations: 38.59 kB / 429.5 MB, free: 6.781 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 2.434e-06/0.4627, allocations: 4 kB / 429.5 MB, free: 6.777 MB / 298.7 MB Notification: Performance of matching and sorting (n=67): time 0.003642/0.4663, allocations: 1.855 MB / 431.4 MB, free: 5.984 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.4664, allocations: 63.14 kB / 431.4 MB, free: 5.918 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002267/0.4666, allocations: 231.3 kB / 431.7 MB, free: 5.801 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.812e-05/0.4667, allocations: 36.66 kB / 431.7 MB, free: 5.766 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.622e-05/0.4668, allocations: 190.5 kB / 431.9 MB, free: 5.633 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.4669, allocations: 224.4 kB / 432.1 MB, free: 5.469 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.139e-05/0.467, allocations: 0 / 432.1 MB, free: 5.469 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.245e-05/0.4671, allocations: 362.1 kB / 432.5 MB, free: 5.137 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003371/0.4674, allocations: 250 kB / 432.7 MB, free: 5.125 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.4678, allocations: 301.3 kB / 433 MB, free: 5.082 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004518/0.4682, allocations: 199.9 kB / 433.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4682, allocations: 0 / 433.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00124/0.4695, allocations: 0.7487 MB / 433.9 MB, free: 4.906 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.4695, allocations: 7.531 kB / 434 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.4695, allocations: 4.031 kB / 434 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008382/0.4704, allocations: 0.5419 MB / 434.5 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003493/0.4707, allocations: 104.2 kB / 434.6 MB, free: 4.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001166/0.4719, allocations: 1.071 MB / 435.7 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007375/0.4727, allocations: 136.5 kB / 435.8 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.106e-05/0.4728, allocations: 27.02 kB / 435.8 MB, free: 4.102 MB / 298.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.00026/0.473, allocations: 131 kB / 436 MB, free: 3.977 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.4732, allocations: 46.62 kB / 436 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001521/0.4747, allocations: 0.8261 MB / 436.8 MB, free: 3.703 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.4747, allocations: 15.88 kB / 436.8 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4747, allocations: 0 / 436.8 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.4747, allocations: 7.969 kB / 436.9 MB, free: 3.688 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.4767, allocations: 1.329 MB / 438.2 MB, free: 3.129 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.4767, allocations: 0 / 438.2 MB, free: 3.129 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004163/0.4771, allocations: 90.67 kB / 438.3 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007441/0.4779, allocations: 0.5231 MB / 438.8 MB, free: 2.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.2e-05/0.4779, allocations: 22.27 kB / 438.8 MB, free: 2.969 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001067/0.479, allocations: 1.034 MB / 439.8 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.479, allocations: 0 / 439.8 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.4806, allocations: 1.077 MB / 440.9 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.4809, allocations: 187.9 kB / 441.1 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.481, allocations: 14.81 kB / 441.1 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006374/0.4816, allocations: 131.5 kB / 441.3 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002459/0.4819, allocations: 151.5 kB / 441.4 MB, free: 1.801 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.273e-05/0.482, allocations: 31.02 kB / 441.4 MB, free: 1.789 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001614/0.4821, allocations: 192.2 kB / 441.6 MB, free: 1.691 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4821, allocations: 0 / 441.6 MB, free: 1.691 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005739/0.4827, allocations: 138.3 kB / 441.8 MB, free: 1.684 MB / 298.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.0002707/0.483, allocations: 142.8 kB / 441.9 MB, free: 1.578 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.484, allocations: 0.711 MB / 442.6 MB, free: 1.426 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.484, allocations: 0 / 442.6 MB, free: 1.426 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005208/0.4846, allocations: 364.2 kB / 443 MB, free: 1.383 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005506/0.4851, allocations: 73.23 kB / 443 MB, free: 1.355 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001901/0.487, allocations: 1.176 MB / 444.2 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.4873, allocations: 0.8548 MB / 445.1 MB, free: 15.85 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001985/0.4876, allocations: 42.64 kB / 445.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.4877, allocations: 37.3 kB / 445.1 MB, free: 15.81 MB / 314.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4877, allocations: 0 / 445.1 MB, free: 15.81 MB / 314.7 MB Notification: Performance of Templates: time 0.01769/0.5054, allocations: 11.04 MB / 456.2 MB, free: 6.988 MB / 314.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)