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.00124/0.001241, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00834/0.00834, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.501/1.501, allocations: 205.4 MB / 222.4 MB, free: 5.551 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.0005062/0.0005061, allocations: 12 kB / 279.4 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2709, allocations: 47.58 MB / 327 MB, free: 1.371 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003161/0.2741, allocations: 2.75 MB / 329.8 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002193/0.2764, allocations: 1.07 MB / 330.8 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/0.2766, allocations: 8.188 kB / 330.9 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002669/0.2769, allocations: 55.48 kB / 330.9 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003024/0.2772, allocations: 128.9 kB / 331 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006046/0.2778, allocations: 250.3 kB / 331.3 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008159/0.2786, allocations: 0.7527 MB / 332 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.2789, allocations: 114.7 kB / 332.1 MB, free: 13.47 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004516/0.2794, allocations: 317.3 kB / 332.5 MB, free: 13.3 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004392/0.2798, allocations: 358.5 kB / 332.8 MB, free: 13.07 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.382e-05/0.2799, allocations: 30.09 kB / 332.8 MB, free: 13.07 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002115/0.2801, allocations: 77.11 kB / 332.9 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.2803, allocations: 127.4 kB / 333 MB, free: 12.95 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002951/0.2806, allocations: 291.9 kB / 333.3 MB, free: 12.73 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006979/0.2813, allocations: 0.6692 MB / 334 MB, free: 12.24 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2813, allocations: 0 / 334 MB, free: 12.24 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.2813, allocations: 1.562 kB / 334 MB, free: 12.24 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.2813, allocations: 3.938 kB / 334 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.001694/0.283, allocations: 0.8167 MB / 334.8 MB, free: 11.5 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.2831, allocations: 8.031 kB / 334.8 MB, free: 11.49 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.2832, allocations: 60.28 kB / 334.9 MB, free: 11.43 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.2837, allocations: 359.7 kB / 335.2 MB, free: 11.04 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.57e-05/0.2837, allocations: 29.38 kB / 335.3 MB, free: 11.01 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.2838, allocations: 52.28 kB / 335.3 MB, free: 10.96 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.2849, allocations: 0.6269 MB / 335.9 MB, free: 10.32 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.285, allocations: 7.906 kB / 335.9 MB, free: 10.31 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.073e-05/0.285, allocations: 19.98 kB / 336 MB, free: 10.29 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.2851, allocations: 8 kB / 336 MB, free: 10.29 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.2863, allocations: 0.6168 MB / 336.6 MB, free: 9.668 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002343/0.2886, allocations: 1.375 MB / 338 MB, free: 8.234 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000973/0.2896, allocations: 470.6 kB / 338.4 MB, free: 7.766 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005669/0.2902, allocations: 318.4 kB / 338.7 MB, free: 7.453 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.663e-05/0.2902, allocations: 4.562 kB / 338.7 MB, free: 7.449 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.2903, allocations: 39.12 kB / 338.8 MB, free: 7.402 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 1.974e-06/0.2903, allocations: 0 / 338.8 MB, free: 7.402 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.006724/0.297, allocations: 3.035 MB / 341.8 MB, free: 4.227 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.2971, allocations: 67.95 kB / 341.9 MB, free: 4.148 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003503/0.2975, allocations: 325.6 kB / 342.2 MB, free: 3.816 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.483e-05/0.2975, allocations: 49.69 kB / 342.2 MB, free: 3.762 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.2977, allocations: 197.3 kB / 342.4 MB, free: 3.566 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/0.2979, allocations: 228.9 kB / 342.7 MB, free: 3.34 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.551e-05/0.298, allocations: 61.69 kB / 342.7 MB, free: 3.273 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.2982, allocations: 358.7 kB / 343.1 MB, free: 2.914 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005947/0.2988, allocations: 329.8 kB / 343.4 MB, free: 2.594 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006603/0.2994, allocations: 397 kB / 343.8 MB, free: 2.203 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009933/0.3004, allocations: 0.5187 MB / 344.3 MB, free: 1.676 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3004, allocations: 0 / 344.3 MB, free: 1.676 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001743/0.3022, allocations: 0.9427 MB / 345.2 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3022, allocations: 4 kB / 345.2 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.3022, allocations: 4 kB / 345.2 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/0.3035, allocations: 0.7269 MB / 346 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000385/0.3039, allocations: 107.8 kB / 346.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/0.3053, allocations: 1.095 MB / 347.2 MB, free: 14.76 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007549/0.3061, allocations: 143.9 kB / 347.3 MB, free: 14.62 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.919e-05/0.3061, allocations: 31.92 kB / 347.3 MB, free: 14.59 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.0002992/0.3065, allocations: 180.1 kB / 347.5 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.3066, allocations: 55.42 kB / 347.6 MB, free: 14.34 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001852/0.3068, allocations: 72.69 kB / 347.6 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.3068, allocations: 8 kB / 347.7 MB, free: 14.26 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.3068, allocations: 0 / 347.7 MB, free: 14.26 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.3068, allocations: 3.984 kB / 347.7 MB, free: 14.25 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/0.3096, allocations: 1.59 MB / 349.2 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.3096, allocations: 4 kB / 349.3 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004216/0.31, allocations: 91.89 kB / 349.3 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/0.3112, allocations: 0.7033 MB / 350 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.141e-05/0.3112, allocations: 19.97 kB / 350.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.3125, allocations: 1.072 MB / 351.1 MB, free: 10.68 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3126, allocations: 4.078 kB / 351.1 MB, free: 10.68 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00239/0.315, allocations: 1.327 MB / 352.5 MB, free: 9.328 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002641/0.3152, allocations: 192.5 kB / 352.7 MB, free: 9.121 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.3153, allocations: 27.98 kB / 352.7 MB, free: 9.094 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006667/0.316, allocations: 147.8 kB / 352.8 MB, free: 8.949 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002673/0.3163, allocations: 124.3 kB / 352.9 MB, free: 8.828 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.991e-05/0.3164, allocations: 23.97 kB / 353 MB, free: 8.805 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002558/0.3166, allocations: 235.2 kB / 353.2 MB, free: 8.574 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3166, allocations: 0 / 353.2 MB, free: 8.574 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005667/0.3172, allocations: 156 kB / 353.4 MB, free: 8.422 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.0002663/0.3175, allocations: 151.3 kB / 353.5 MB, free: 8.266 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001626/0.3191, allocations: 0.7956 MB / 354.3 MB, free: 7.473 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3191, allocations: 0 / 354.3 MB, free: 7.473 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008224/0.3199, allocations: 433.8 kB / 354.7 MB, free: 7.051 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006915/0.3207, allocations: 85.39 kB / 354.8 MB, free: 6.965 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002778/0.3234, allocations: 1.719 MB / 356.5 MB, free: 5.223 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/0.3239, allocations: 0.8481 MB / 357.4 MB, free: 4.348 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002005/0.3241, allocations: 44.17 kB / 357.4 MB, free: 4.301 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.3242, allocations: 39.42 kB / 357.5 MB, free: 4.262 MB / 286.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3242, allocations: 4 kB / 357.5 MB, free: 4.258 MB / 286.1 MB Notification: Performance of Templates: time 0.02039/0.3446, allocations: 12.6 MB / 370.1 MB, free: 7.637 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)