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.001215/0.001215, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00123/0.00123, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.54/1.54, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.001688/0.001688, allocations: 55.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3197, allocations: 46.62 MB / 324.8 MB, free: 1.961 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.005517/0.3253, allocations: 2.219 MB / 327.1 MB, free: 220 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002171/0.3275, allocations: 0.7258 MB / 327.8 MB, free: 15.63 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003234/0.3279, allocations: 7.781 kB / 327.8 MB, free: 15.63 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002821/0.3282, allocations: 23.81 kB / 327.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003998/0.3286, allocations: 54.45 kB / 327.9 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000575/0.3292, allocations: 99.42 kB / 328 MB, free: 15.49 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005457/0.3298, allocations: 275 kB / 328.2 MB, free: 15.33 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.33, allocations: 53.22 kB / 328.3 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000354/0.3304, allocations: 120.2 kB / 328.4 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002816/0.3307, allocations: 124.6 kB / 328.5 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.142e-05/0.3308, allocations: 19.91 kB / 328.5 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000232/0.331, allocations: 75.02 kB / 328.6 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.3311, allocations: 52.33 kB / 328.7 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.3313, allocations: 111.9 kB / 328.8 MB, free: 15 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005699/0.3319, allocations: 280.2 kB / 329.1 MB, free: 14.8 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.332, allocations: 0 / 329.1 MB, free: 14.8 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.332, allocations: 0 / 329.1 MB, free: 14.8 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.332, allocations: 5.344 kB / 329.1 MB, free: 14.8 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.001567/0.3336, allocations: 0.556 MB / 329.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.3336, allocations: 10.03 kB / 329.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.3337, allocations: 20.94 kB / 329.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000443/0.3342, allocations: 240.2 kB / 329.9 MB, free: 14.01 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.662e-05/0.3343, allocations: 16.28 kB / 329.9 MB, free: 14 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.3343, allocations: 24.72 kB / 329.9 MB, free: 13.99 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008372/0.3352, allocations: 239.9 kB / 330.2 MB, free: 13.83 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.3352, allocations: 1.125 kB / 330.2 MB, free: 13.83 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.215e-05/0.3353, allocations: 6.188 kB / 330.2 MB, free: 13.83 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.3353, allocations: 4.25 kB / 330.2 MB, free: 13.83 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009034/0.3363, allocations: 190.1 kB / 330.4 MB, free: 13.75 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.3381, allocations: 0.6684 MB / 331 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.3392, allocations: 205.6 kB / 331.2 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000459/0.3396, allocations: 103.2 kB / 331.3 MB, free: 12.99 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.3397, allocations: 2.406 kB / 331.3 MB, free: 12.99 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007482/0.3404, allocations: 164.3 kB / 331.5 MB, free: 12.87 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 3.065e-06/0.3405, allocations: 3.938 kB / 331.5 MB, free: 12.87 MB / 270.1 MB Notification: Performance of matching and sorting (n=26): time 0.004121/0.3446, allocations: 1.153 MB / 332.6 MB, free: 11.99 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.3447, allocations: 58.66 kB / 332.7 MB, free: 11.92 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003338/0.345, allocations: 202.9 kB / 332.9 MB, free: 11.71 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.882e-05/0.3451, allocations: 33.7 kB / 332.9 MB, free: 11.68 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001972/0.3453, allocations: 136.3 kB / 333.1 MB, free: 11.54 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.3455, allocations: 86.75 kB / 333.1 MB, free: 11.45 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/0.3457, allocations: 61.7 kB / 333.2 MB, free: 11.39 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.3459, allocations: 334.8 kB / 333.5 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004858/0.3464, allocations: 104.3 kB / 333.6 MB, free: 10.95 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005173/0.3469, allocations: 152.7 kB / 333.8 MB, free: 10.79 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008296/0.3478, allocations: 242.7 kB / 334 MB, free: 10.54 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3478, allocations: 0 / 334 MB, free: 10.54 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001452/0.3493, allocations: 408.9 kB / 334.4 MB, free: 10.12 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.362e-05/0.3493, allocations: 29.7 kB / 334.5 MB, free: 10.09 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.3494, allocations: 7.938 kB / 334.5 MB, free: 10.08 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003799/0.3498, allocations: 80.89 kB / 334.5 MB, free: 9.996 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003702/0.3501, allocations: 51.91 kB / 334.6 MB, free: 9.945 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007408/0.3509, allocations: 0.6032 MB / 335.2 MB, free: 9.316 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004448/0.3514, allocations: 36.05 kB / 335.2 MB, free: 9.281 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.3514, allocations: 12 kB / 335.2 MB, free: 9.27 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.0002429/0.3517, allocations: 141.7 kB / 335.4 MB, free: 9.121 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.727e-05/0.3518, allocations: 19.72 kB / 335.4 MB, free: 9.102 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.768e-05/0.3519, allocations: 29.86 kB / 335.4 MB, free: 9.07 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3519, allocations: 4 kB / 335.4 MB, free: 9.066 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3519, allocations: 0 / 335.4 MB, free: 9.066 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.3519, allocations: 0 / 335.4 MB, free: 9.066 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.3538, allocations: 0.6824 MB / 336.1 MB, free: 8.324 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.3538, allocations: 0 / 336.1 MB, free: 8.324 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000389/0.3542, allocations: 43.97 kB / 336.2 MB, free: 8.281 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002508/0.3545, allocations: 68.81 kB / 336.2 MB, free: 8.211 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.43e-05/0.3545, allocations: 8 kB / 336.2 MB, free: 8.203 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006732/0.3552, allocations: 0.6069 MB / 336.8 MB, free: 7.57 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.3552, allocations: 0 / 336.8 MB, free: 7.57 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.3569, allocations: 0.5036 MB / 337.3 MB, free: 7.047 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.3571, allocations: 108.9 kB / 337.4 MB, free: 6.922 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.832e-05/0.3572, allocations: 11.98 kB / 337.5 MB, free: 6.91 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004162/0.3576, allocations: 27.97 kB / 337.5 MB, free: 6.883 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.3577, allocations: 35.95 kB / 337.5 MB, free: 6.848 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/0.3578, allocations: 11.98 kB / 337.5 MB, free: 6.836 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001787/0.358, allocations: 131.2 kB / 337.7 MB, free: 6.707 MB / 270.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.358, allocations: 0 / 337.7 MB, free: 6.707 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006364/0.3586, allocations: 75.98 kB / 337.7 MB, free: 6.633 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.0002712/0.3589, allocations: 127.4 kB / 337.9 MB, free: 6.5 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.3603, allocations: 344.9 kB / 338.2 MB, free: 6.152 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3603, allocations: 0 / 338.2 MB, free: 6.152 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005979/0.3609, allocations: 139.8 kB / 338.3 MB, free: 6.016 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007105/0.3616, allocations: 56.06 kB / 338.4 MB, free: 5.961 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/0.3639, allocations: 0.7346 MB / 339.1 MB, free: 5.203 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003962/0.3643, allocations: 0.7439 MB / 339.9 MB, free: 4.434 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0002004/0.3645, allocations: 25.94 kB / 339.9 MB, free: 4.406 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.817e-05/0.3646, allocations: 19.44 kB / 339.9 MB, free: 4.391 MB / 270.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3646, allocations: 0 / 339.9 MB, free: 4.391 MB / 270.1 MB Notification: Performance of Templates: time 0.01289/0.3775, allocations: 3.634 MB / 343.5 MB, free: 0.7539 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)