Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 93.92 kB / 16.32 MB, free: 5.602 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.001331/0.001331, allocations: 182.5 kB / 17.21 MB, free: 5.52 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.559/1.559, allocations: 205.4 MB / 223.4 MB, free: 5.543 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.0007562/0.0007565, allocations: 12 kB / 280.1 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2677, allocations: 47.58 MB / 327.7 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002199/0.27, allocations: 1.848 MB / 329.6 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.2712, allocations: 0.6865 MB / 330.3 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.2713, allocations: 7.438 kB / 330.3 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001836/0.2715, allocations: 28.34 kB / 330.3 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001702/0.2717, allocations: 58.44 kB / 330.4 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003052/0.272, allocations: 72.52 kB / 330.4 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003157/0.2723, allocations: 233.4 kB / 330.6 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.2725, allocations: 49.8 kB / 330.7 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.2727, allocations: 95.89 kB / 330.8 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.2729, allocations: 108.3 kB / 330.9 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.252e-05/0.273, allocations: 9.656 kB / 330.9 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.2731, allocations: 51.98 kB / 331 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.205e-05/0.2732, allocations: 44.45 kB / 331 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.405e-05/0.2733, allocations: 55.95 kB / 331.1 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000272/0.2736, allocations: 196.5 kB / 331.2 MB, free: 14.75 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.2736, allocations: 0.6875 kB / 331.2 MB, free: 14.75 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2736, allocations: 0 / 331.2 MB, free: 14.75 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.2736, allocations: 1.5 kB / 331.2 MB, free: 14.75 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008203/0.2744, allocations: 492.2 kB / 331.7 MB, free: 14.3 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.2745, allocations: 9.688 kB / 331.7 MB, free: 14.3 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.11e-05/0.2746, allocations: 23.5 kB / 331.8 MB, free: 14.29 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.2749, allocations: 234.9 kB / 332 MB, free: 14.04 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.2749, allocations: 17.44 kB / 332 MB, free: 14.03 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.9e-05/0.275, allocations: 19.84 kB / 332 MB, free: 14.02 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004359/0.2754, allocations: 225.6 kB / 332.2 MB, free: 13.86 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.2755, allocations: 5.156 kB / 332.3 MB, free: 13.86 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.192e-05/0.2755, allocations: 9.25 kB / 332.3 MB, free: 13.85 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.2755, allocations: 9.531 kB / 332.3 MB, free: 13.85 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003584/0.2759, allocations: 166.1 kB / 332.4 MB, free: 13.78 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.2771, allocations: 0.7764 MB / 333.2 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003485/0.2774, allocations: 138.5 kB / 333.3 MB, free: 13.01 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.2776, allocations: 68.3 kB / 333.4 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.2776, allocations: 2.188 kB / 333.4 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.2776, allocations: 36.03 kB / 333.5 MB, free: 12.93 MB / 270.1 MB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.2776, allocations: 3.938 kB / 333.5 MB, free: 12.93 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.001958/0.2796, allocations: 1.018 MB / 334.5 MB, free: 12.12 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.2797, allocations: 53.41 kB / 334.5 MB, free: 12.05 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002488/0.2799, allocations: 208.9 kB / 334.7 MB, free: 11.9 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/0.28, allocations: 31.92 kB / 334.8 MB, free: 11.86 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.465e-05/0.2801, allocations: 137.3 kB / 334.9 MB, free: 11.73 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.354e-05/0.2801, allocations: 76.67 kB / 335 MB, free: 11.67 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.34e-05/0.2802, allocations: 5.219 kB / 335 MB, free: 11.66 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2803, allocations: 334.5 kB / 335.3 MB, free: 11.33 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.2805, allocations: 82.56 kB / 335.4 MB, free: 11.29 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.2807, allocations: 122.9 kB / 335.5 MB, free: 11.21 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.2809, allocations: 82.23 kB / 335.6 MB, free: 11.17 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.2809, allocations: 5.25 kB / 335.6 MB, free: 11.17 MB / 270.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004823/0.2814, allocations: 284.7 kB / 335.9 MB, free: 10.99 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.2814, allocations: 4 kB / 335.9 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.2814, allocations: 0 / 335.9 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002583/0.2817, allocations: 68.81 kB / 335.9 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.2819, allocations: 51.97 kB / 336 MB, free: 10.87 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004978/0.2824, allocations: 0.6147 MB / 336.6 MB, free: 10.23 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.2825, allocations: 32.06 kB / 336.6 MB, free: 10.2 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.2826, allocations: 16 kB / 336.6 MB, free: 10.18 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001309/0.2827, allocations: 128 kB / 336.8 MB, free: 10.05 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.562e-05/0.2828, allocations: 23.72 kB / 336.8 MB, free: 10.02 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.007e-05/0.2828, allocations: 25.86 kB / 336.8 MB, free: 9.996 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2828, allocations: 0 / 336.8 MB, free: 9.996 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.2828, allocations: 3.953 kB / 336.8 MB, free: 9.992 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2829, allocations: 4 kB / 336.8 MB, free: 9.988 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008647/0.2837, allocations: 0.5983 MB / 337.4 MB, free: 9.324 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.2837, allocations: 0 / 337.4 MB, free: 9.324 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.2839, allocations: 31.92 kB / 337.5 MB, free: 9.293 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.2841, allocations: 76.86 kB / 337.5 MB, free: 9.215 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.2841, allocations: 4 kB / 337.5 MB, free: 9.211 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004757/0.2846, allocations: 0.6149 MB / 338.2 MB, free: 8.57 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.2846, allocations: 3.984 kB / 338.2 MB, free: 8.566 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005933/0.2852, allocations: 429.7 kB / 338.6 MB, free: 8.121 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.344e-05/0.2853, allocations: 108.9 kB / 338.7 MB, free: 7.996 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.899e-05/0.2854, allocations: 15.92 kB / 338.7 MB, free: 7.98 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.2855, allocations: 23.98 kB / 338.7 MB, free: 7.957 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/0.2856, allocations: 27.95 kB / 338.7 MB, free: 7.93 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.2856, allocations: 4 kB / 338.8 MB, free: 7.926 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001375/0.2858, allocations: 156.2 kB / 338.9 MB, free: 7.773 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2858, allocations: 0 / 338.9 MB, free: 7.773 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003666/0.2862, allocations: 59.98 kB / 339 MB, free: 7.715 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001949/0.2864, allocations: 123.2 kB / 339.1 MB, free: 7.586 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004848/0.2869, allocations: 207.8 kB / 339.3 MB, free: 7.383 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.2869, allocations: 3.938 kB / 339.3 MB, free: 7.379 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000217/0.2871, allocations: 104 kB / 339.4 MB, free: 7.277 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003976/0.2875, allocations: 39.72 kB / 339.4 MB, free: 7.238 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00135/0.2889, allocations: 0.8137 MB / 340.2 MB, free: 6.395 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.2892, allocations: 0.7443 MB / 341 MB, free: 5.625 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.557e-05/0.2893, allocations: 17.94 kB / 341 MB, free: 5.609 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.875e-05/0.2894, allocations: 19.44 kB / 341 MB, free: 5.59 MB / 270.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2894, allocations: 0 / 341 MB, free: 5.59 MB / 270.1 MB Notification: Performance of Templates: time 0.006113/0.2955, allocations: 2.812 MB / 343.8 MB, free: 2.777 MB / 270.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)