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.001337/0.001337, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001655/0.001655, allocations: 196.7 kB / 16.14 MB, free: 6.715 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.545/1.545, allocations: 205.1 MB / 222 MB, free: 4.785 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.001219/0.001219, allocations: 51.92 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2487, allocations: 46.63 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004419/0.2532, allocations: 3.123 MB / 327.8 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00242/0.2556, allocations: 1.082 MB / 328.9 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002256/0.2559, allocations: 5.281 kB / 328.9 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003179/0.2563, allocations: 55.22 kB / 328.9 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002688/0.2565, allocations: 132.8 kB / 329.1 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000596/0.2571, allocations: 246.3 kB / 329.3 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007201/0.2579, allocations: 0.7601 MB / 330.1 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000237/0.2581, allocations: 119.1 kB / 330.2 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004076/0.2585, allocations: 323.1 kB / 330.5 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003917/0.2589, allocations: 363.6 kB / 330.9 MB, free: 13.31 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.144e-05/0.259, allocations: 35.03 kB / 330.9 MB, free: 13.31 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001983/0.2592, allocations: 80.27 kB / 331 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.2594, allocations: 139.5 kB / 331.1 MB, free: 13.18 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002708/0.2597, allocations: 275.6 kB / 331.4 MB, free: 12.99 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006691/0.2603, allocations: 0.6722 MB / 332 MB, free: 12.49 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.2604, allocations: 1 kB / 332 MB, free: 12.49 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2604, allocations: 0 / 332 MB, free: 12.49 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2604, allocations: 0 / 332 MB, free: 12.49 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.00174/0.2621, allocations: 0.8856 MB / 332.9 MB, free: 11.77 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.2622, allocations: 9.75 kB / 332.9 MB, free: 11.77 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001339/0.2623, allocations: 57.59 kB / 333 MB, free: 11.74 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000459/0.2628, allocations: 360.1 kB / 333.3 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.083e-05/0.2628, allocations: 45.25 kB / 333.4 MB, free: 11.31 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.2629, allocations: 44.28 kB / 333.4 MB, free: 11.27 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.264, allocations: 0.6152 MB / 334.1 MB, free: 10.64 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.57e-05/0.2641, allocations: 11.89 kB / 334.1 MB, free: 10.63 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.875e-05/0.2641, allocations: 20 kB / 334.1 MB, free: 10.61 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.2641, allocations: 8 kB / 334.1 MB, free: 10.6 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.2653, allocations: 0.6012 MB / 334.7 MB, free: 10 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/0.2676, allocations: 1.328 MB / 336 MB, free: 8.613 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009511/0.2685, allocations: 462.6 kB / 336.5 MB, free: 8.152 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005638/0.2691, allocations: 310.4 kB / 336.8 MB, free: 7.848 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.546e-05/0.2692, allocations: 4.562 kB / 336.8 MB, free: 7.844 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.2692, allocations: 43.06 kB / 336.8 MB, free: 7.793 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 2.254e-06/0.2692, allocations: 0 / 336.8 MB, free: 7.793 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.006114/0.2754, allocations: 2.871 MB / 339.7 MB, free: 4.781 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.2754, allocations: 55.97 kB / 339.7 MB, free: 4.715 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003684/0.2758, allocations: 329.6 kB / 340.1 MB, free: 4.379 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.481e-05/0.2759, allocations: 49.62 kB / 340.1 MB, free: 4.324 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.276, allocations: 197.2 kB / 340.3 MB, free: 4.129 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.2762, allocations: 232.9 kB / 340.5 MB, free: 3.898 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.2764, allocations: 126.6 kB / 340.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.2766, allocations: 370.7 kB / 341 MB, free: 3.398 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006024/0.2772, allocations: 313.8 kB / 341.3 MB, free: 3.094 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006312/0.2778, allocations: 385 kB / 341.7 MB, free: 2.715 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009414/0.2788, allocations: 0.5031 MB / 342.2 MB, free: 2.203 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2788, allocations: 0 / 342.2 MB, free: 2.203 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001796/0.2806, allocations: 0.9271 MB / 343.1 MB, free: 1.266 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.2807, allocations: 11.94 kB / 343.1 MB, free: 1.254 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.2807, allocations: 0 / 343.1 MB, free: 1.254 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001303/0.282, allocations: 0.7268 MB / 343.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.2824, allocations: 99.88 kB / 344 MB, free: 436 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.2839, allocations: 1.095 MB / 345.1 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006753/0.2846, allocations: 107.9 kB / 345.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.166e-05/0.2847, allocations: 23.98 kB / 345.2 MB, free: 15.18 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 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0003344/0.285, allocations: 180 kB / 345.4 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.2851, allocations: 47.44 kB / 345.4 MB, free: 14.94 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001552/0.2853, allocations: 72.73 kB / 345.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.2853, allocations: 12 kB / 345.5 MB, free: 14.85 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.2853, allocations: 3.938 kB / 345.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.2853, allocations: 0 / 345.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002667/0.288, allocations: 1.567 MB / 347.1 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.288, allocations: 3.938 kB / 347.1 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004134/0.2884, allocations: 91.88 kB / 347.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/0.2896, allocations: 0.7034 MB / 347.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.236e-05/0.2897, allocations: 31.97 kB / 347.9 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001326/0.291, allocations: 1.064 MB / 349 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.291, allocations: 4 kB / 349 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/0.2935, allocations: 1.304 MB / 350.3 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000263/0.2938, allocations: 188.4 kB / 350.5 MB, free: 9.758 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.2939, allocations: 24 kB / 350.5 MB, free: 9.734 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005725/0.2945, allocations: 111.7 kB / 350.6 MB, free: 9.625 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002801/0.2948, allocations: 116.3 kB / 350.7 MB, free: 9.512 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.767e-05/0.2948, allocations: 31.95 kB / 350.7 MB, free: 9.48 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000249/0.2951, allocations: 231.2 kB / 351 MB, free: 9.258 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2951, allocations: 0 / 351 MB, free: 9.258 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005733/0.2957, allocations: 160 kB / 351.1 MB, free: 9.102 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000273/0.296, allocations: 151.1 kB / 351.3 MB, free: 8.945 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.2976, allocations: 0.7684 MB / 352 MB, free: 8.18 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2976, allocations: 0 / 352 MB, free: 8.18 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008473/0.2985, allocations: 429.9 kB / 352.5 MB, free: 7.762 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006839/0.2992, allocations: 89.31 kB / 352.5 MB, free: 7.668 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00278/0.302, allocations: 1.58 MB / 354.1 MB, free: 6.066 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/0.3025, allocations: 0.8481 MB / 355 MB, free: 5.195 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002194/0.3027, allocations: 48.16 kB / 355 MB, free: 5.145 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.3028, allocations: 39.36 kB / 355.1 MB, free: 5.105 MB / 286.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3029, allocations: 0 / 355.1 MB, free: 5.105 MB / 286.1 MB Notification: Performance of Templates: time 0.0193/0.3222, allocations: 12.71 MB / 367.8 MB, free: 8.383 MB / 302.1 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)