Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_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.00139/0.00139, allocations: 97.95 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.01081/0.01081, 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.559/1.559, allocations: 205.4 MB / 222.4 MB, free: 5.805 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.0004991/0.0004993, allocations: 16 kB / 279.4 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2705, allocations: 47.58 MB / 327 MB, free: 1.367 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002122/0.2727, allocations: 1.902 MB / 328.9 MB, free: 15.87 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.2739, allocations: 0.7134 MB / 329.6 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.274, allocations: 3.656 kB / 329.6 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001654/0.2742, allocations: 20.77 kB / 329.7 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.2744, allocations: 62.44 kB / 329.7 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002901/0.2747, allocations: 79.56 kB / 329.8 MB, free: 15.17 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002999/0.275, allocations: 250 kB / 330 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.2752, allocations: 59.06 kB / 330.1 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.2754, allocations: 94.12 kB / 330.2 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002346/0.2756, allocations: 106.1 kB / 330.3 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.384e-05/0.2756, allocations: 18.03 kB / 330.3 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001575/0.2758, allocations: 55.8 kB / 330.4 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.673e-05/0.2759, allocations: 44.23 kB / 330.4 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.276, allocations: 126.4 kB / 330.5 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003585/0.2764, allocations: 258.7 kB / 330.8 MB, free: 14.52 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.2764, allocations: 1.156 kB / 330.8 MB, free: 14.52 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2764, allocations: 0 / 330.8 MB, free: 14.52 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.2764, allocations: 0 / 330.8 MB, free: 14.52 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.0009203/0.2774, allocations: 496.7 kB / 331.3 MB, free: 14.06 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/0.2774, allocations: 8.094 kB / 331.3 MB, free: 14.06 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.977e-05/0.2775, allocations: 24.75 kB / 331.3 MB, free: 14.05 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003126/0.2778, allocations: 232.2 kB / 331.5 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.2779, allocations: 18.16 kB / 331.6 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.977e-05/0.278, allocations: 25.16 kB / 331.6 MB, free: 13.79 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004785/0.2785, allocations: 225.6 kB / 331.8 MB, free: 13.63 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.2785, allocations: 8.953 kB / 331.8 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.37e-05/0.2785, allocations: 6.219 kB / 331.8 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.2785, allocations: 4.531 kB / 331.8 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003472/0.2789, allocations: 171.4 kB / 332 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.2801, allocations: 0.7818 MB / 332.8 MB, free: 12.85 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000356/0.2804, allocations: 134 kB / 332.9 MB, free: 12.78 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.2806, allocations: 68.91 kB / 333 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.2806, allocations: 2.219 kB / 333 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.2807, allocations: 40.61 kB / 333 MB, free: 12.7 MB / 270.1 MB Notification: Performance of pre-optimization done (n=18): time 1.863e-06/0.2807, allocations: 0 / 333 MB, free: 12.7 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.002063/0.2827, allocations: 1.023 MB / 334 MB, free: 11.88 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.2828, allocations: 54.38 kB / 334.1 MB, free: 11.82 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002382/0.2831, allocations: 209.8 kB / 334.3 MB, free: 11.66 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/0.2831, allocations: 26.86 kB / 334.3 MB, free: 11.63 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.2832, allocations: 142.6 kB / 334.5 MB, free: 11.5 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.65e-05/0.2833, allocations: 67.69 kB / 334.5 MB, free: 11.44 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.436e-05/0.2833, allocations: 34.02 kB / 334.6 MB, free: 11.41 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.2835, allocations: 335.2 kB / 334.9 MB, free: 11.07 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.2837, allocations: 79.62 kB / 335 MB, free: 11.04 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.2839, allocations: 118.9 kB / 335.1 MB, free: 10.96 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.2843, allocations: 181.8 kB / 335.3 MB, free: 10.79 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.2843, allocations: 4 kB / 335.3 MB, free: 10.79 MB / 270.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004916/0.2848, allocations: 279.9 kB / 335.5 MB, free: 10.5 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.2848, allocations: 8 kB / 335.5 MB, free: 10.5 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.2848, allocations: 0 / 335.5 MB, free: 10.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002595/0.2851, allocations: 80.75 kB / 335.6 MB, free: 10.41 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.2852, allocations: 39.97 kB / 335.7 MB, free: 10.38 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00062/0.2859, allocations: 0.6264 MB / 336.3 MB, free: 9.723 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.2861, allocations: 36.06 kB / 336.3 MB, free: 9.688 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.2861, allocations: 8 kB / 336.3 MB, free: 9.68 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 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * 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 (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.000125/0.2862, allocations: 136 kB / 336.5 MB, free: 9.539 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.2863, allocations: 23.72 kB / 336.5 MB, free: 9.516 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.321e-05/0.2864, allocations: 29.86 kB / 336.5 MB, free: 9.484 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2864, allocations: 3.938 kB / 336.5 MB, free: 9.48 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.2864, allocations: 4 kB / 336.5 MB, free: 9.477 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2864, allocations: 0 / 336.5 MB, free: 9.477 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008454/0.2873, allocations: 0.6022 MB / 337.1 MB, free: 8.809 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2873, allocations: 0 / 337.1 MB, free: 8.809 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001516/0.2874, allocations: 28.05 kB / 337.1 MB, free: 8.781 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001611/0.2876, allocations: 72.81 kB / 337.2 MB, free: 8.707 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.2876, allocations: 11.98 kB / 337.2 MB, free: 8.695 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000432/0.2881, allocations: 0.6108 MB / 337.8 MB, free: 8.059 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2881, allocations: 0 / 337.8 MB, free: 8.059 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006108/0.2887, allocations: 429.6 kB / 338.3 MB, free: 7.613 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.755e-05/0.2888, allocations: 101 kB / 338.4 MB, free: 7.496 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.754e-05/0.2888, allocations: 15.98 kB / 338.4 MB, free: 7.48 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.289, allocations: 23.98 kB / 338.4 MB, free: 7.457 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.371e-05/0.2891, allocations: 27.95 kB / 338.4 MB, free: 7.43 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.2891, allocations: 4 kB / 338.4 MB, free: 7.426 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001387/0.2893, allocations: 156 kB / 338.6 MB, free: 7.273 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2893, allocations: 4 kB / 338.6 MB, free: 7.27 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003463/0.2896, allocations: 71.94 kB / 338.7 MB, free: 7.199 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 (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.000209/0.2899, allocations: 123.3 kB / 338.8 MB, free: 7.07 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005016/0.2904, allocations: 199.8 kB / 339 MB, free: 6.875 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2904, allocations: 4 kB / 339 MB, free: 6.871 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000223/0.2906, allocations: 107.9 kB / 339.1 MB, free: 6.766 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004436/0.2911, allocations: 43.69 kB / 339.1 MB, free: 6.723 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.2925, allocations: 0.8312 MB / 340 MB, free: 5.863 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003996/0.293, allocations: 0.7521 MB / 340.7 MB, free: 5.086 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.783e-05/0.2931, allocations: 17.94 kB / 340.7 MB, free: 5.066 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.152e-05/0.2931, allocations: 15.44 kB / 340.7 MB, free: 5.051 MB / 270.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2931, allocations: 8 kB / 340.7 MB, free: 5.043 MB / 270.1 MB Notification: Performance of Templates: time 0.006267/0.2994, allocations: 2.882 MB / 343.6 MB, free: 2.16 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)