Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009642/0.0009643, allocations: 156.7 kB / 7.632 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.328/1.328, allocations: 170.7 MB / 178.7 MB, free: 7.035 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001721/0.001721, allocations: 101.2 kB / 218 MB, free: 15.34 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.206e-05/1.209e-05, allocations: 0 / 262.2 MB, free: 3.066 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2411, allocations: 38.76 MB / 301 MB, free: 39.12 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08259/0.3238, allocations: 68.43 MB / 369.4 MB, free: 11.2 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.3241, allocations: 67.97 kB / 369.5 MB, free: 11.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02623/0.3503, allocations: 8.786 MB / 378.3 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3503, allocations: 0 / 378.3 MB, free: 2.43 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.41e-05/0.3504, allocations: 8 kB / 378.3 MB, free: 2.422 MB / 282.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.001527/0.3519, allocations: 0.7955 MB / 379.1 MB, free: 1.582 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.352, allocations: 8.031 kB / 379.1 MB, free: 1.574 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.3521, allocations: 59.34 kB / 379.1 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.3526, allocations: 335.6 kB / 379.5 MB, free: 1.148 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.373e-05/0.3526, allocations: 19.95 kB / 379.5 MB, free: 1.129 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.714e-05/0.3527, allocations: 31.91 kB / 379.5 MB, free: 1.098 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008913/0.3536, allocations: 0.5297 MB / 380 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008779/0.3545, allocations: 0.5312 MB / 380.6 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.878e-05/0.3545, allocations: 4 kB / 380.6 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.021e-05/0.3546, allocations: 0 / 380.6 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.3546, allocations: 12 kB / 380.6 MB, free: 8 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002436/0.357, allocations: 1.27 MB / 381.9 MB, free: 14.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007569/0.3578, allocations: 416 kB / 382.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003881/0.3582, allocations: 262.5 kB / 382.5 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.573e-05/0.3583, allocations: 12.55 kB / 382.5 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.3583, allocations: 40.34 kB / 382.6 MB, free: 13.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 2.054e-06/0.3583, allocations: 0 / 382.6 MB, free: 13.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.004055/0.3624, allocations: 1.959 MB / 384.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.3625, allocations: 59.91 kB / 384.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.3628, allocations: 266.4 kB / 384.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.404e-05/0.3628, allocations: 37.7 kB / 384.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.363, allocations: 197.2 kB / 385.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.3632, allocations: 213 kB / 385.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.193e-05/0.3632, allocations: 4 kB / 385.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3634, allocations: 354.8 kB / 385.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004186/0.3638, allocations: 277.5 kB / 385.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000471/0.3643, allocations: 329.5 kB / 386.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000499/0.3648, allocations: 224.6 kB / 386.4 MB, free: 9.945 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3648, allocations: 9.391 kB / 386.5 MB, free: 9.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001463/0.3663, allocations: 0.833 MB / 387.3 MB, free: 9.094 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3663, allocations: 7.984 kB / 387.3 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3663, allocations: 0 / 387.3 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/0.3675, allocations: 0.7523 MB / 388 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000392/0.3679, allocations: 103.8 kB / 388.2 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.3693, allocations: 1.167 MB / 389.3 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007377/0.3701, allocations: 139.9 kB / 389.5 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.3702, allocations: 31.98 kB / 389.5 MB, free: 6.871 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): 63 * 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 prepare postOptimizeDAE: time 0.0002255/0.3704, allocations: 129.4 kB / 389.6 MB, free: 6.738 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.3706, allocations: 51.44 kB / 389.7 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/0.3707, allocations: 61.06 kB / 389.7 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.3707, allocations: 8 kB / 389.7 MB, free: 6.613 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.3708, allocations: 2.438 kB / 389.7 MB, free: 6.613 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.3708, allocations: 7.938 kB / 389.7 MB, free: 6.605 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002445/0.3732, allocations: 1.45 MB / 391.2 MB, free: 5.105 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3732, allocations: 6.141 kB / 391.2 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004218/0.3737, allocations: 95.89 kB / 391.3 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.3748, allocations: 0.7229 MB / 392 MB, free: 4.281 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.613e-05/0.3749, allocations: 27.91 kB / 392 MB, free: 4.254 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001461/0.3764, allocations: 1.119 MB / 393.2 MB, free: 3.109 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3764, allocations: 1.312 kB / 393.2 MB, free: 3.109 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/0.3785, allocations: 1.229 MB / 394.4 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002654/0.3788, allocations: 196.3 kB / 394.6 MB, free: 1.656 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.3789, allocations: 16 kB / 394.6 MB, free: 1.641 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000668/0.3796, allocations: 131.9 kB / 394.7 MB, free: 1.512 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002849/0.3799, allocations: 152.2 kB / 394.9 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.8e-05/0.38, allocations: 31.97 kB / 394.9 MB, free: 1.332 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002251/0.3802, allocations: 204.6 kB / 395.1 MB, free: 1.129 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3802, allocations: 0 / 395.1 MB, free: 1.129 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005995/0.3808, allocations: 135.9 kB / 395.2 MB, free: 0.9961 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,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,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.0002883/0.3811, allocations: 139.2 kB / 395.4 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.3823, allocations: 0.665 MB / 396 MB, free: 192 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.3824, allocations: 4 kB / 396 MB, free: 188 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006257/0.383, allocations: 376.8 kB / 396.4 MB, free: 15.81 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005635/0.3836, allocations: 66.64 kB / 396.5 MB, free: 15.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.3858, allocations: 1.187 MB / 397.7 MB, free: 14.55 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004845/0.3863, allocations: 0.8526 MB / 398.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000204/0.3865, allocations: 47.44 kB / 398.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.3866, allocations: 35.42 kB / 398.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of SimCode: time 4.2e-07/0.3866, allocations: 0 / 398.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of Templates: time 0.01638/0.403, allocations: 10.61 MB / 409.2 MB, free: 3.023 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1)