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.0009935/0.0009935, 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.008443/0.008444, 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.534/1.534, 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.0004414/0.0004415, allocations: 14.81 kB / 279.4 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2244, allocations: 47.58 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002736/0.2272, allocations: 2.75 MB / 329.8 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.229, allocations: 1.065 MB / 330.8 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002041/0.2293, allocations: 9.219 kB / 330.8 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.2295, allocations: 59.41 kB / 330.9 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002723/0.2298, allocations: 133.2 kB / 331 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005436/0.2303, allocations: 245.7 kB / 331.3 MB, free: 14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007124/0.2311, allocations: 0.7523 MB / 332 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.2313, allocations: 112.3 kB / 332.1 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004434/0.2317, allocations: 319.8 kB / 332.4 MB, free: 13.33 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000423/0.2322, allocations: 354.8 kB / 332.8 MB, free: 13.11 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.3e-05/0.2323, allocations: 34.03 kB / 332.8 MB, free: 13.1 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000209/0.2325, allocations: 80.97 kB / 332.9 MB, free: 13.07 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.2326, allocations: 124.2 kB / 333 MB, free: 12.98 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002621/0.2329, allocations: 291.3 kB / 333.3 MB, free: 12.77 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000635/0.2335, allocations: 0.6652 MB / 334 MB, free: 12.27 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2336, allocations: 0 / 334 MB, free: 12.27 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2336, allocations: 5.094 kB / 334 MB, free: 12.27 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.2336, allocations: 0 / 334 MB, free: 12.27 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.001647/0.2352, allocations: 0.816 MB / 334.8 MB, free: 11.51 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2353, allocations: 8.031 kB / 334.8 MB, free: 11.5 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.2354, allocations: 60.28 kB / 334.9 MB, free: 11.45 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000463/0.2359, allocations: 359.7 kB / 335.2 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.972e-05/0.2359, allocations: 37.38 kB / 335.3 MB, free: 11.02 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.914e-05/0.236, allocations: 48.28 kB / 335.3 MB, free: 10.97 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.2372, allocations: 0.6308 MB / 335.9 MB, free: 10.33 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/0.2373, allocations: 3.906 kB / 335.9 MB, free: 10.32 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.01e-05/0.2373, allocations: 19.98 kB / 336 MB, free: 10.3 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.2374, allocations: 12 kB / 336 MB, free: 10.29 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001176/0.2385, allocations: 0.6168 MB / 336.6 MB, free: 9.676 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002466/0.241, allocations: 1.367 MB / 338 MB, free: 8.25 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.2421, allocations: 470.6 kB / 338.4 MB, free: 7.781 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006009/0.2427, allocations: 322.4 kB / 338.7 MB, free: 7.465 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.019e-05/0.2428, allocations: 12.55 kB / 338.7 MB, free: 7.453 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.2428, allocations: 35.12 kB / 338.8 MB, free: 7.41 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 2.995e-06/0.2428, allocations: 0 / 338.8 MB, free: 7.41 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.006573/0.2494, allocations: 3.039 MB / 341.8 MB, free: 4.23 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.2495, allocations: 55.97 kB / 341.9 MB, free: 4.164 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003583/0.2498, allocations: 337.6 kB / 342.2 MB, free: 3.82 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.686e-05/0.2499, allocations: 49.69 kB / 342.2 MB, free: 3.766 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.2501, allocations: 185.3 kB / 342.4 MB, free: 3.582 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/0.2503, allocations: 232.9 kB / 342.7 MB, free: 3.352 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.615e-05/0.2504, allocations: 65.69 kB / 342.7 MB, free: 3.281 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2505, allocations: 354.7 kB / 343.1 MB, free: 2.926 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006177/0.2511, allocations: 333.8 kB / 343.4 MB, free: 2.602 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006581/0.2518, allocations: 393 kB / 343.8 MB, free: 2.215 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009962/0.2528, allocations: 0.5226 MB / 344.3 MB, free: 1.684 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2528, allocations: 0 / 344.3 MB, free: 1.684 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001923/0.2548, allocations: 0.9466 MB / 345.2 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.2548, allocations: 8 kB / 345.3 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.2548, allocations: 0 / 345.3 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/0.2562, allocations: 0.7269 MB / 346 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000407/0.2566, allocations: 107.8 kB / 346.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001586/0.2582, allocations: 1.091 MB / 347.2 MB, free: 14.77 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008515/0.2591, allocations: 155.9 kB / 347.3 MB, free: 14.61 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.306e-05/0.2592, allocations: 23.98 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.0004503/0.2596, allocations: 184 kB / 347.5 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002254/0.2599, allocations: 51.38 kB / 347.6 MB, free: 14.35 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001968/0.2601, allocations: 72.75 kB / 347.7 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.2601, allocations: 8 kB / 347.7 MB, free: 14.26 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.2601, allocations: 0 / 347.7 MB, free: 14.26 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.2601, allocations: 3.984 kB / 347.7 MB, free: 14.26 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002721/0.2628, allocations: 1.583 MB / 349.2 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.2629, allocations: 0 / 349.2 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004154/0.2633, allocations: 95.89 kB / 349.3 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001099/0.2644, allocations: 0.7072 MB / 350 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.545e-05/0.2645, allocations: 27.97 kB / 350.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001262/0.2657, allocations: 1.064 MB / 351.1 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2658, allocations: 0 / 351.1 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002298/0.2681, allocations: 1.335 MB / 352.5 MB, free: 9.332 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002453/0.2683, allocations: 184.4 kB / 352.7 MB, free: 9.133 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.2684, allocations: 23.98 kB / 352.7 MB, free: 9.109 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006558/0.2691, allocations: 143.8 kB / 352.8 MB, free: 8.969 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/0.2694, allocations: 124.3 kB / 352.9 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.012e-05/0.2694, allocations: 31.97 kB / 353 MB, free: 8.816 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002294/0.2697, allocations: 235.2 kB / 353.2 MB, free: 8.586 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2697, allocations: 0 / 353.2 MB, free: 8.586 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005674/0.2702, allocations: 156 kB / 353.4 MB, free: 8.434 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.0002646/0.2705, allocations: 147.3 kB / 353.5 MB, free: 8.281 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.2721, allocations: 0.7878 MB / 354.3 MB, free: 7.496 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2721, allocations: 4.062 kB / 354.3 MB, free: 7.492 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000793/0.2729, allocations: 445.8 kB / 354.7 MB, free: 7.059 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006959/0.2736, allocations: 81.39 kB / 354.8 MB, free: 6.977 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/0.2763, allocations: 1.719 MB / 356.5 MB, free: 5.234 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004189/0.2767, allocations: 0.8481 MB / 357.4 MB, free: 4.359 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.2769, allocations: 48.17 kB / 357.4 MB, free: 4.309 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.277, allocations: 35.42 kB / 357.4 MB, free: 4.273 MB / 286.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2771, allocations: 0 / 357.4 MB, free: 4.273 MB / 286.1 MB Notification: Performance of Templates: time 0.02001/0.2971, allocations: 12.61 MB / 370.1 MB, free: 7.645 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)