Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001334, allocations: 97.72 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.01282/0.01283, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.674/1.674, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0005762/0.0005759, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2632, allocations: 47.59 MB / 327 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002089/0.2654, allocations: 1.856 MB / 328.9 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.2667, allocations: 0.7383 MB / 329.6 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.2668, allocations: 2 kB / 329.6 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001759/0.267, allocations: 24.22 kB / 329.7 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001772/0.2672, allocations: 62.58 kB / 329.7 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.2675, allocations: 85.45 kB / 329.8 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003088/0.2678, allocations: 257.7 kB / 330 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.268, allocations: 49.11 kB / 330.1 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.2682, allocations: 106.6 kB / 330.2 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.2684, allocations: 115 kB / 330.3 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.186e-05/0.2685, allocations: 11.88 kB / 330.3 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.2686, allocations: 55.64 kB / 330.4 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.167e-05/0.2687, allocations: 44.72 kB / 330.4 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.2689, allocations: 129.7 kB / 330.5 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003294/0.2692, allocations: 263.5 kB / 330.8 MB, free: 14.57 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.2692, allocations: 5.016 kB / 330.8 MB, free: 14.56 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.2692, allocations: 0 / 330.8 MB, free: 14.56 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2692, allocations: 0 / 330.8 MB, free: 14.56 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001173/0.2704, allocations: 0.5235 MB / 331.3 MB, free: 14.07 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.2705, allocations: 9.344 kB / 331.3 MB, free: 14.07 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.852e-05/0.2705, allocations: 25.69 kB / 331.4 MB, free: 14.06 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.2708, allocations: 243.5 kB / 331.6 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.2709, allocations: 16.53 kB / 331.6 MB, free: 13.79 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.506e-05/0.2709, allocations: 21.56 kB / 331.6 MB, free: 13.79 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005765/0.2715, allocations: 250.9 kB / 331.9 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.2716, allocations: 1.156 kB / 331.9 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.2716, allocations: 6.031 kB / 331.9 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.2716, allocations: 8.156 kB / 331.9 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005894/0.2722, allocations: 203.5 kB / 332.1 MB, free: 13.53 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.2734, allocations: 0.6763 MB / 332.8 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006282/0.274, allocations: 218.2 kB / 333 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002576/0.2743, allocations: 109.2 kB / 333.1 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.2743, allocations: 3.156 kB / 333.1 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004069/0.2747, allocations: 170.5 kB / 333.3 MB, free: 12.66 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 2.134e-06/0.2748, allocations: 5.125 kB / 333.3 MB, free: 12.65 MB / 270.1 MB Notification: Performance of matching and sorting (n=26): time 0.002692/0.2775, allocations: 1.214 MB / 334.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.2775, allocations: 51.41 kB / 334.5 MB, free: 11.55 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.2777, allocations: 206.8 kB / 334.7 MB, free: 11.34 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.2778, allocations: 37.64 kB / 334.8 MB, free: 11.29 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.2779, allocations: 136.3 kB / 334.9 MB, free: 11.16 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.455e-05/0.278, allocations: 86.84 kB / 335 MB, free: 11.07 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.228e-05/0.2781, allocations: 37.64 kB / 335 MB, free: 11.03 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.2783, allocations: 330.8 kB / 335.4 MB, free: 10.7 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004307/0.2787, allocations: 116.2 kB / 335.5 MB, free: 10.58 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005002/0.2792, allocations: 156.9 kB / 335.6 MB, free: 10.41 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008265/0.2801, allocations: 254.7 kB / 335.9 MB, free: 10.15 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2801, allocations: 0 / 335.9 MB, free: 10.15 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00129/0.2814, allocations: 420.9 kB / 336.3 MB, free: 9.723 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.038e-05/0.2815, allocations: 37.69 kB / 336.3 MB, free: 9.68 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.2815, allocations: 3.938 kB / 336.3 MB, free: 9.676 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002874/0.2818, allocations: 76.91 kB / 336.4 MB, free: 9.598 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.282, allocations: 55.91 kB / 336.4 MB, free: 9.543 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005439/0.2826, allocations: 0.6109 MB / 337.1 MB, free: 8.906 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002722/0.2828, allocations: 44.06 kB / 337.1 MB, free: 8.863 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.683e-05/0.2829, allocations: 12 kB / 337.1 MB, free: 8.852 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: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001717/0.2831, allocations: 145.7 kB / 337.3 MB, free: 8.699 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.802e-05/0.2831, allocations: 19.81 kB / 337.3 MB, free: 8.68 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.885e-05/0.2832, allocations: 25.88 kB / 337.3 MB, free: 8.652 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2832, allocations: 4 kB / 337.3 MB, free: 8.648 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.2832, allocations: 4 kB / 337.3 MB, free: 8.645 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.2832, allocations: 3.984 kB / 337.3 MB, free: 8.641 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.2844, allocations: 0.6941 MB / 338 MB, free: 7.887 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2845, allocations: 0 / 338 MB, free: 7.887 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002115/0.2847, allocations: 47.97 kB / 338.1 MB, free: 7.84 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001601/0.2848, allocations: 64.81 kB / 338.1 MB, free: 7.773 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/0.2849, allocations: 7.984 kB / 338.1 MB, free: 7.766 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004612/0.2853, allocations: 0.607 MB / 338.7 MB, free: 7.133 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2854, allocations: 0 / 338.7 MB, free: 7.133 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009622/0.2863, allocations: 0.5349 MB / 339.3 MB, free: 6.578 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.2864, allocations: 112.9 kB / 339.4 MB, free: 6.449 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.708e-05/0.2865, allocations: 4 kB / 339.4 MB, free: 6.445 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.2867, allocations: 35.97 kB / 339.4 MB, free: 6.41 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.967e-05/0.2868, allocations: 35.94 kB / 339.5 MB, free: 6.375 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.2869, allocations: 4 kB / 339.5 MB, free: 6.371 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001208/0.287, allocations: 143.5 kB / 339.6 MB, free: 6.23 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.287, allocations: 3.938 kB / 339.6 MB, free: 6.227 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003462/0.2874, allocations: 72 kB / 339.7 MB, free: 6.156 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002171/0.2876, allocations: 127.4 kB / 339.8 MB, free: 6.023 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007779/0.2884, allocations: 344.6 kB / 340.1 MB, free: 5.676 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2884, allocations: 0 / 340.1 MB, free: 5.676 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003543/0.2887, allocations: 155.9 kB / 340.3 MB, free: 5.523 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004361/0.2892, allocations: 44.08 kB / 340.3 MB, free: 5.48 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.2906, allocations: 0.8071 MB / 341.1 MB, free: 4.648 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.2909, allocations: 0.7438 MB / 341.9 MB, free: 3.879 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.878e-05/0.291, allocations: 17.95 kB / 341.9 MB, free: 3.859 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.295e-05/0.2911, allocations: 23.42 kB / 341.9 MB, free: 3.84 MB / 270.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2911, allocations: 4 kB / 341.9 MB, free: 3.836 MB / 270.1 MB Notification: Performance of Templates: time 0.007093/0.2982, allocations: 3.417 MB / 345.3 MB, free: 428 kB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1)