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.001295/0.001295, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001472/0.001472, allocations: 177.3 kB / 15.95 MB, free: 216 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.515/1.515, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004882/0.0004882, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2845, allocations: 47.59 MB / 326.4 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002261/0.2868, allocations: 1.744 MB / 328.2 MB, free: 64 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.2881, allocations: 0.7075 MB / 328.9 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.2882, allocations: 3.938 kB / 328.9 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001233/0.2884, allocations: 31.36 kB / 328.9 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.2886, allocations: 70.19 kB / 329 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003199/0.289, allocations: 75 kB / 329.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003129/0.2893, allocations: 179.4 kB / 329.2 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.2894, allocations: 48.45 kB / 329.3 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.2896, allocations: 101.6 kB / 329.4 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.2899, allocations: 107.1 kB / 329.5 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.445e-05/0.2899, allocations: 11.5 kB / 329.5 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.29, allocations: 50.3 kB / 329.6 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.558e-05/0.2901, allocations: 39.98 kB / 329.6 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.2902, allocations: 63.95 kB / 329.7 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003134/0.2906, allocations: 197.3 kB / 329.9 MB, free: 14.85 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2906, allocations: 0 / 329.9 MB, free: 14.85 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2906, allocations: 0 / 329.9 MB, free: 14.85 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.812e-06/0.2906, allocations: 0 / 329.9 MB, free: 14.85 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.001119/0.2917, allocations: 0.5342 MB / 330.4 MB, free: 14.35 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2918, allocations: 8.312 kB / 330.4 MB, free: 14.35 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.92e-05/0.2919, allocations: 28.03 kB / 330.4 MB, free: 14.33 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.2922, allocations: 239.1 kB / 330.7 MB, free: 14.08 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.414e-05/0.2922, allocations: 11.47 kB / 330.7 MB, free: 14.07 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.653e-05/0.2923, allocations: 25.78 kB / 330.7 MB, free: 14.06 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005482/0.2928, allocations: 239.4 kB / 330.9 MB, free: 13.91 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.2929, allocations: 5.156 kB / 330.9 MB, free: 13.9 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.2929, allocations: 6.062 kB / 330.9 MB, free: 13.9 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.2929, allocations: 8.047 kB / 330.9 MB, free: 13.89 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005754/0.2935, allocations: 206.1 kB / 331.1 MB, free: 13.81 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.2947, allocations: 0.6763 MB / 331.8 MB, free: 13.21 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006402/0.2953, allocations: 205.9 kB / 332 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.2954, allocations: 14.09 kB / 332 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004892/0.2959, allocations: 169.7 kB / 332.2 MB, free: 12.99 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 2.004e-06/0.2959, allocations: 0 / 332.2 MB, free: 12.99 MB / 270.1 MB Notification: Performance of matching and sorting (n=26): time 0.002749/0.2986, allocations: 1.219 MB / 333.4 MB, free: 12.1 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.2987, allocations: 54.56 kB / 333.5 MB, free: 12.04 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.2989, allocations: 192.6 kB / 333.7 MB, free: 11.89 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.81e-05/0.299, allocations: 33.17 kB / 333.7 MB, free: 11.85 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.623e-05/0.2991, allocations: 140.2 kB / 333.8 MB, free: 11.72 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.497e-05/0.2992, allocations: 86.55 kB / 333.9 MB, free: 11.64 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.551e-05/0.2992, allocations: 5.188 kB / 333.9 MB, free: 11.64 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.2993, allocations: 344.1 kB / 334.3 MB, free: 11.3 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002793/0.2996, allocations: 112.9 kB / 334.4 MB, free: 11.24 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002976/0.2999, allocations: 152.3 kB / 334.5 MB, free: 11.08 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002698/0.3002, allocations: 135.1 kB / 334.6 MB, free: 10.95 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.3002, allocations: 0 / 334.6 MB, free: 10.95 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008409/0.3011, allocations: 413.3 kB / 335.1 MB, free: 10.53 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.543e-05/0.3011, allocations: 33.66 kB / 335.1 MB, free: 10.49 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.3011, allocations: 4 kB / 335.1 MB, free: 10.48 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002619/0.3014, allocations: 80.84 kB / 335.2 MB, free: 10.4 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.3016, allocations: 47.97 kB / 335.2 MB, free: 10.36 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005245/0.3022, allocations: 0.6225 MB / 335.8 MB, free: 9.707 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/0.3025, allocations: 40.03 kB / 335.9 MB, free: 9.668 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.037e-05/0.3025, allocations: 12 kB / 335.9 MB, free: 9.656 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 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * 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 (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.0001618/0.3027, allocations: 146 kB / 336 MB, free: 9.504 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.08e-05/0.3027, allocations: 19.81 kB / 336.1 MB, free: 9.484 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.112e-05/0.3028, allocations: 29.88 kB / 336.1 MB, free: 9.453 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.3028, allocations: 4 kB / 336.1 MB, free: 9.449 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.3028, allocations: 0 / 336.1 MB, free: 9.449 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3028, allocations: 3.984 kB / 336.1 MB, free: 9.445 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.304, allocations: 0.6826 MB / 336.8 MB, free: 8.703 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.304, allocations: 3.953 kB / 336.8 MB, free: 8.699 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.3043, allocations: 47.91 kB / 336.8 MB, free: 8.652 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000176/0.3044, allocations: 68.81 kB / 336.9 MB, free: 8.582 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.3045, allocations: 4 kB / 336.9 MB, free: 8.578 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004368/0.3049, allocations: 0.611 MB / 337.5 MB, free: 7.941 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3049, allocations: 7.922 kB / 337.5 MB, free: 7.934 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.3059, allocations: 0.531 MB / 338 MB, free: 7.383 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.3061, allocations: 108.9 kB / 338.1 MB, free: 7.258 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.558e-05/0.3061, allocations: 11.95 kB / 338.2 MB, free: 7.246 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.3064, allocations: 35.97 kB / 338.2 MB, free: 7.211 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.989e-05/0.3065, allocations: 35.94 kB / 338.2 MB, free: 7.176 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.3065, allocations: 11.98 kB / 338.2 MB, free: 7.164 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.3066, allocations: 139.2 kB / 338.4 MB, free: 7.027 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3066, allocations: 0 / 338.4 MB, free: 7.027 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003816/0.307, allocations: 68 kB / 338.4 MB, free: 6.961 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 (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.0002108/0.3072, allocations: 119.2 kB / 338.6 MB, free: 6.836 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000751/0.308, allocations: 347.7 kB / 338.9 MB, free: 6.484 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.308, allocations: 0 / 338.9 MB, free: 6.484 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003369/0.3084, allocations: 155.8 kB / 339.1 MB, free: 6.332 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.3087, allocations: 32.34 kB / 339.1 MB, free: 6.301 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.3102, allocations: 0.7934 MB / 339.9 MB, free: 5.48 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003905/0.3106, allocations: 0.7596 MB / 340.6 MB, free: 4.695 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.3107, allocations: 17.95 kB / 340.7 MB, free: 4.68 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.856e-05/0.3107, allocations: 19.44 kB / 340.7 MB, free: 4.664 MB / 270.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3108, allocations: 0 / 340.7 MB, free: 4.664 MB / 270.1 MB Notification: Performance of Templates: time 0.007403/0.3182, allocations: 3.292 MB / 344 MB, free: 1.371 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: