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.001327/0.001327, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001567/0.001567, allocations: 194.9 kB / 16.25 MB, free: 6.621 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.458/1.458, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.002193/0.002193, allocations: 39.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3148, allocations: 46.63 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004537/0.3195, allocations: 3.13 MB / 328 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00259/0.3221, allocations: 1.07 MB / 329 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002476/0.3224, allocations: 13.44 kB / 329.1 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003377/0.3227, allocations: 51.88 kB / 329.1 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000307/0.323, allocations: 132.7 kB / 329.2 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007642/0.3238, allocations: 252.7 kB / 329.5 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009916/0.3248, allocations: 0.7899 MB / 330.3 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003017/0.3251, allocations: 134.8 kB / 330.4 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005383/0.3257, allocations: 371.9 kB / 330.8 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004792/0.3262, allocations: 383.8 kB / 331.1 MB, free: 13.23 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.3263, allocations: 60.22 kB / 331.2 MB, free: 13.23 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000231/0.3265, allocations: 105 kB / 331.3 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.3267, allocations: 156.3 kB / 331.5 MB, free: 13.07 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002963/0.327, allocations: 295 kB / 331.7 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008743/0.3279, allocations: 0.7149 MB / 332.5 MB, free: 12.34 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3279, allocations: 0 / 332.5 MB, free: 12.34 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3279, allocations: 0 / 332.5 MB, free: 12.34 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.3279, allocations: 0 / 332.5 MB, free: 12.34 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.001844/0.3297, allocations: 0.8884 MB / 333.3 MB, free: 11.52 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.954e-05/0.3298, allocations: 8.031 kB / 333.4 MB, free: 11.51 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001563/0.33, allocations: 60.22 kB / 333.4 MB, free: 11.45 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006293/0.3306, allocations: 367.6 kB / 333.8 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.24e-05/0.3307, allocations: 33.38 kB / 333.8 MB, free: 11.02 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.3308, allocations: 48.36 kB / 333.8 MB, free: 10.97 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.332, allocations: 0.6113 MB / 334.5 MB, free: 10.35 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/0.3321, allocations: 19.84 kB / 334.5 MB, free: 10.33 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-05/0.3321, allocations: 16 kB / 334.5 MB, free: 10.31 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.3321, allocations: 8 kB / 334.5 MB, free: 10.3 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.3333, allocations: 0.6012 MB / 335.1 MB, free: 9.703 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.3357, allocations: 1.317 MB / 336.4 MB, free: 8.328 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.3367, allocations: 469.7 kB / 336.9 MB, free: 7.859 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005579/0.3373, allocations: 306.4 kB / 337.2 MB, free: 7.559 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.138e-05/0.3373, allocations: 8.547 kB / 337.2 MB, free: 7.551 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.3374, allocations: 39.12 kB / 337.2 MB, free: 7.504 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 2.154e-06/0.3374, allocations: 7.938 kB / 337.2 MB, free: 7.496 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.006122/0.3435, allocations: 2.875 MB / 340.1 MB, free: 4.48 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.3436, allocations: 55.97 kB / 340.2 MB, free: 4.414 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004055/0.344, allocations: 333.6 kB / 340.5 MB, free: 4.074 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.461e-05/0.3441, allocations: 49.7 kB / 340.5 MB, free: 4.02 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.3442, allocations: 201.2 kB / 340.7 MB, free: 3.82 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.3444, allocations: 221 kB / 340.9 MB, free: 3.602 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002202/0.3446, allocations: 130.5 kB / 341.1 MB, free: 3.469 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.3448, allocations: 358.7 kB / 341.4 MB, free: 3.109 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005716/0.3454, allocations: 321.8 kB / 341.7 MB, free: 2.793 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006056/0.346, allocations: 389 kB / 342.1 MB, free: 2.41 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009008/0.3469, allocations: 0.503 MB / 342.6 MB, free: 1.898 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3469, allocations: 0 / 342.6 MB, free: 1.898 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00177/0.3487, allocations: 0.931 MB / 343.6 MB, free: 0.957 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.3487, allocations: 8 kB / 343.6 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.3488, allocations: 0 / 343.6 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001225/0.35, allocations: 0.7268 MB / 344.3 MB, free: 224 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003713/0.3504, allocations: 103.8 kB / 344.4 MB, free: 120 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.3517, allocations: 1.091 MB / 345.5 MB, free: 15 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006504/0.3524, allocations: 111.9 kB / 345.6 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.858e-05/0.3525, allocations: 20 kB / 345.6 MB, free: 14.87 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.0002566/0.3527, allocations: 187.9 kB / 345.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.954e-05/0.3528, allocations: 47.44 kB / 345.8 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001543/0.353, allocations: 68.75 kB / 345.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.353, allocations: 8 kB / 345.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.353, allocations: 0 / 345.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.353, allocations: 3.984 kB / 345.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002764/0.3558, allocations: 1.571 MB / 347.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3558, allocations: 0 / 347.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004244/0.3562, allocations: 91.89 kB / 347.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001144/0.3574, allocations: 0.7034 MB / 348.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-05/0.3575, allocations: 31.95 kB / 348.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001363/0.3588, allocations: 1.064 MB / 349.4 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3589, allocations: 0 / 349.4 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.3612, allocations: 1.3 MB / 350.7 MB, free: 9.672 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002518/0.3614, allocations: 188.4 kB / 350.9 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.3616, allocations: 24 kB / 350.9 MB, free: 9.445 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005888/0.3622, allocations: 107.8 kB / 351 MB, free: 9.34 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/0.3625, allocations: 120.3 kB / 351.1 MB, free: 9.223 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.488e-05/0.3625, allocations: 31.97 kB / 351.1 MB, free: 9.191 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002451/0.3628, allocations: 231.2 kB / 351.4 MB, free: 8.965 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3628, allocations: 4 kB / 351.4 MB, free: 8.961 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005779/0.3634, allocations: 163.9 kB / 351.5 MB, free: 8.801 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.0002864/0.3637, allocations: 143.2 kB / 351.7 MB, free: 8.652 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.3653, allocations: 0.7996 MB / 352.5 MB, free: 7.852 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3653, allocations: 0 / 352.5 MB, free: 7.852 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007887/0.3661, allocations: 429.8 kB / 352.9 MB, free: 7.434 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006862/0.3668, allocations: 93.47 kB / 353 MB, free: 7.34 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.3694, allocations: 1.597 MB / 354.6 MB, free: 5.719 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.3699, allocations: 0.844 MB / 355.4 MB, free: 4.852 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000191/0.3701, allocations: 44.17 kB / 355.5 MB, free: 4.805 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.3702, allocations: 43.42 kB / 355.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3702, allocations: 0 / 355.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of Templates: time 0.01975/0.39, allocations: 13.43 MB / 368.9 MB, free: 7.316 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)