Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.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.001938/0.001938, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002599/0.002599, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.515/1.515, allocations: 205.1 MB / 222 MB, free: 4.793 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.00122/0.00122, allocations: 47.92 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.234, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004443/0.2385, allocations: 3.112 MB / 327.8 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002544/0.2411, allocations: 1.083 MB / 328.9 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000237/0.2414, allocations: 9.25 kB / 328.9 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003011/0.2417, allocations: 53.95 kB / 328.9 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000281/0.242, allocations: 142 kB / 329.1 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006091/0.2426, allocations: 241.3 kB / 329.3 MB, free: 14.24 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007981/0.2434, allocations: 0.7531 MB / 330.1 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002374/0.2437, allocations: 119.1 kB / 330.2 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004081/0.2441, allocations: 331.5 kB / 330.5 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004091/0.2445, allocations: 358.7 kB / 330.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.169e-05/0.2446, allocations: 34.69 kB / 330.9 MB, free: 13.33 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002089/0.2448, allocations: 80.38 kB / 331 MB, free: 13.3 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.245, allocations: 131.7 kB / 331.1 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.2453, allocations: 276.3 kB / 331.4 MB, free: 13.01 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007001/0.246, allocations: 0.6756 MB / 332 MB, free: 12.51 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.246, allocations: 1.312 kB / 332 MB, free: 12.51 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.246, allocations: 4 kB / 332 MB, free: 12.5 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.246, allocations: 0 / 332 MB, free: 12.5 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.001838/0.2478, allocations: 0.8824 MB / 332.9 MB, free: 11.79 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.2479, allocations: 8.875 kB / 332.9 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.2481, allocations: 57.91 kB / 333 MB, free: 11.76 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.2485, allocations: 365 kB / 333.3 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.2486, allocations: 33.38 kB / 333.4 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.316e-05/0.2487, allocations: 52.27 kB / 333.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.2498, allocations: 0.6191 MB / 334 MB, free: 10.67 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.2498, allocations: 3.906 kB / 334.1 MB, free: 10.66 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.871e-05/0.2499, allocations: 20 kB / 334.1 MB, free: 10.64 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.2499, allocations: 12 kB / 334.1 MB, free: 10.63 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.251, allocations: 0.6011 MB / 334.7 MB, free: 10.03 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002188/0.2532, allocations: 1.336 MB / 336 MB, free: 8.637 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009571/0.2542, allocations: 458.6 kB / 336.5 MB, free: 8.18 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005494/0.2548, allocations: 310.4 kB / 336.8 MB, free: 7.875 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.648e-05/0.2548, allocations: 12.56 kB / 336.8 MB, free: 7.863 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.2549, allocations: 35.12 kB / 336.8 MB, free: 7.82 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 2.374e-06/0.2549, allocations: 4 kB / 336.8 MB, free: 7.816 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.00597/0.2609, allocations: 2.871 MB / 339.7 MB, free: 4.805 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.2609, allocations: 63.97 kB / 339.8 MB, free: 4.73 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000385/0.2613, allocations: 333.6 kB / 340.1 MB, free: 4.391 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.427e-05/0.2614, allocations: 45.7 kB / 340.1 MB, free: 4.34 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.2615, allocations: 201.2 kB / 340.3 MB, free: 4.133 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000172/0.2617, allocations: 221 kB / 340.5 MB, free: 3.914 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002312/0.262, allocations: 142.5 kB / 340.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.2621, allocations: 350.7 kB / 341 MB, free: 3.418 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006186/0.2627, allocations: 325.8 kB / 341.3 MB, free: 3.102 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006453/0.2634, allocations: 385 kB / 341.7 MB, free: 2.723 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009519/0.2643, allocations: 0.4991 MB / 342.2 MB, free: 2.215 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2644, allocations: 4 kB / 342.2 MB, free: 2.211 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001803/0.2662, allocations: 0.9271 MB / 343.1 MB, free: 1.273 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.2663, allocations: 4 kB / 343.1 MB, free: 1.27 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.2663, allocations: 0 / 343.1 MB, free: 1.27 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001318/0.2676, allocations: 0.7312 MB / 343.9 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003918/0.268, allocations: 103.8 kB / 344 MB, free: 444 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001468/0.2695, allocations: 1.087 MB / 345.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006695/0.2702, allocations: 107.9 kB / 345.2 MB, free: 15.21 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.723e-05/0.2703, allocations: 24 kB / 345.2 MB, free: 15.19 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.0002781/0.2705, allocations: 192 kB / 345.4 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.2707, allocations: 47.44 kB / 345.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001553/0.2708, allocations: 68.75 kB / 345.5 MB, free: 14.87 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.2708, allocations: 4 kB / 345.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.2708, allocations: 4 kB / 345.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.2709, allocations: 3.984 kB / 345.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002619/0.2735, allocations: 1.571 MB / 347.1 MB, free: 13.22 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2735, allocations: 0 / 347.1 MB, free: 13.22 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004121/0.2739, allocations: 87.89 kB / 347.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001082/0.275, allocations: 0.6994 MB / 347.9 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.531e-05/0.2751, allocations: 31.94 kB / 347.9 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.2764, allocations: 1.06 MB / 349 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2764, allocations: 0 / 349 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002543/0.279, allocations: 1.312 MB / 350.3 MB, free: 9.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003885/0.2794, allocations: 192.4 kB / 350.5 MB, free: 9.773 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001685/0.2796, allocations: 20 kB / 350.5 MB, free: 9.754 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007859/0.2804, allocations: 107.8 kB / 350.6 MB, free: 9.648 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003169/0.2807, allocations: 124.3 kB / 350.7 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-05/0.2808, allocations: 27.97 kB / 350.7 MB, free: 9.5 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002971/0.2811, allocations: 239.2 kB / 351 MB, free: 9.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 7.61e-07/0.2811, allocations: 0 / 351 MB, free: 9.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006695/0.2818, allocations: 156 kB / 351.1 MB, free: 9.117 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.0002815/0.2821, allocations: 143.5 kB / 351.3 MB, free: 8.969 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.2838, allocations: 0.7722 MB / 352 MB, free: 8.199 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.2838, allocations: 0 / 352 MB, free: 8.199 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009323/0.2848, allocations: 429.8 kB / 352.4 MB, free: 7.781 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007689/0.2855, allocations: 85.39 kB / 352.5 MB, free: 7.691 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003091/0.2887, allocations: 1.592 MB / 354.1 MB, free: 6.078 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006352/0.2893, allocations: 0.8442 MB / 355 MB, free: 5.211 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003171/0.2896, allocations: 48.17 kB / 355 MB, free: 5.16 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.2898, allocations: 39.42 kB / 355.1 MB, free: 5.121 MB / 286.1 MB Notification: Performance of SimCode: time 1.723e-06/0.2898, allocations: 0 / 355.1 MB, free: 5.121 MB / 286.1 MB Notification: Performance of Templates: time 0.02561/0.3154, allocations: 12.71 MB / 367.8 MB, free: 8.398 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1)