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.008586/0.008586, allocations: 165.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.253/1.253, allocations: 170.8 MB / 186.6 MB, free: 1.023 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.00189/0.00189, allocations: 115.3 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003699/0.00037, allocations: 8 kB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2174, allocations: 38.77 MB / 312.9 MB, free: 38.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09539/0.3129, allocations: 69.19 MB / 382.1 MB, free: 5.34 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/0.3133, allocations: 75.95 kB / 382.1 MB, free: 5.266 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02629/0.3396, allocations: 8.856 MB / 391 MB, free: 12.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3396, allocations: 0 / 391 MB, free: 12.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.446e-05/0.3397, allocations: 8 kB / 391 MB, free: 12.39 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.00162/0.3413, allocations: 0.8377 MB / 391.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3413, allocations: 8.031 kB / 391.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.3415, allocations: 63.25 kB / 391.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004852/0.342, allocations: 342.7 kB / 392.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.648e-05/0.342, allocations: 41 kB / 392.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.889e-05/0.3421, allocations: 43.95 kB / 392.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.3432, allocations: 0.6185 MB / 393 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/0.3433, allocations: 11.91 kB / 393 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.901e-05/0.3434, allocations: 20 kB / 393 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.3434, allocations: 8 kB / 393 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.3445, allocations: 0.6167 MB / 393.6 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002401/0.347, allocations: 1.344 MB / 395 MB, free: 8.289 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009353/0.3479, allocations: 473.9 kB / 395.4 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-05/0.348, allocations: 8.5 kB / 395.4 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.348, allocations: 39.12 kB / 395.5 MB, free: 7.762 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 2.916e-06/0.348, allocations: 0 / 395.5 MB, free: 7.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.006454/0.3545, allocations: 3.088 MB / 398.6 MB, free: 4.527 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.3545, allocations: 59.97 kB / 398.6 MB, free: 4.457 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/0.3549, allocations: 288.9 kB / 398.9 MB, free: 4.172 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.465e-05/0.355, allocations: 45.7 kB / 398.9 MB, free: 4.121 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.3551, allocations: 201.2 kB / 399.1 MB, free: 3.918 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.3553, allocations: 221 kB / 399.3 MB, free: 3.699 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.274e-05/0.3554, allocations: 16 kB / 399.4 MB, free: 3.684 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3555, allocations: 354.8 kB / 399.7 MB, free: 3.328 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006045/0.3561, allocations: 325.8 kB / 400 MB, free: 3.008 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006403/0.3568, allocations: 377 kB / 400.4 MB, free: 2.633 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004921/0.3573, allocations: 263.1 kB / 400.7 MB, free: 2.375 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3573, allocations: 3.953 kB / 400.7 MB, free: 2.371 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001685/0.359, allocations: 0.947 MB / 401.6 MB, free: 1.414 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.359, allocations: 4 kB / 401.6 MB, free: 1.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.3591, allocations: 4 kB / 401.6 MB, free: 1.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001277/0.3603, allocations: 0.7718 MB / 402.4 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000395/0.3607, allocations: 103.9 kB / 402.5 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.3621, allocations: 1.084 MB / 403.6 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007244/0.3629, allocations: 147.9 kB / 403.7 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.107e-05/0.3629, allocations: 31.98 kB / 403.7 MB, free: 15.24 MB / 314.7 MB 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 () * Number of clocked 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.0003658/0.3633, allocations: 176 kB / 403.9 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.3634, allocations: 51.44 kB / 404 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001592/0.3636, allocations: 72.73 kB / 404 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.3636, allocations: 11.83 kB / 404 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.3636, allocations: 3.938 kB / 404.1 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.3636, allocations: 7.938 kB / 404.1 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002913/0.3666, allocations: 1.625 MB / 405.7 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3666, allocations: 0 / 405.7 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004445/0.367, allocations: 95.88 kB / 405.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.3683, allocations: 0.7533 MB / 406.5 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.01e-05/0.3684, allocations: 23.97 kB / 406.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/0.3697, allocations: 1.048 MB / 407.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3697, allocations: 0 / 407.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002669/0.3724, allocations: 1.37 MB / 409 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003775/0.3728, allocations: 192.4 kB / 409.2 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.373, allocations: 20 kB / 409.2 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008002/0.3738, allocations: 143.9 kB / 409.3 MB, free: 9.527 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003608/0.3741, allocations: 152.2 kB / 409.5 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.289e-05/0.3742, allocations: 35.97 kB / 409.5 MB, free: 9.344 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003181/0.3746, allocations: 231.2 kB / 409.7 MB, free: 9.121 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3746, allocations: 0 / 409.7 MB, free: 9.121 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007731/0.3754, allocations: 155.9 kB / 409.9 MB, free: 8.969 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,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * 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.0003611/0.3757, allocations: 160.5 kB / 410 MB, free: 8.805 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.3775, allocations: 0.7605 MB / 410.8 MB, free: 8.047 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3775, allocations: 4.062 kB / 410.8 MB, free: 8.043 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008367/0.3783, allocations: 421.9 kB / 411.2 MB, free: 7.629 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006147/0.379, allocations: 79.47 kB / 411.3 MB, free: 7.555 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.3822, allocations: 1.659 MB / 413 MB, free: 5.867 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007056/0.3829, allocations: 0.8598 MB / 413.8 MB, free: 4.984 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003888/0.3833, allocations: 48.16 kB / 413.9 MB, free: 4.938 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.3835, allocations: 35.42 kB / 413.9 MB, free: 4.902 MB / 314.7 MB Notification: Performance of SimCode: time 4.338e-06/0.3836, allocations: 0 / 413.9 MB, free: 4.902 MB / 314.7 MB Notification: Performance of Templates: time 0.1538/0.5374, allocations: 11.06 MB / 425 MB, free: 89.28 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)