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.001349/0.001349, 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.001359/0.001359, allocations: 195.2 kB / 16.53 MB, free: 6.391 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.417/1.417, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.00114/0.00114, allocations: 52.39 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2371, allocations: 46.64 MB / 325.3 MB, free: 1.957 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004006/0.2411, allocations: 3.086 MB / 328.4 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.243, allocations: 1.081 MB / 329.5 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.2432, allocations: 5.188 kB / 329.5 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.2435, allocations: 78.95 kB / 329.6 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.2437, allocations: 153.9 kB / 329.7 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006363/0.2444, allocations: 282.1 kB / 330 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000768/0.2452, allocations: 0.7934 MB / 330.8 MB, free: 13.73 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002645/0.2454, allocations: 143.6 kB / 330.9 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004566/0.2459, allocations: 343.9 kB / 331.3 MB, free: 13.46 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005304/0.2464, allocations: 387.8 kB / 331.6 MB, free: 13.21 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.2466, allocations: 60.34 kB / 331.7 MB, free: 13.21 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002679/0.2469, allocations: 113.5 kB / 331.8 MB, free: 13.18 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001887/0.247, allocations: 148.3 kB / 331.9 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003239/0.2474, allocations: 303.4 kB / 332.2 MB, free: 12.84 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007606/0.2481, allocations: 0.7057 MB / 332.9 MB, free: 12.32 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.2482, allocations: 5.203 kB / 333 MB, free: 12.32 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2482, allocations: 0 / 333 MB, free: 12.32 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.2482, allocations: 0 / 333 MB, free: 12.32 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.001842/0.25, allocations: 0.8811 MB / 333.8 MB, free: 11.44 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.2501, allocations: 8.031 kB / 333.8 MB, free: 11.43 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.2503, allocations: 60.27 kB / 333.9 MB, free: 11.37 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000481/0.2507, allocations: 375.5 kB / 334.3 MB, free: 10.96 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/0.2508, allocations: 29.38 kB / 334.3 MB, free: 10.93 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.316e-05/0.2509, allocations: 44.38 kB / 334.3 MB, free: 10.89 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.252, allocations: 0.6152 MB / 335 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.252, allocations: 19.83 kB / 335 MB, free: 10.24 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.676e-05/0.2521, allocations: 16 kB / 335 MB, free: 10.23 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.2521, allocations: 8 kB / 335 MB, free: 10.22 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.2532, allocations: 0.6012 MB / 335.6 MB, free: 9.617 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002309/0.2556, allocations: 1.324 MB / 336.9 MB, free: 8.234 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000983/0.2566, allocations: 473 kB / 337.4 MB, free: 7.762 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005694/0.2571, allocations: 310.4 kB / 337.7 MB, free: 7.453 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.772e-05/0.2572, allocations: 8.547 kB / 337.7 MB, free: 7.445 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.2572, allocations: 39.12 kB / 337.7 MB, free: 7.398 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 2.305e-06/0.2572, allocations: 0 / 337.7 MB, free: 7.398 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.006625/0.2639, allocations: 2.867 MB / 340.6 MB, free: 4.391 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.264, allocations: 55.97 kB / 340.7 MB, free: 4.324 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003415/0.2643, allocations: 333.6 kB / 341 MB, free: 3.988 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.017e-05/0.2644, allocations: 45.69 kB / 341 MB, free: 3.938 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.2645, allocations: 201.2 kB / 341.2 MB, free: 3.738 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.2647, allocations: 224.9 kB / 341.4 MB, free: 3.516 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002202/0.2649, allocations: 134.6 kB / 341.6 MB, free: 3.379 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.2651, allocations: 358.7 kB / 341.9 MB, free: 3.02 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00059/0.2657, allocations: 317.8 kB / 342.2 MB, free: 2.707 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006321/0.2664, allocations: 381 kB / 342.6 MB, free: 2.328 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009472/0.2673, allocations: 0.5147 MB / 343.1 MB, free: 1.801 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2673, allocations: 0 / 343.1 MB, free: 1.801 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001706/0.2691, allocations: 0.9232 MB / 344 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.2691, allocations: 4 kB / 344.1 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2691, allocations: 8.031 kB / 344.1 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/0.2704, allocations: 0.7268 MB / 344.8 MB, free: 128 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003683/0.2708, allocations: 107.8 kB / 344.9 MB, free: 20 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001366/0.2722, allocations: 1.083 MB / 346 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007097/0.2729, allocations: 107.9 kB / 346.1 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.918e-05/0.2729, allocations: 23.98 kB / 346.1 MB, free: 14.78 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.0002697/0.2732, allocations: 187.9 kB / 346.3 MB, free: 14.59 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.2733, allocations: 51.44 kB / 346.3 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001574/0.2735, allocations: 72.73 kB / 346.4 MB, free: 14.46 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.2735, allocations: 8 kB / 346.4 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.2735, allocations: 0 / 346.4 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.2735, allocations: 0 / 346.4 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002678/0.2762, allocations: 1.575 MB / 348 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.2762, allocations: 0 / 348 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004089/0.2766, allocations: 87.88 kB / 348.1 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.2778, allocations: 0.7034 MB / 348.8 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.428e-05/0.2779, allocations: 27.97 kB / 348.8 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/0.2793, allocations: 1.068 MB / 349.9 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2793, allocations: 0 / 349.9 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002437/0.2818, allocations: 1.3 MB / 351.2 MB, free: 9.586 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002954/0.2821, allocations: 192.4 kB / 351.4 MB, free: 9.379 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.2822, allocations: 20 kB / 351.4 MB, free: 9.359 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00067/0.2829, allocations: 111.8 kB / 351.5 MB, free: 9.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002666/0.2832, allocations: 120.4 kB / 351.6 MB, free: 9.133 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-05/0.2832, allocations: 31.97 kB / 351.6 MB, free: 9.102 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002453/0.2835, allocations: 231.2 kB / 351.9 MB, free: 8.875 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2835, allocations: 0 / 351.9 MB, free: 8.875 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006177/0.2841, allocations: 160 kB / 352 MB, free: 8.719 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.2844, allocations: 155.3 kB / 352.2 MB, free: 8.559 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001842/0.2863, allocations: 0.7877 MB / 353 MB, free: 7.77 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2863, allocations: 0 / 353 MB, free: 7.77 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000864/0.2872, allocations: 445.9 kB / 353.4 MB, free: 7.332 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007153/0.2879, allocations: 93.77 kB / 353.5 MB, free: 7.238 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.2907, allocations: 1.394 MB / 354.9 MB, free: 5.82 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.2911, allocations: 0.8518 MB / 355.7 MB, free: 4.945 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002129/0.2914, allocations: 52.16 kB / 355.8 MB, free: 4.891 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.2915, allocations: 39.42 kB / 355.8 MB, free: 4.852 MB / 286.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2915, allocations: 4 kB / 355.8 MB, free: 4.848 MB / 286.1 MB Notification: Performance of Templates: time 0.02232/0.3138, allocations: 13.54 MB / 369.4 MB, free: 7.293 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)