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.001163/0.001163, allocations: 182.3 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.167/1.167, allocations: 194.5 MB / 211.6 MB, free: 3.047 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.001513/0.001513, allocations: 110.5 kB / 256.9 MB, free: 4.387 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002986/0.0002986, allocations: 12 kB / 310.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07224/0.07256, allocations: 44.5 MB / 355.1 MB, free: 2.359 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2163/0.2889, allocations: 74.5 MB / 429.6 MB, free: 15.04 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001825/0.2891, allocations: 68.86 kB / 429.6 MB, free: 15.01 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02149/0.3106, allocations: 9.025 MB / 438.6 MB, free: 7.352 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3107, allocations: 0 / 438.6 MB, free: 7.352 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.3107, allocations: 12 kB / 438.7 MB, free: 7.34 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.001283/0.312, allocations: 0.8248 MB / 439.5 MB, free: 6.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.312, allocations: 8.031 kB / 439.5 MB, free: 6.492 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.863e-05/0.3121, allocations: 64.28 kB / 439.6 MB, free: 6.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.3125, allocations: 333.3 kB / 439.9 MB, free: 6.098 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.3125, allocations: 30.44 kB / 439.9 MB, free: 6.078 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.812e-05/0.3126, allocations: 44.88 kB / 439.9 MB, free: 6.051 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008621/0.3134, allocations: 0.5901 MB / 440.5 MB, free: 5.621 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.3135, allocations: 7.906 kB / 440.5 MB, free: 5.613 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.372e-05/0.3135, allocations: 17.94 kB / 440.6 MB, free: 5.609 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.3135, allocations: 12 kB / 440.6 MB, free: 5.598 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009135/0.3145, allocations: 0.552 MB / 441.1 MB, free: 5.203 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.3164, allocations: 1.344 MB / 442.5 MB, free: 4.059 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000807/0.3172, allocations: 473.9 kB / 442.9 MB, free: 3.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.23e-05/0.3173, allocations: 19.23 kB / 443 MB, free: 3.715 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.591e-05/0.3173, allocations: 44.38 kB / 443 MB, free: 3.668 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 3.036e-06/0.3174, allocations: 0 / 443 MB, free: 3.668 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.005258/0.3226, allocations: 2.912 MB / 445.9 MB, free: 1.062 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.143e-05/0.3227, allocations: 63.95 kB / 446 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.3229, allocations: 259.7 kB / 446.2 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.533e-05/0.3229, allocations: 49.69 kB / 446.3 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.079e-05/0.323, allocations: 185.4 kB / 446.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.3231, allocations: 236.8 kB / 446.7 MB, free: 264 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.753e-05/0.3232, allocations: 12 kB / 446.7 MB, free: 252 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3233, allocations: 358.8 kB / 447 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005469/0.3238, allocations: 293.9 kB / 447.3 MB, free: 15.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005761/0.3244, allocations: 349.1 kB / 447.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004431/0.3249, allocations: 235.1 kB / 447.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3249, allocations: 0 / 447.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001518/0.3264, allocations: 0.8561 MB / 448.8 MB, free: 14.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.3264, allocations: 4 kB / 448.8 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.3265, allocations: 7.984 kB / 448.8 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/0.3275, allocations: 0.5766 MB / 449.4 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003838/0.3279, allocations: 99.88 kB / 449.4 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.3291, allocations: 0.9834 MB / 450.4 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006621/0.3297, allocations: 151.9 kB / 450.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.307e-05/0.3298, allocations: 27.98 kB / 450.6 MB, free: 12.29 MB / 330.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): 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.0002486/0.3301, allocations: 180 kB / 450.8 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.277e-05/0.3302, allocations: 47.44 kB / 450.8 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001779/0.332, allocations: 0.928 MB / 451.8 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.332, allocations: 4 kB / 451.8 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.332, allocations: 0 / 451.8 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.332, allocations: 7.984 kB / 451.8 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002397/0.3344, allocations: 1.489 MB / 453.3 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3344, allocations: 0 / 453.3 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003963/0.3348, allocations: 95.88 kB / 453.4 MB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009248/0.3358, allocations: 0.549 MB / 453.9 MB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.289e-05/0.3358, allocations: 31.91 kB / 453.9 MB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.3369, allocations: 0.9628 MB / 454.9 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3369, allocations: 0 / 454.9 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002136/0.3391, allocations: 1.209 MB / 456.1 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/0.3394, allocations: 188.4 kB / 456.3 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.68e-05/0.3395, allocations: 25.11 kB / 456.3 MB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006237/0.3401, allocations: 139.9 kB / 456.4 MB, free: 6.285 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.3404, allocations: 152.2 kB / 456.6 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.158e-05/0.3404, allocations: 31.97 kB / 456.6 MB, free: 6.105 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001954/0.3406, allocations: 219.2 kB / 456.8 MB, free: 5.895 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3406, allocations: 0 / 456.8 MB, free: 5.895 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004883/0.3411, allocations: 165 kB / 457 MB, free: 5.734 MB / 330.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) * 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.0002314/0.3414, allocations: 149.3 kB / 457.1 MB, free: 5.582 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.3428, allocations: 0.8134 MB / 458 MB, free: 4.754 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3428, allocations: 0 / 458 MB, free: 4.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007307/0.3435, allocations: 413.9 kB / 458.4 MB, free: 4.352 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000491/0.344, allocations: 87.58 kB / 458.5 MB, free: 4.266 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.3465, allocations: 1.67 MB / 460.1 MB, free: 2.586 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.3468, allocations: 0.85 MB / 461 MB, free: 1.715 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001767/0.347, allocations: 52.16 kB / 461 MB, free: 1.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.987e-05/0.3471, allocations: 35.42 kB / 461.1 MB, free: 1.629 MB / 330.7 MB Notification: Performance of SimCode: time 8.41e-07/0.3471, allocations: 0 / 461.1 MB, free: 1.629 MB / 330.7 MB Notification: Performance of Templates: time 0.01552/0.3626, allocations: 11.46 MB / 472.5 MB, free: 6.215 MB / 346.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)