Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001346/0.001346, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.01074/0.01074, allocations: 171.9 kB / 16.26 MB, free: 6.613 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.654/1.654, 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.0004775/0.0004777, allocations: 16 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2719, allocations: 47.58 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002437/0.2744, allocations: 1.86 MB / 328.9 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.2758, allocations: 0.7339 MB / 329.6 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.604e-05/0.2759, allocations: 6.625 kB / 329.6 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.2761, allocations: 21.22 kB / 329.6 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001532/0.2763, allocations: 58.44 kB / 329.7 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.2766, allocations: 92.81 kB / 329.8 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002631/0.2768, allocations: 262.1 kB / 330 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.277, allocations: 49.11 kB / 330.1 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001761/0.2772, allocations: 102 kB / 330.2 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001734/0.2773, allocations: 115.7 kB / 330.3 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.211e-05/0.2774, allocations: 11.06 kB / 330.3 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.2775, allocations: 64.17 kB / 330.4 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.038e-05/0.2776, allocations: 40.19 kB / 330.4 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.2778, allocations: 134.5 kB / 330.6 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003201/0.2781, allocations: 259.2 kB / 330.8 MB, free: 14.54 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2781, allocations: 0 / 330.8 MB, free: 14.54 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2781, allocations: 1.906 kB / 330.8 MB, free: 14.54 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.2781, allocations: 0 / 330.8 MB, free: 14.54 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.001022/0.2792, allocations: 0.5311 MB / 331.3 MB, free: 14.04 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.2792, allocations: 9.312 kB / 331.3 MB, free: 14.04 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.334e-05/0.2793, allocations: 29.05 kB / 331.4 MB, free: 14.03 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.2795, allocations: 235.3 kB / 331.6 MB, free: 13.78 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/0.2796, allocations: 13.09 kB / 331.6 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.974e-05/0.2796, allocations: 25.64 kB / 331.6 MB, free: 13.76 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004864/0.2801, allocations: 247.4 kB / 331.9 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.2801, allocations: 0 / 331.9 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.43e-05/0.2802, allocations: 6 kB / 331.9 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.2802, allocations: 4.688 kB / 331.9 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005367/0.2807, allocations: 210.8 kB / 332.1 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.2818, allocations: 0.676 MB / 332.8 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005939/0.2824, allocations: 222.8 kB / 333 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002414/0.2826, allocations: 105 kB / 333.1 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.2827, allocations: 3.031 kB / 333.1 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004085/0.2831, allocations: 170.7 kB / 333.3 MB, free: 12.63 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.2831, allocations: 1.062 kB / 333.3 MB, free: 12.63 MB / 270.1 MB Notification: Performance of matching and sorting (n=26): time 0.00251/0.2856, allocations: 1.224 MB / 334.5 MB, free: 11.59 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.2856, allocations: 55.41 kB / 334.5 MB, free: 11.53 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.2858, allocations: 190.8 kB / 334.7 MB, free: 11.33 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.2859, allocations: 33.7 kB / 334.8 MB, free: 11.29 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.143e-05/0.2859, allocations: 140.3 kB / 334.9 MB, free: 11.15 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.561e-05/0.286, allocations: 90.77 kB / 335 MB, free: 11.06 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.426e-05/0.2861, allocations: 41.64 kB / 335 MB, free: 11.02 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.2862, allocations: 334.8 kB / 335.4 MB, free: 10.68 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.2865, allocations: 116.3 kB / 335.5 MB, free: 10.56 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000291/0.2868, allocations: 148.9 kB / 335.6 MB, free: 10.41 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005173/0.2873, allocations: 262.7 kB / 335.9 MB, free: 10.13 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2873, allocations: 0 / 335.9 MB, free: 10.13 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009282/0.2882, allocations: 420.9 kB / 336.3 MB, free: 9.707 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.931e-05/0.2883, allocations: 33.7 kB / 336.3 MB, free: 9.668 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2883, allocations: 3.938 kB / 336.3 MB, free: 9.664 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002617/0.2886, allocations: 72.81 kB / 336.4 MB, free: 9.59 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.2888, allocations: 51.91 kB / 336.4 MB, free: 9.539 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004833/0.2893, allocations: 0.6187 MB / 337.1 MB, free: 8.895 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/0.2896, allocations: 43.98 kB / 337.1 MB, free: 8.852 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.2896, allocations: 12 kB / 337.1 MB, free: 8.84 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.0001693/0.2898, allocations: 141.8 kB / 337.3 MB, free: 8.691 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.2898, allocations: 19.81 kB / 337.3 MB, free: 8.672 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.691e-05/0.2899, allocations: 33.8 kB / 337.3 MB, free: 8.637 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2899, allocations: 0 / 337.3 MB, free: 8.637 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.2899, allocations: 8 kB / 337.3 MB, free: 8.629 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.2899, allocations: 0 / 337.3 MB, free: 8.629 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.291, allocations: 0.6902 MB / 338 MB, free: 7.879 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.291, allocations: 4 kB / 338 MB, free: 7.875 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002106/0.2912, allocations: 43.97 kB / 338.1 MB, free: 7.832 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001628/0.2914, allocations: 68.75 kB / 338.1 MB, free: 7.762 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.2914, allocations: 8.047 kB / 338.1 MB, free: 7.754 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003999/0.2918, allocations: 0.6071 MB / 338.7 MB, free: 7.121 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.2919, allocations: 8.047 kB / 338.7 MB, free: 7.113 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009832/0.2929, allocations: 0.5271 MB / 339.3 MB, free: 6.566 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.293, allocations: 108.9 kB / 339.4 MB, free: 6.441 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.345e-05/0.293, allocations: 11.98 kB / 339.4 MB, free: 6.43 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.2933, allocations: 39.97 kB / 339.4 MB, free: 6.391 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.224e-05/0.2934, allocations: 27.95 kB / 339.5 MB, free: 6.363 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.635e-05/0.2935, allocations: 11.98 kB / 339.5 MB, free: 6.352 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001272/0.2936, allocations: 135.5 kB / 339.6 MB, free: 6.219 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2936, allocations: 3.938 kB / 339.6 MB, free: 6.215 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003701/0.294, allocations: 72 kB / 339.7 MB, free: 6.145 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.0002098/0.2942, allocations: 127.5 kB / 339.8 MB, free: 6.012 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007879/0.295, allocations: 344.6 kB / 340.1 MB, free: 5.664 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.295, allocations: 4.062 kB / 340.1 MB, free: 5.66 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003486/0.2954, allocations: 147.8 kB / 340.3 MB, free: 5.516 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.2958, allocations: 39.86 kB / 340.3 MB, free: 5.477 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001527/0.2974, allocations: 0.815 MB / 341.1 MB, free: 4.637 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.2977, allocations: 0.7477 MB / 341.9 MB, free: 3.863 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.2978, allocations: 17.95 kB / 341.9 MB, free: 3.844 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.56e-05/0.2979, allocations: 19.44 kB / 341.9 MB, free: 3.828 MB / 270.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2979, allocations: 0 / 341.9 MB, free: 3.828 MB / 270.1 MB Notification: Performance of Templates: time 0.007453/0.3053, allocations: 3.409 MB / 345.3 MB, free: 428 kB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1)