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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 86.16 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 180.5 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.436/1.436, allocations: 205.4 MB / 223.4 MB, free: 5.469 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004874/0.0004876, allocations: 12 kB / 280.1 MB, free: 12.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.238, allocations: 47.58 MB / 327.7 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002746/0.2408, allocations: 2.629 MB / 330.4 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.2426, allocations: 1.037 MB / 331.4 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001744/0.2428, allocations: 9.844 kB / 331.4 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001892/0.243, allocations: 50 kB / 331.5 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002295/0.2432, allocations: 140.6 kB / 331.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005573/0.2438, allocations: 202.3 kB / 331.8 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007032/0.2445, allocations: 0.7047 MB / 332.5 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002359/0.2447, allocations: 105.8 kB / 332.6 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004448/0.2452, allocations: 309.6 kB / 332.9 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004282/0.2456, allocations: 345 kB / 333.2 MB, free: 13.33 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.26e-05/0.2457, allocations: 29.62 kB / 333.3 MB, free: 13.33 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.2459, allocations: 72.59 kB / 333.3 MB, free: 13.31 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.246, allocations: 122.9 kB / 333.5 MB, free: 13.21 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.2461, allocations: 110.1 kB / 333.6 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005191/0.2467, allocations: 0.4955 MB / 334.1 MB, free: 12.78 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2467, allocations: 4 kB / 334.1 MB, free: 12.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2467, allocations: 1 kB / 334.1 MB, free: 12.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.659e-06/0.2467, allocations: 0 / 334.1 MB, free: 12.77 MB / 270.1 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.001508/0.2482, allocations: 0.8233 MB / 334.9 MB, free: 12.12 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.2483, allocations: 9.438 kB / 334.9 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.2484, allocations: 60.75 kB / 335 MB, free: 12.09 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003951/0.2488, allocations: 352.7 kB / 335.3 MB, free: 11.77 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.2488, allocations: 34.56 kB / 335.3 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.347e-05/0.2489, allocations: 47.5 kB / 335.4 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.25, allocations: 0.6215 MB / 336 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.25, allocations: 4 kB / 336 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.864e-05/0.2501, allocations: 16 kB / 336 MB, free: 11.09 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.2501, allocations: 12 kB / 336 MB, free: 11.08 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.2513, allocations: 0.6167 MB / 336.7 MB, free: 10.46 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/0.2535, allocations: 1.363 MB / 338 MB, free: 9.039 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009378/0.2545, allocations: 473.9 kB / 338.5 MB, free: 8.57 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005693/0.2551, allocations: 318.4 kB / 338.8 MB, free: 8.258 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.374e-05/0.2551, allocations: 12.56 kB / 338.8 MB, free: 8.246 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.2552, allocations: 39.12 kB / 338.8 MB, free: 8.199 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 1.773e-06/0.2552, allocations: 0 / 338.8 MB, free: 8.199 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.006013/0.2612, allocations: 3.016 MB / 341.9 MB, free: 5.039 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.2613, allocations: 63.97 kB / 341.9 MB, free: 4.965 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003648/0.2616, allocations: 329.6 kB / 342.2 MB, free: 4.629 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.47e-05/0.2617, allocations: 45.7 kB / 342.3 MB, free: 4.578 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000153/0.2619, allocations: 193.3 kB / 342.5 MB, free: 4.387 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000197/0.2621, allocations: 221 kB / 342.7 MB, free: 4.168 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.423e-05/0.2621, allocations: 16 kB / 342.7 MB, free: 4.152 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.2623, allocations: 358.7 kB / 343.1 MB, free: 3.793 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006007/0.2629, allocations: 333.8 kB / 343.4 MB, free: 3.469 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000644/0.2636, allocations: 389 kB / 343.8 MB, free: 3.086 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004866/0.2641, allocations: 259.2 kB / 344 MB, free: 2.832 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2641, allocations: 0 / 344 MB, free: 2.832 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001715/0.2658, allocations: 0.9393 MB / 345 MB, free: 1.883 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.2658, allocations: 8 kB / 345 MB, free: 1.875 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.2658, allocations: 0 / 345 MB, free: 1.875 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.2671, allocations: 0.7364 MB / 345.7 MB, free: 1.137 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004028/0.2675, allocations: 99.89 kB / 345.8 MB, free: 1.039 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001345/0.2689, allocations: 1.103 MB / 346.9 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006457/0.2695, allocations: 143.9 kB / 347 MB, free: 15.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.84e-05/0.2696, allocations: 27.98 kB / 347.1 MB, free: 15.74 MB / 286.1 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.0002634/0.2699, allocations: 188 kB / 347.2 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.062e-05/0.27, allocations: 51.38 kB / 347.3 MB, free: 15.5 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.2701, allocations: 76.7 kB / 347.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2701, allocations: 8 kB / 347.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2702, allocations: 0 / 347.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.2702, allocations: 3.984 kB / 347.4 MB, free: 15.4 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.2728, allocations: 1.587 MB / 349 MB, free: 13.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2728, allocations: 4 kB / 349 MB, free: 13.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004037/0.2732, allocations: 95.88 kB / 349.1 MB, free: 13.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00109/0.2743, allocations: 0.6994 MB / 349.8 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.58e-05/0.2744, allocations: 23.95 kB / 349.8 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.2757, allocations: 1.056 MB / 350.8 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2757, allocations: 3.953 kB / 350.9 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002333/0.278, allocations: 1.327 MB / 352.2 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002576/0.2783, allocations: 192.4 kB / 352.4 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.2784, allocations: 20 kB / 352.4 MB, free: 10.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005959/0.279, allocations: 143.9 kB / 352.5 MB, free: 10.13 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002701/0.2793, allocations: 156.2 kB / 352.7 MB, free: 9.977 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.919e-05/0.2794, allocations: 31.91 kB / 352.7 MB, free: 9.945 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002087/0.2796, allocations: 231.2 kB / 352.9 MB, free: 9.719 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2796, allocations: 0 / 352.9 MB, free: 9.719 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005108/0.2801, allocations: 160 kB / 353.1 MB, free: 9.562 MB / 286.1 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.0002285/0.2803, allocations: 151.4 kB / 353.2 MB, free: 9.406 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.2819, allocations: 0.7917 MB / 354 MB, free: 8.613 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2819, allocations: 0 / 354 MB, free: 8.613 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007821/0.2827, allocations: 433.8 kB / 354.5 MB, free: 8.191 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006249/0.2833, allocations: 85.33 kB / 354.5 MB, free: 8.105 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002517/0.2858, allocations: 1.66 MB / 356.2 MB, free: 6.426 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004165/0.2862, allocations: 0.8481 MB / 357 MB, free: 5.551 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001926/0.2864, allocations: 44.17 kB / 357.1 MB, free: 5.504 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.2866, allocations: 35.42 kB / 357.1 MB, free: 5.469 MB / 286.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2866, allocations: 0 / 357.1 MB, free: 5.469 MB / 286.1 MB Notification: Performance of Templates: time 0.01969/0.3063, allocations: 12.25 MB / 369.4 MB, free: 9.199 MB / 302.1 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)