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.001306/0.001306, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 197.4 kB / 16.54 MB, free: 6.672 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.465/1.465, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.001528/0.001528, allocations: 59.91 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2979, allocations: 46.63 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004914/0.3029, allocations: 3.093 MB / 328.4 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002772/0.3057, allocations: 1.077 MB / 329.5 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003373/0.306, allocations: 9.719 kB / 329.5 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003423/0.3065, allocations: 74.8 kB / 329.6 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003874/0.3069, allocations: 157.6 kB / 329.7 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.3079, allocations: 274.8 kB / 330 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001157/0.3091, allocations: 0.802 MB / 330.8 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003248/0.3094, allocations: 130.4 kB / 330.9 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006451/0.31, allocations: 352.4 kB / 331.3 MB, free: 13.37 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005489/0.3106, allocations: 383.7 kB / 331.6 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001427/0.3108, allocations: 59.97 kB / 331.7 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002856/0.311, allocations: 109.8 kB / 331.8 MB, free: 13.09 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002108/0.3113, allocations: 155.4 kB / 331.9 MB, free: 12.96 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000391/0.3117, allocations: 299.9 kB / 332.2 MB, free: 12.75 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009064/0.3126, allocations: 0.7096 MB / 332.9 MB, free: 12.23 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3126, allocations: 1.469 kB / 332.9 MB, free: 12.23 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.3126, allocations: 0 / 332.9 MB, free: 12.23 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.3126, allocations: 0 / 332.9 MB, free: 12.23 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.001869/0.3145, allocations: 0.8864 MB / 333.8 MB, free: 11.32 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.3146, allocations: 12.03 kB / 333.8 MB, free: 11.31 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.3147, allocations: 56.28 kB / 333.9 MB, free: 11.26 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004779/0.3152, allocations: 367.6 kB / 334.3 MB, free: 10.86 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/0.3152, allocations: 37.38 kB / 334.3 MB, free: 10.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.3153, allocations: 48.36 kB / 334.3 MB, free: 10.77 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.3165, allocations: 0.623 MB / 335 MB, free: 10.14 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.714e-05/0.3166, allocations: 3.906 kB / 335 MB, free: 10.13 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.402e-05/0.3166, allocations: 16 kB / 335 MB, free: 10.12 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.3167, allocations: 12 kB / 335 MB, free: 10.11 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.3179, allocations: 0.6012 MB / 335.6 MB, free: 9.504 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002572/0.3204, allocations: 1.324 MB / 336.9 MB, free: 8.121 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.3215, allocations: 465 kB / 337.4 MB, free: 7.656 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005643/0.3221, allocations: 314.4 kB / 337.7 MB, free: 7.344 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.599e-05/0.3221, allocations: 12.55 kB / 337.7 MB, free: 7.332 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.3222, allocations: 39.06 kB / 337.7 MB, free: 7.285 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 2.705e-06/0.3222, allocations: 3.938 kB / 337.7 MB, free: 7.281 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.006455/0.3287, allocations: 2.863 MB / 340.6 MB, free: 4.277 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.3287, allocations: 59.97 kB / 340.7 MB, free: 4.207 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003517/0.3291, allocations: 333.6 kB / 341 MB, free: 3.871 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.286e-05/0.3292, allocations: 45.7 kB / 341 MB, free: 3.82 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.3293, allocations: 197.2 kB / 341.2 MB, free: 3.625 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.3295, allocations: 221 kB / 341.4 MB, free: 3.406 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002191/0.3297, allocations: 134.6 kB / 341.6 MB, free: 3.27 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3299, allocations: 358.7 kB / 341.9 MB, free: 2.91 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005903/0.3305, allocations: 321.8 kB / 342.2 MB, free: 2.594 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006262/0.3311, allocations: 385 kB / 342.6 MB, free: 2.211 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009486/0.332, allocations: 0.4992 MB / 343.1 MB, free: 1.699 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3321, allocations: 0 / 343.1 MB, free: 1.699 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001708/0.3338, allocations: 0.931 MB / 344 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.3338, allocations: 4 kB / 344 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.3338, allocations: 0 / 344 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/0.3352, allocations: 0.7346 MB / 344.8 MB, free: 16 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004309/0.3356, allocations: 103.9 kB / 344.9 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.337, allocations: 1.095 MB / 346 MB, free: 14.79 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007135/0.3377, allocations: 107.9 kB / 346.1 MB, free: 14.69 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.838e-05/0.3378, allocations: 23.98 kB / 346.1 MB, free: 14.66 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.0002866/0.3381, allocations: 188 kB / 346.3 MB, free: 14.47 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.3382, allocations: 47.44 kB / 346.3 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001396/0.3383, allocations: 72.75 kB / 346.4 MB, free: 14.35 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.3383, allocations: 4 kB / 346.4 MB, free: 14.34 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.3384, allocations: 8 kB / 346.4 MB, free: 14.34 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.3384, allocations: 3.984 kB / 346.4 MB, free: 14.33 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00267/0.341, allocations: 1.567 MB / 348 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3411, allocations: 0 / 348 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004068/0.3415, allocations: 91.88 kB / 348.1 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.3426, allocations: 0.7073 MB / 348.8 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.404e-05/0.3426, allocations: 23.97 kB / 348.8 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.3442, allocations: 1.064 MB / 349.9 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.3442, allocations: 0 / 349.9 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.3466, allocations: 1.304 MB / 351.2 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002661/0.3468, allocations: 192.4 kB / 351.4 MB, free: 9.262 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.347, allocations: 20 kB / 351.4 MB, free: 9.242 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006522/0.3476, allocations: 103.8 kB / 351.5 MB, free: 9.141 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002723/0.3479, allocations: 124.4 kB / 351.6 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-05/0.348, allocations: 27.95 kB / 351.6 MB, free: 8.992 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.3482, allocations: 239.1 kB / 351.9 MB, free: 8.758 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3482, allocations: 0 / 351.9 MB, free: 8.758 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005739/0.3488, allocations: 163.9 kB / 352 MB, free: 8.598 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.0002851/0.3491, allocations: 151.3 kB / 352.2 MB, free: 8.441 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001672/0.3508, allocations: 0.7916 MB / 353 MB, free: 7.648 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3508, allocations: 0 / 353 MB, free: 7.648 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008109/0.3516, allocations: 438 kB / 353.4 MB, free: 7.219 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000688/0.3523, allocations: 86 kB / 353.5 MB, free: 7.133 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.3549, allocations: 1.41 MB / 354.9 MB, free: 5.699 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/0.3554, allocations: 0.8401 MB / 355.7 MB, free: 4.836 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002062/0.3556, allocations: 48.17 kB / 355.8 MB, free: 4.785 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.3558, allocations: 43.42 kB / 355.8 MB, free: 4.742 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3558, allocations: 0 / 355.8 MB, free: 4.742 MB / 286.1 MB Notification: Performance of Templates: time 0.02035/0.3761, allocations: 13.54 MB / 369.4 MB, free: 7.18 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)