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.0008973/0.0008971, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008898/0.0008899, allocations: 172.7 kB / 15.95 MB, free: 208 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.489/1.489, allocations: 205.4 MB / 222.1 MB, free: 5.531 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.0005158/0.0005158, allocations: 8 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2862, allocations: 47.6 MB / 326.5 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002819/0.2891, allocations: 2.628 MB / 329.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.2909, allocations: 1.042 MB / 330.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.2911, allocations: 5.375 kB / 330.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002235/0.2913, allocations: 53.97 kB / 330.2 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002269/0.2915, allocations: 133.5 kB / 330.3 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005139/0.2921, allocations: 209.9 kB / 330.5 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007388/0.2928, allocations: 0.6999 MB / 331.2 MB, free: 13.75 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002195/0.293, allocations: 106.8 kB / 331.3 MB, free: 13.69 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004267/0.2935, allocations: 308.7 kB / 331.6 MB, free: 13.53 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000419/0.2939, allocations: 340.6 kB / 332 MB, free: 13.32 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.45e-05/0.294, allocations: 30.66 kB / 332 MB, free: 13.32 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.2942, allocations: 73.23 kB / 332.1 MB, free: 13.3 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001413/0.2943, allocations: 122.9 kB / 332.2 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.2944, allocations: 109.5 kB / 332.3 MB, free: 13.13 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004932/0.2949, allocations: 0.4991 MB / 332.8 MB, free: 12.76 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.295, allocations: 5.469 kB / 332.8 MB, free: 12.76 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.295, allocations: 0 / 332.8 MB, free: 12.76 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.295, allocations: 0 / 332.8 MB, free: 12.76 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.001472/0.2965, allocations: 0.8166 MB / 333.6 MB, free: 12.12 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.2965, allocations: 8.312 kB / 333.6 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.2966, allocations: 56.38 kB / 333.7 MB, free: 12.09 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004491/0.2971, allocations: 360.4 kB / 334 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.345e-05/0.2971, allocations: 31.25 kB / 334.1 MB, free: 11.74 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.2973, allocations: 58.14 kB / 334.1 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.2984, allocations: 0.6151 MB / 334.7 MB, free: 11.08 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.2984, allocations: 4 kB / 334.8 MB, free: 11.07 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.464e-05/0.2985, allocations: 16 kB / 334.8 MB, free: 11.06 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.2985, allocations: 12 kB / 334.8 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.2997, allocations: 0.6167 MB / 335.4 MB, free: 10.43 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.302, allocations: 1.367 MB / 336.8 MB, free: 9.004 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009843/0.303, allocations: 466 kB / 337.2 MB, free: 8.543 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005783/0.3036, allocations: 318.4 kB / 337.5 MB, free: 8.23 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.308e-05/0.3036, allocations: 8.562 kB / 337.5 MB, free: 8.223 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.3037, allocations: 43.12 kB / 337.6 MB, free: 8.172 MB / 270.1 MB Notification: Performance of pre-optimization done (n=58): time 2.054e-06/0.3037, allocations: 3.938 kB / 337.6 MB, free: 8.168 MB / 270.1 MB Notification: Performance of matching and sorting (n=64): time 0.006207/0.3099, allocations: 3.012 MB / 340.6 MB, free: 5.012 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.31, allocations: 59.91 kB / 340.7 MB, free: 4.941 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/0.3103, allocations: 337.6 kB / 341 MB, free: 4.598 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.328e-05/0.3104, allocations: 45.7 kB / 341 MB, free: 4.547 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.3105, allocations: 201.3 kB / 341.2 MB, free: 4.348 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/0.3107, allocations: 217 kB / 341.4 MB, free: 4.133 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.245e-05/0.3108, allocations: 16 kB / 341.5 MB, free: 4.117 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3109, allocations: 362.7 kB / 341.8 MB, free: 3.754 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.3115, allocations: 325.8 kB / 342.1 MB, free: 3.438 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000597/0.3121, allocations: 385 kB / 342.5 MB, free: 3.059 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004841/0.3126, allocations: 259.2 kB / 342.8 MB, free: 2.805 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3126, allocations: 0 / 342.8 MB, free: 2.805 MB / 270.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001691/0.3143, allocations: 0.9355 MB / 343.7 MB, free: 1.859 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/0.3143, allocations: 11.98 kB / 343.7 MB, free: 1.848 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3144, allocations: 0 / 343.7 MB, free: 1.848 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001329/0.3157, allocations: 0.7325 MB / 344.4 MB, free: 1.113 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003884/0.3161, allocations: 103.8 kB / 344.5 MB, free: 1.012 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/0.3175, allocations: 1.099 MB / 345.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006851/0.3182, allocations: 147.9 kB / 345.8 MB, free: 15.74 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.917e-05/0.3183, allocations: 23.98 kB / 345.8 MB, free: 15.72 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.0002835/0.3186, allocations: 188 kB / 346 MB, free: 15.52 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.3187, allocations: 51.42 kB / 346 MB, free: 15.47 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001731/0.3189, allocations: 76.7 kB / 346.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.3189, allocations: 8 kB / 346.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.3189, allocations: 0 / 346.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.3189, allocations: 3.984 kB / 346.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002934/0.3219, allocations: 1.59 MB / 347.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3219, allocations: 4 kB / 347.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004295/0.3223, allocations: 91.89 kB / 347.8 MB, free: 13.63 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.3236, allocations: 0.6956 MB / 348.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.26e-05/0.3237, allocations: 27.95 kB / 348.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001446/0.3251, allocations: 1.064 MB / 349.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.3251, allocations: 7.938 kB / 349.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/0.3276, allocations: 1.327 MB / 350.9 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002746/0.3279, allocations: 188.5 kB / 351.1 MB, free: 10.26 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.328, allocations: 24 kB / 351.1 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006336/0.3286, allocations: 147.8 kB / 351.3 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003034/0.3289, allocations: 152.2 kB / 351.4 MB, free: 9.941 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.236e-05/0.329, allocations: 23.97 kB / 351.5 MB, free: 9.918 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002841/0.3293, allocations: 235.2 kB / 351.7 MB, free: 9.688 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3293, allocations: 0 / 351.7 MB, free: 9.688 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007121/0.33, allocations: 159.9 kB / 351.8 MB, free: 9.531 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.0003311/0.3303, allocations: 151.4 kB / 352 MB, free: 9.375 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001642/0.332, allocations: 0.7879 MB / 352.8 MB, free: 8.586 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.332, allocations: 7.938 kB / 352.8 MB, free: 8.578 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008841/0.3329, allocations: 429.8 kB / 353.2 MB, free: 8.16 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006815/0.3336, allocations: 85.39 kB / 353.3 MB, free: 8.074 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.3365, allocations: 1.66 MB / 354.9 MB, free: 6.395 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004375/0.3369, allocations: 0.8481 MB / 355.8 MB, free: 5.52 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.3371, allocations: 44.17 kB / 355.8 MB, free: 5.473 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.3372, allocations: 35.42 kB / 355.9 MB, free: 5.438 MB / 286.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3373, allocations: 0 / 355.9 MB, free: 5.438 MB / 286.1 MB Notification: Performance of Templates: time 0.01955/0.3568, allocations: 12.25 MB / 368.1 MB, free: 9.168 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)