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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001273/0.001273, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.0004662/0.0004662, allocations: 16 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2327, allocations: 47.58 MB / 326.4 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002978/0.2357, allocations: 2.496 MB / 328.9 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.2379, allocations: 1.067 MB / 330 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003564/0.2383, allocations: 9.375 kB / 330 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002595/0.2385, allocations: 50.52 kB / 330.1 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006532/0.2392, allocations: 170.8 kB / 330.2 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008438/0.2401, allocations: 210.7 kB / 330.4 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001036/0.2411, allocations: 492.5 kB / 330.9 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002633/0.2414, allocations: 98.09 kB / 331 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006338/0.242, allocations: 312.4 kB / 331.3 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006024/0.2427, allocations: 344.3 kB / 331.7 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.2428, allocations: 30.94 kB / 331.7 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.243, allocations: 70.69 kB / 331.8 MB, free: 13.47 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.2432, allocations: 123.1 kB / 331.9 MB, free: 13.37 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.2433, allocations: 110.1 kB / 332 MB, free: 13.3 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004802/0.2438, allocations: 0.4893 MB / 332.5 MB, free: 12.94 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.2438, allocations: 0 / 332.5 MB, free: 12.94 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2438, allocations: 0 / 332.5 MB, free: 12.94 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.2438, allocations: 0 / 332.5 MB, free: 12.94 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.001624/0.2455, allocations: 0.832 MB / 333.3 MB, free: 12.29 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.2455, allocations: 8.688 kB / 333.3 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.2456, allocations: 55.72 kB / 333.4 MB, free: 12.26 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004406/0.2461, allocations: 352.5 kB / 333.7 MB, free: 11.93 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.028e-05/0.2461, allocations: 35.72 kB / 333.7 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.616e-05/0.2462, allocations: 51.91 kB / 333.8 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.2473, allocations: 0.6149 MB / 334.4 MB, free: 11.43 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.2473, allocations: 4 kB / 334.4 MB, free: 11.43 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.655e-05/0.2474, allocations: 19.94 kB / 334.4 MB, free: 11.41 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.2474, allocations: 12 kB / 334.4 MB, free: 11.4 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.2485, allocations: 0.6129 MB / 335.1 MB, free: 10.79 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002154/0.2507, allocations: 1.356 MB / 336.4 MB, free: 9.371 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009029/0.2516, allocations: 478 kB / 336.9 MB, free: 8.898 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.565e-05/0.2516, allocations: 12.5 kB / 336.9 MB, free: 8.887 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.2517, allocations: 43.06 kB / 336.9 MB, free: 8.836 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 2.064e-06/0.2517, allocations: 0 / 336.9 MB, free: 8.836 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.006091/0.2578, allocations: 3.018 MB / 339.9 MB, free: 5.676 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.2579, allocations: 59.95 kB / 340 MB, free: 5.602 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/0.2582, allocations: 329.6 kB / 340.3 MB, free: 5.266 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.757e-05/0.2583, allocations: 49.69 kB / 340.4 MB, free: 5.211 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.2584, allocations: 185.3 kB / 340.6 MB, free: 5.027 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/0.2586, allocations: 229 kB / 340.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.602e-05/0.2587, allocations: 16 kB / 340.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.2589, allocations: 350.8 kB / 341.1 MB, free: 4.434 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006178/0.2595, allocations: 333.8 kB / 341.5 MB, free: 4.109 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000644/0.2601, allocations: 389 kB / 341.8 MB, free: 3.727 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004997/0.2606, allocations: 255.2 kB / 342.1 MB, free: 3.477 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.2607, allocations: 0 / 342.1 MB, free: 3.477 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001792/0.2625, allocations: 0.9433 MB / 343 MB, free: 2.523 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.2625, allocations: 4 kB / 343 MB, free: 2.52 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.2625, allocations: 0 / 343 MB, free: 2.52 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001225/0.2638, allocations: 0.7364 MB / 343.8 MB, free: 1.781 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004057/0.2642, allocations: 103.9 kB / 343.9 MB, free: 1.68 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001496/0.2657, allocations: 1.107 MB / 345 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007567/0.2665, allocations: 143.9 kB / 345.1 MB, free: 416 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.4e-05/0.2665, allocations: 27.98 kB / 345.2 MB, free: 388 kB / 270.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.0002876/0.2668, allocations: 184 kB / 345.3 MB, free: 196 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.2669, allocations: 51.52 kB / 345.4 MB, free: 144 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.2671, allocations: 72.7 kB / 345.5 MB, free: 64 kB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.2671, allocations: 8 kB / 345.5 MB, free: 56 kB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.2671, allocations: 0 / 345.5 MB, free: 56 kB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.2671, allocations: 7.922 kB / 345.5 MB, free: 48 kB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002839/0.27, allocations: 1.583 MB / 347.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.27, allocations: 0 / 347.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004299/0.2704, allocations: 95.88 kB / 347.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.2716, allocations: 0.6994 MB / 347.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.299e-05/0.2717, allocations: 27.97 kB / 347.9 MB, free: 13.58 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001334/0.273, allocations: 1.06 MB / 348.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.273, allocations: 3.953 kB / 348.9 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002332/0.2754, allocations: 1.323 MB / 350.3 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002749/0.2757, allocations: 192.4 kB / 350.5 MB, free: 10.94 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/0.2758, allocations: 24.09 kB / 350.5 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006819/0.2765, allocations: 139.9 kB / 350.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002872/0.2768, allocations: 156.2 kB / 350.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.86e-05/0.2769, allocations: 27.95 kB / 350.8 MB, free: 10.6 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.2771, allocations: 231.2 kB / 351 MB, free: 10.37 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2771, allocations: 0 / 351 MB, free: 10.37 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006272/0.2777, allocations: 164 kB / 351.2 MB, free: 10.21 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.0002599/0.278, allocations: 155.4 kB / 351.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.2795, allocations: 0.784 MB / 352.1 MB, free: 9.27 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.2796, allocations: 0 / 352.1 MB, free: 9.27 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007896/0.2803, allocations: 441.8 kB / 352.5 MB, free: 8.836 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005414/0.2809, allocations: 73.33 kB / 352.6 MB, free: 8.762 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00265/0.2836, allocations: 1.657 MB / 354.3 MB, free: 7.082 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.284, allocations: 0.8598 MB / 355.1 MB, free: 6.195 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001904/0.2842, allocations: 44.17 kB / 355.2 MB, free: 6.148 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.2843, allocations: 39.42 kB / 355.2 MB, free: 6.109 MB / 286.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2843, allocations: 0 / 355.2 MB, free: 6.109 MB / 286.1 MB Notification: Performance of Templates: time 0.01722/0.3015, allocations: 12.24 MB / 367.5 MB, free: 9.855 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: