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.001753/0.001753, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002506/0.002506, allocations: 192.4 kB / 16.14 MB, free: 6.707 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.56/1.56, allocations: 205.1 MB / 222 MB, free: 4.77 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.001345/0.001346, allocations: 43.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2456, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003709/0.2493, allocations: 2.209 MB / 326.9 MB, free: 204 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.2508, allocations: 0.7448 MB / 327.6 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.251, allocations: 6.312 kB / 327.6 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001905/0.2512, allocations: 24.72 kB / 327.7 MB, free: 15.58 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.2514, allocations: 57.59 kB / 327.7 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.2517, allocations: 81.94 kB / 327.8 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002907/0.252, allocations: 265.3 kB / 328.1 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.2522, allocations: 54.86 kB / 328.1 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.2524, allocations: 113.9 kB / 328.2 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.2526, allocations: 119.8 kB / 328.3 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.2526, allocations: 16.41 kB / 328.4 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.2527, allocations: 57.69 kB / 328.4 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.19e-05/0.2528, allocations: 45.22 kB / 328.5 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.253, allocations: 105.2 kB / 328.6 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.2533, allocations: 266.4 kB / 328.8 MB, free: 14.82 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2533, allocations: 1.062 kB / 328.8 MB, free: 14.82 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2533, allocations: 0 / 328.8 MB, free: 14.82 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.2533, allocations: 0 / 328.8 MB, free: 14.82 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.001101/0.2545, allocations: 0.5608 MB / 329.4 MB, free: 14.29 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.2545, allocations: 10.09 kB / 329.4 MB, free: 14.29 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.588e-05/0.2546, allocations: 24.06 kB / 329.4 MB, free: 14.28 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.2549, allocations: 240.6 kB / 329.6 MB, free: 14.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.2549, allocations: 12.91 kB / 329.7 MB, free: 14.02 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.988e-05/0.255, allocations: 20.66 kB / 329.7 MB, free: 14.01 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005117/0.2555, allocations: 240.6 kB / 329.9 MB, free: 13.85 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.2555, allocations: 1.406 kB / 329.9 MB, free: 13.85 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.2556, allocations: 5.344 kB / 329.9 MB, free: 13.85 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.2556, allocations: 4.656 kB / 329.9 MB, free: 13.85 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004736/0.256, allocations: 193.6 kB / 330.1 MB, free: 13.76 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.2571, allocations: 0.6644 MB / 330.8 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006267/0.2577, allocations: 210 kB / 331 MB, free: 13.06 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/0.258, allocations: 103 kB / 331.1 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.2581, allocations: 2.25 kB / 331.1 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005077/0.2586, allocations: 164.1 kB / 331.2 MB, free: 12.89 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 3.156e-06/0.2586, allocations: 5.109 kB / 331.3 MB, free: 12.88 MB / 270.1 MB Notification: Performance of matching and sorting (n=26): time 0.002556/0.2611, allocations: 1.144 MB / 332.4 MB, free: 12.01 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.2612, allocations: 58.94 kB / 332.5 MB, free: 11.95 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.2614, allocations: 194 kB / 332.6 MB, free: 11.8 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.2614, allocations: 35.61 kB / 332.7 MB, free: 11.76 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.931e-05/0.2615, allocations: 141.6 kB / 332.8 MB, free: 11.62 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.487e-05/0.2616, allocations: 85.88 kB / 332.9 MB, free: 11.55 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.2617, allocations: 65 kB / 333 MB, free: 11.5 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.2618, allocations: 335.6 kB / 333.3 MB, free: 11.17 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.2621, allocations: 104.5 kB / 333.4 MB, free: 11.08 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002714/0.2624, allocations: 144.9 kB / 333.5 MB, free: 10.93 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004666/0.2629, allocations: 242.7 kB / 333.8 MB, free: 10.67 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2629, allocations: 0 / 333.8 MB, free: 10.67 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008247/0.2637, allocations: 408.9 kB / 334.2 MB, free: 10.26 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.632e-05/0.2638, allocations: 33.69 kB / 334.2 MB, free: 10.22 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.2638, allocations: 7.875 kB / 334.2 MB, free: 10.21 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000311/0.2641, allocations: 68.81 kB / 334.3 MB, free: 10.14 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.2644, allocations: 59.95 kB / 334.3 MB, free: 10.08 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006006/0.265, allocations: 0.6109 MB / 334.9 MB, free: 9.445 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002802/0.2653, allocations: 27.97 kB / 335 MB, free: 9.418 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.095e-05/0.2653, allocations: 15.98 kB / 335 MB, free: 9.402 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.0001886/0.2655, allocations: 142.1 kB / 335.1 MB, free: 9.254 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.524e-05/0.2656, allocations: 23.72 kB / 335.2 MB, free: 9.23 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.365e-05/0.2656, allocations: 29.88 kB / 335.2 MB, free: 9.199 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.2657, allocations: 3.984 kB / 335.2 MB, free: 9.195 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.868e-06/0.2657, allocations: 0 / 335.2 MB, free: 9.195 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2657, allocations: 0 / 335.2 MB, free: 9.195 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.2669, allocations: 0.6786 MB / 335.9 MB, free: 8.457 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.2669, allocations: 0 / 335.9 MB, free: 8.457 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002121/0.2671, allocations: 43.95 kB / 335.9 MB, free: 8.414 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001683/0.2673, allocations: 72.8 kB / 336 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.449e-05/0.2673, allocations: 7.984 kB / 336 MB, free: 8.332 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004392/0.2678, allocations: 0.6109 MB / 336.6 MB, free: 7.695 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2678, allocations: 0 / 336.6 MB, free: 7.695 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000951/0.2688, allocations: 0.4998 MB / 337.1 MB, free: 7.176 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.2689, allocations: 112.8 kB / 337.2 MB, free: 7.047 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.554e-05/0.2689, allocations: 8 kB / 337.2 MB, free: 7.039 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.2692, allocations: 31.95 kB / 337.2 MB, free: 7.008 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.2693, allocations: 27.95 kB / 337.3 MB, free: 6.98 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.2693, allocations: 8 kB / 337.3 MB, free: 6.973 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001298/0.2694, allocations: 143.5 kB / 337.4 MB, free: 6.832 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2695, allocations: 4 kB / 337.4 MB, free: 6.828 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003583/0.2698, allocations: 72 kB / 337.5 MB, free: 6.758 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.0002126/0.27, allocations: 123.2 kB / 337.6 MB, free: 6.629 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007499/0.2708, allocations: 324.6 kB / 337.9 MB, free: 6.301 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.2708, allocations: 4.125 kB / 337.9 MB, free: 6.297 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003369/0.2712, allocations: 139.8 kB / 338.1 MB, free: 6.16 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004244/0.2716, allocations: 51.59 kB / 338.1 MB, free: 6.109 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.2731, allocations: 0.7295 MB / 338.9 MB, free: 5.355 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.2734, allocations: 0.744 MB / 339.6 MB, free: 4.586 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.2735, allocations: 21.94 kB / 339.6 MB, free: 4.562 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.322e-05/0.2736, allocations: 19.44 kB / 339.6 MB, free: 4.547 MB / 270.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2736, allocations: 0 / 339.6 MB, free: 4.547 MB / 270.1 MB Notification: Performance of Templates: time 0.007024/0.2806, allocations: 3.459 MB / 343.1 MB, free: 1.086 MB / 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)