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.001141/0.001141, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001252/0.001253, allocations: 177.3 kB / 15.94 MB, free: 228 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.44/1.44, allocations: 205.4 MB / 222.1 MB, free: 5.496 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.0004136/0.0004136, allocations: 8 kB / 278.9 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2338, allocations: 47.59 MB / 326.4 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002835/0.2367, allocations: 2.486 MB / 328.9 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002081/0.2388, allocations: 1.063 MB / 330 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.239, allocations: 13.91 kB / 330 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001731/0.2392, allocations: 53.2 kB / 330.1 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003379/0.2395, allocations: 166.8 kB / 330.2 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005284/0.2401, allocations: 215 kB / 330.4 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006048/0.2407, allocations: 488.4 kB / 330.9 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.241, allocations: 106.8 kB / 331 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003877/0.2414, allocations: 308.8 kB / 331.3 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003973/0.2418, allocations: 340.2 kB / 331.6 MB, free: 13.51 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.996e-05/0.2418, allocations: 35.88 kB / 331.7 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001654/0.242, allocations: 69.47 kB / 331.8 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.2422, allocations: 123.6 kB / 331.9 MB, free: 13.39 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.2423, allocations: 109.4 kB / 332 MB, free: 13.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005262/0.2428, allocations: 0.4886 MB / 332.5 MB, free: 12.96 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2428, allocations: 1.156 kB / 332.5 MB, free: 12.96 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2428, allocations: 3.938 kB / 332.5 MB, free: 12.95 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.2429, allocations: 0 / 332.5 MB, free: 12.95 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.001669/0.2445, allocations: 0.8277 MB / 333.3 MB, free: 12.3 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.2446, allocations: 9.031 kB / 333.3 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.2447, allocations: 56.34 kB / 333.4 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005242/0.2452, allocations: 356 kB / 333.7 MB, free: 11.94 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.341e-05/0.2453, allocations: 30.88 kB / 333.7 MB, free: 11.93 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.945e-05/0.2454, allocations: 48.91 kB / 333.8 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.2465, allocations: 0.6211 MB / 334.4 MB, free: 11.41 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.2465, allocations: 0 / 334.4 MB, free: 11.41 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.848e-05/0.2466, allocations: 16 kB / 334.4 MB, free: 11.39 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.2466, allocations: 12 kB / 334.4 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.2478, allocations: 0.6167 MB / 335.1 MB, free: 10.77 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.2501, allocations: 1.371 MB / 336.4 MB, free: 9.336 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009486/0.2511, allocations: 465.9 kB / 336.9 MB, free: 8.875 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.656e-05/0.2511, allocations: 12.52 kB / 336.9 MB, free: 8.863 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.2512, allocations: 39.12 kB / 336.9 MB, free: 8.816 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 1.673e-06/0.2512, allocations: 0 / 336.9 MB, free: 8.816 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.006295/0.2575, allocations: 3.022 MB / 340 MB, free: 5.652 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.2575, allocations: 59.97 kB / 340 MB, free: 5.578 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.2578, allocations: 329.6 kB / 340.3 MB, free: 5.242 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.858e-05/0.2579, allocations: 49.69 kB / 340.4 MB, free: 5.188 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.258, allocations: 197.3 kB / 340.6 MB, free: 4.992 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.2582, allocations: 217 kB / 340.8 MB, free: 4.777 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.21e-05/0.2583, allocations: 16 kB / 340.8 MB, free: 4.762 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.2584, allocations: 362.7 kB / 341.2 MB, free: 4.398 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000598/0.259, allocations: 325.8 kB / 341.5 MB, free: 4.082 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006284/0.2597, allocations: 385 kB / 341.9 MB, free: 3.703 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005131/0.2602, allocations: 255.2 kB / 342.1 MB, free: 3.453 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.2602, allocations: 0 / 342.1 MB, free: 3.453 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001681/0.2619, allocations: 0.9394 MB / 343 MB, free: 2.504 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.2619, allocations: 4 kB / 343 MB, free: 2.5 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2619, allocations: 0 / 343 MB, free: 2.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/0.2632, allocations: 0.7403 MB / 343.8 MB, free: 1.758 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003925/0.2636, allocations: 107.9 kB / 343.9 MB, free: 1.652 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/0.2649, allocations: 1.099 MB / 345 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007332/0.2657, allocations: 151.9 kB / 345.1 MB, free: 388 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-05/0.2658, allocations: 24.06 kB / 345.2 MB, free: 364 kB / 270.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.0002689/0.266, allocations: 180 kB / 345.3 MB, free: 176 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.629e-05/0.2661, allocations: 47.44 kB / 345.4 MB, free: 128 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001659/0.2663, allocations: 80.7 kB / 345.5 MB, free: 40 kB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.2663, allocations: 11.92 kB / 345.5 MB, free: 28 kB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.2663, allocations: 0 / 345.5 MB, free: 28 kB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.2664, allocations: 0 / 345.5 MB, free: 28 kB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002729/0.2691, allocations: 1.579 MB / 347 MB, free: 14.39 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2691, allocations: 0 / 347 MB, free: 14.39 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004149/0.2695, allocations: 99.88 kB / 347.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.2706, allocations: 0.7034 MB / 347.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.441e-05/0.2707, allocations: 27.97 kB / 347.9 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001248/0.272, allocations: 1.06 MB / 348.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.272, allocations: 3.953 kB / 348.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.2744, allocations: 1.323 MB / 350.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002661/0.2747, allocations: 192.4 kB / 350.5 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.2748, allocations: 24 kB / 350.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006754/0.2755, allocations: 143.9 kB / 350.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002609/0.2757, allocations: 144.2 kB / 350.8 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.496e-05/0.2758, allocations: 31.97 kB / 350.8 MB, free: 10.58 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002382/0.276, allocations: 235.1 kB / 351 MB, free: 10.35 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.276, allocations: 0 / 351 MB, free: 10.35 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005264/0.2766, allocations: 160 kB / 351.2 MB, free: 10.19 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.0002545/0.2768, allocations: 151.5 kB / 351.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.2784, allocations: 0.7916 MB / 352.1 MB, free: 9.246 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2784, allocations: 4.062 kB / 352.1 MB, free: 9.242 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007866/0.2792, allocations: 429.9 kB / 352.5 MB, free: 8.82 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.2797, allocations: 81.33 kB / 352.6 MB, free: 8.738 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.2823, allocations: 1.653 MB / 354.3 MB, free: 7.062 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004173/0.2827, allocations: 0.8598 MB / 355.1 MB, free: 6.176 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000177/0.2829, allocations: 52.17 kB / 355.2 MB, free: 6.121 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.283, allocations: 39.41 kB / 355.2 MB, free: 6.082 MB / 286.1 MB Notification: Performance of SimCode: time 4e-07/0.283, allocations: 0 / 355.2 MB, free: 6.082 MB / 286.1 MB Notification: Performance of Templates: time 0.01746/0.3005, allocations: 12.23 MB / 367.4 MB, free: 9.836 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: