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.0009927/0.0009928, allocations: 87.3 kB / 15.06 MB, free: 1.082 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.001345/0.001345, allocations: 176.7 kB / 15.96 MB, free: 196 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.571/1.571, allocations: 205.4 MB / 222.1 MB, free: 5.887 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.0004435/0.0004434, allocations: 16 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2399, allocations: 47.58 MB / 326.5 MB, free: 1.512 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003338/0.2433, allocations: 2.629 MB / 329.1 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002449/0.2458, allocations: 1.041 MB / 330.1 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003032/0.2462, allocations: 12.66 kB / 330.1 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002911/0.2465, allocations: 51.06 kB / 330.2 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.2468, allocations: 129.9 kB / 330.3 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007081/0.2475, allocations: 220.9 kB / 330.5 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009852/0.2485, allocations: 0.6965 MB / 331.2 MB, free: 13.84 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002615/0.2488, allocations: 103.3 kB / 331.3 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005188/0.2493, allocations: 304.2 kB / 331.6 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006084/0.2499, allocations: 345.1 kB / 332 MB, free: 13.41 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.927e-05/0.25, allocations: 33.88 kB / 332 MB, free: 13.4 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002794/0.2503, allocations: 88.92 kB / 332.1 MB, free: 13.37 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000163/0.2505, allocations: 115.8 kB / 332.2 MB, free: 13.28 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.2507, allocations: 118.1 kB / 332.3 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007909/0.2515, allocations: 0.4909 MB / 332.8 MB, free: 12.84 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.2515, allocations: 0 / 332.8 MB, free: 12.84 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2515, allocations: 1 kB / 332.8 MB, free: 12.84 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.653e-05/0.2515, allocations: 0 / 332.8 MB, free: 12.84 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.001926/0.2535, allocations: 0.8199 MB / 333.6 MB, free: 12.2 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.2535, allocations: 13.53 kB / 333.6 MB, free: 12.19 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.2537, allocations: 55.47 kB / 333.7 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005599/0.2542, allocations: 344.2 kB / 334 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.67e-05/0.2543, allocations: 35.81 kB / 334.1 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.2544, allocations: 48.7 kB / 334.1 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.2557, allocations: 0.6247 MB / 334.7 MB, free: 11.25 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.2557, allocations: 0 / 334.7 MB, free: 11.25 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.686e-05/0.2558, allocations: 24 kB / 334.8 MB, free: 11.23 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.2558, allocations: 12 kB / 334.8 MB, free: 11.22 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.257, allocations: 0.6129 MB / 335.4 MB, free: 10.61 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002443/0.2595, allocations: 1.375 MB / 336.8 MB, free: 9.172 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009271/0.2604, allocations: 462 kB / 337.2 MB, free: 8.715 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005524/0.261, allocations: 318.4 kB / 337.5 MB, free: 8.402 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.693e-05/0.2611, allocations: 12.55 kB / 337.5 MB, free: 8.391 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.2611, allocations: 35.12 kB / 337.6 MB, free: 8.348 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 2.405e-06/0.2611, allocations: 0 / 337.6 MB, free: 8.348 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.006527/0.2676, allocations: 3.028 MB / 340.6 MB, free: 5.176 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/0.2678, allocations: 55.97 kB / 340.7 MB, free: 5.109 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004459/0.2682, allocations: 329.6 kB / 341 MB, free: 4.773 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.701e-05/0.2683, allocations: 49.7 kB / 341 MB, free: 4.719 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.2684, allocations: 193.3 kB / 341.2 MB, free: 4.527 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.2686, allocations: 221 kB / 341.4 MB, free: 4.309 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.576e-05/0.2687, allocations: 15.98 kB / 341.4 MB, free: 4.293 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.2689, allocations: 362.7 kB / 341.8 MB, free: 3.93 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005879/0.2695, allocations: 325.8 kB / 342.1 MB, free: 3.613 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000652/0.2701, allocations: 389 kB / 342.5 MB, free: 3.23 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005195/0.2706, allocations: 263.1 kB / 342.8 MB, free: 2.973 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2707, allocations: 7.938 kB / 342.8 MB, free: 2.965 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001743/0.2724, allocations: 0.9393 MB / 343.7 MB, free: 2.016 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.2725, allocations: 8 kB / 343.7 MB, free: 2.008 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.2725, allocations: 4.031 kB / 343.7 MB, free: 2.004 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001313/0.2738, allocations: 0.7286 MB / 344.4 MB, free: 1.273 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003977/0.2742, allocations: 107.9 kB / 344.5 MB, free: 1.168 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.2756, allocations: 1.087 MB / 345.6 MB, free: 56 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007223/0.2764, allocations: 155.9 kB / 345.8 MB, free: 15.9 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.697e-05/0.2765, allocations: 20 kB / 345.8 MB, free: 15.88 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 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002991/0.2768, allocations: 191.9 kB / 346 MB, free: 15.68 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.2769, allocations: 47.44 kB / 346 MB, free: 15.64 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001844/0.2771, allocations: 72.7 kB / 346.1 MB, free: 15.56 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.2771, allocations: 8 kB / 346.1 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.2771, allocations: 0 / 346.1 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.2771, allocations: 3.984 kB / 346.1 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002642/0.2797, allocations: 1.59 MB / 347.7 MB, free: 13.89 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.2798, allocations: 0 / 347.7 MB, free: 13.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004275/0.2802, allocations: 91.89 kB / 347.8 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001133/0.2813, allocations: 0.6996 MB / 348.5 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.695e-05/0.2814, allocations: 27.95 kB / 348.5 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001294/0.2827, allocations: 1.056 MB / 349.6 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.2827, allocations: 3.953 kB / 349.6 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/0.2852, allocations: 1.339 MB / 350.9 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002907/0.2855, allocations: 188.4 kB / 351.1 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.2856, allocations: 20 kB / 351.1 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006188/0.2862, allocations: 143.9 kB / 351.3 MB, free: 10.27 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002755/0.2865, allocations: 148.2 kB / 351.4 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.895e-05/0.2866, allocations: 27.97 kB / 351.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002417/0.2868, allocations: 231.2 kB / 351.7 MB, free: 9.867 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2868, allocations: 0 / 351.7 MB, free: 9.867 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005542/0.2874, allocations: 156 kB / 351.8 MB, free: 9.715 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002491/0.2876, allocations: 163.4 kB / 352 MB, free: 9.547 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001593/0.2892, allocations: 0.7801 MB / 352.8 MB, free: 8.766 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2893, allocations: 4 kB / 352.8 MB, free: 8.762 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008168/0.2901, allocations: 437.8 kB / 353.2 MB, free: 8.336 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006574/0.2907, allocations: 85.41 kB / 353.3 MB, free: 8.25 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002763/0.2935, allocations: 1.672 MB / 354.9 MB, free: 6.559 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004199/0.294, allocations: 0.8442 MB / 355.8 MB, free: 5.688 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002071/0.2942, allocations: 44.19 kB / 355.8 MB, free: 5.641 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.2943, allocations: 39.41 kB / 355.9 MB, free: 5.602 MB / 286.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2943, allocations: 4 kB / 355.9 MB, free: 5.598 MB / 286.1 MB Notification: Performance of Templates: time 0.01884/0.3131, allocations: 12.25 MB / 368.1 MB, free: 9.336 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)