Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001205/0.001205, allocations: 109.4 kB / 17.06 MB, free: 6.023 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.001267/0.001267, allocations: 191 kB / 18 MB, free: 5.105 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.569/1.569, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001382/0.001382, allocations: 51.92 kB / 327.9 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1411, allocations: 46.62 MB / 374.5 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00647/0.1476, allocations: 2.157 MB / 376.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002645/0.1503, allocations: 0.7408 MB / 377.4 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003011/0.1506, allocations: 4 kB / 377.4 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003041/0.1511, allocations: 35.66 kB / 377.4 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004852/0.1516, allocations: 71.47 kB / 377.5 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007473/0.1524, allocations: 107.7 kB / 377.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006335/0.153, allocations: 279.4 kB / 377.9 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000261/0.1533, allocations: 60.34 kB / 377.9 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003924/0.1537, allocations: 123.5 kB / 378 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000339/0.1541, allocations: 127.5 kB / 378.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.313e-05/0.1542, allocations: 20 kB / 378.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002432/0.1545, allocations: 71.94 kB / 378.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.1546, allocations: 47.84 kB / 378.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002132/0.1548, allocations: 119.4 kB / 378.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006096/0.1555, allocations: 287 kB / 378.7 MB, free: 360 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1555, allocations: 0 / 378.7 MB, free: 360 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1555, allocations: 0 / 378.7 MB, free: 360 kB / 318.1 MB Notification: Performance of Transformations before backend: time 2.188e-05/0.1555, allocations: 0 / 378.7 MB, free: 360 kB / 318.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.2047/0.3602, allocations: 0.561 MB / 379.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.3603, allocations: 9.891 kB / 379.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.848e-05/0.3604, allocations: 24.38 kB / 379.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000352/0.3607, allocations: 233 kB / 379.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.3608, allocations: 15.38 kB / 379.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.837e-05/0.3609, allocations: 24.3 kB / 379.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005437/0.3614, allocations: 234.9 kB / 379.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.3614, allocations: 2.031 kB / 379.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.663e-05/0.3615, allocations: 12 kB / 379.8 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.3615, allocations: 4.125 kB / 379.8 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004883/0.362, allocations: 196.4 kB / 380 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.3631, allocations: 0.6589 MB / 380.7 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006134/0.3637, allocations: 203.8 kB / 380.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002504/0.364, allocations: 103.5 kB / 381 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.364, allocations: 2.75 kB / 381 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004174/0.3644, allocations: 166.5 kB / 381.1 MB, free: 12.47 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.174e-06/0.3644, allocations: 1.375 kB / 381.1 MB, free: 12.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.00271/0.3671, allocations: 1.152 MB / 382.3 MB, free: 11.76 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.3672, allocations: 55.36 kB / 382.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001864/0.3674, allocations: 191.3 kB / 382.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.3674, allocations: 36.33 kB / 382.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.848e-05/0.3675, allocations: 136.2 kB / 382.7 MB, free: 11.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.941e-05/0.3676, allocations: 88.95 kB / 382.8 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.3677, allocations: 63.88 kB / 382.8 MB, free: 11.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.308e-05/0.3678, allocations: 331.2 kB / 383.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002526/0.368, allocations: 107.3 kB / 383.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002621/0.3683, allocations: 146.8 kB / 383.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004504/0.3687, allocations: 253.1 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3688, allocations: 0.5625 kB / 383.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008011/0.3696, allocations: 397.5 kB / 384 MB, free: 10.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.3696, allocations: 32.2 kB / 384.1 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3696, allocations: 5 kB / 384.1 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002446/0.3699, allocations: 82.42 kB / 384.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002106/0.3701, allocations: 48.53 kB / 384.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004264/0.3705, allocations: 0.6151 MB / 384.8 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002549/0.3708, allocations: 30.55 kB / 384.8 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.3708, allocations: 17.83 kB / 384.9 MB, free: 9.922 MB / 318.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.0001379/0.371, allocations: 144.4 kB / 385 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.587e-05/0.371, allocations: 18.44 kB / 385 MB, free: 9.777 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.65e-05/0.3711, allocations: 27.58 kB / 385.1 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3711, allocations: 2.719 kB / 385.1 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.3711, allocations: 0 / 385.1 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3711, allocations: 2.656 kB / 385.1 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.3722, allocations: 0.6804 MB / 385.7 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3723, allocations: 0 / 385.7 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002056/0.3725, allocations: 42.12 kB / 385.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001668/0.3726, allocations: 68.83 kB / 385.8 MB, free: 9.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.3727, allocations: 10.48 kB / 385.9 MB, free: 9.273 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003289/0.373, allocations: 0.6043 MB / 386.5 MB, free: 8.723 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.373, allocations: 1.625 kB / 386.5 MB, free: 8.723 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.374, allocations: 0.5115 MB / 387 MB, free: 8.445 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.3742, allocations: 110.9 kB / 387.1 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.109e-05/0.3742, allocations: 5.938 kB / 387.1 MB, free: 8.332 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.3745, allocations: 29.75 kB / 387.1 MB, free: 8.328 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.3746, allocations: 30.05 kB / 387.1 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.3746, allocations: 10.95 kB / 387.2 MB, free: 8.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001483/0.3748, allocations: 148.4 kB / 387.3 MB, free: 8.219 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3748, allocations: 0 / 387.3 MB, free: 8.219 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004277/0.3752, allocations: 68.09 kB / 387.4 MB, free: 8.211 MB / 318.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.0002608/0.3755, allocations: 133 kB / 387.5 MB, free: 8.113 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009397/0.3764, allocations: 334 kB / 387.8 MB, free: 7.969 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3765, allocations: 1.281 kB / 387.8 MB, free: 7.969 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004303/0.3769, allocations: 145.2 kB / 388 MB, free: 7.926 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000453/0.3774, allocations: 38.45 kB / 388 MB, free: 7.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.3792, allocations: 0.6466 MB / 388.7 MB, free: 7.504 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.3796, allocations: 0.7414 MB / 389.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001227/0.3797, allocations: 20.78 kB / 389.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.218e-05/0.3798, allocations: 18.95 kB / 389.4 MB, free: 6.793 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3798, allocations: 1.25 kB / 389.4 MB, free: 6.793 MB / 318.1 MB Notification: Performance of Templates: time 0.01104/0.3908, allocations: 3.852 MB / 393.3 MB, free: 6.5 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1)