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.001232/0.001232, allocations: 112.6 kB / 17.06 MB, free: 5.973 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.001056/0.001057, allocations: 200 kB / 18 MB, free: 5.055 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 / 223.9 MB, free: 12.22 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.001211/0.001211, allocations: 43.94 kB / 327.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1164, allocations: 46.61 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00349/0.12, allocations: 2.169 MB / 376.6 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.1213, allocations: 0.7408 MB / 377.4 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.1214, allocations: 4 kB / 377.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.1216, allocations: 31.66 kB / 377.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001727/0.1218, allocations: 71.47 kB / 377.5 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.1222, allocations: 111.7 kB / 377.6 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002885/0.1225, allocations: 275.4 kB / 377.9 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.1226, allocations: 56.34 kB / 377.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.1228, allocations: 127.5 kB / 378 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.123, allocations: 123.5 kB / 378.2 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.73e-05/0.1231, allocations: 20 kB / 378.2 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.1232, allocations: 71.95 kB / 378.2 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.934e-05/0.1233, allocations: 55.81 kB / 378.3 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.1234, allocations: 115.4 kB / 378.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003416/0.1238, allocations: 283 kB / 378.7 MB, free: 344 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1238, allocations: 3.984 kB / 378.7 MB, free: 340 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1238, allocations: 0 / 378.7 MB, free: 340 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1238, allocations: 0 / 378.7 MB, free: 340 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.229/0.3528, allocations: 0.5549 MB / 379.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.3529, allocations: 9.688 kB / 379.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.383e-05/0.353, allocations: 25.77 kB / 379.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/0.3534, allocations: 238.8 kB / 379.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.3535, allocations: 11.91 kB / 379.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.139e-05/0.3535, allocations: 23.89 kB / 379.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005259/0.3541, allocations: 236.1 kB / 379.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.3541, allocations: 1.375 kB / 379.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.3541, allocations: 11.88 kB / 379.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.3541, allocations: 5.5 kB / 379.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004889/0.3546, allocations: 199.4 kB / 380 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009737/0.3556, allocations: 0.6571 MB / 380.6 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006337/0.3563, allocations: 199 kB / 380.8 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002368/0.3565, allocations: 107.2 kB / 380.9 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.3565, allocations: 3.359 kB / 381 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003722/0.3569, allocations: 162.6 kB / 381.1 MB, free: 12.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.984e-06/0.3569, allocations: 1.375 kB / 381.1 MB, free: 12.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002819/0.3598, allocations: 1.151 MB / 382.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.3598, allocations: 59.42 kB / 382.3 MB, free: 11.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.36, allocations: 187.8 kB / 382.5 MB, free: 11.51 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.3601, allocations: 35.42 kB / 382.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.359e-05/0.3601, allocations: 139.1 kB / 382.7 MB, free: 11.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.848e-05/0.3602, allocations: 84.78 kB / 382.8 MB, free: 11.29 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.3603, allocations: 67.41 kB / 382.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.571e-05/0.3604, allocations: 331 kB / 383.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002826/0.3607, allocations: 102.5 kB / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003098/0.361, allocations: 147.9 kB / 383.4 MB, free: 10.83 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005296/0.3616, allocations: 252 kB / 383.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3616, allocations: 1.969 kB / 383.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009129/0.3625, allocations: 404.8 kB / 384 MB, free: 10.51 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.007e-05/0.3626, allocations: 32.47 kB / 384.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3626, allocations: 5.516 kB / 384.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000266/0.3628, allocations: 74.38 kB / 384.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.3631, allocations: 53.84 kB / 384.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004415/0.3635, allocations: 0.6154 MB / 384.8 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.3638, allocations: 31.56 kB / 384.8 MB, free: 9.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.3638, allocations: 15.03 kB / 384.9 MB, free: 9.867 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.0001326/0.364, allocations: 148.5 kB / 385 MB, free: 9.727 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.658e-05/0.364, allocations: 18.22 kB / 385 MB, free: 9.719 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.741e-05/0.3641, allocations: 28.33 kB / 385 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.3641, allocations: 2.562 kB / 385.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3641, allocations: 0 / 385.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3641, allocations: 2.938 kB / 385.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.3652, allocations: 0.6763 MB / 385.7 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3652, allocations: 1.219 kB / 385.7 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002099/0.3654, allocations: 44.95 kB / 385.8 MB, free: 9.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001577/0.3656, allocations: 68.05 kB / 385.8 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.3656, allocations: 7.016 kB / 385.8 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003187/0.3659, allocations: 0.6057 MB / 386.5 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3659, allocations: 1.062 kB / 386.5 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009475/0.3669, allocations: 0.508 MB / 387 MB, free: 8.387 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.216e-05/0.367, allocations: 111.4 kB / 387.1 MB, free: 8.277 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.933e-05/0.367, allocations: 6.125 kB / 387.1 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002493/0.3673, allocations: 28.94 kB / 387.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.3674, allocations: 34.47 kB / 387.1 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/0.3674, allocations: 11.02 kB / 387.2 MB, free: 8.258 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001126/0.3676, allocations: 143.8 kB / 387.3 MB, free: 8.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3676, allocations: 3.938 kB / 387.3 MB, free: 8.156 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003685/0.3679, allocations: 68.53 kB / 387.4 MB, free: 8.148 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.0001934/0.3681, allocations: 133.1 kB / 387.5 MB, free: 8.051 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007969/0.369, allocations: 329.7 kB / 387.8 MB, free: 7.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.369, allocations: 4.125 kB / 387.8 MB, free: 7.906 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003395/0.3693, allocations: 143.2 kB / 388 MB, free: 7.867 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003903/0.3697, allocations: 41.05 kB / 388 MB, free: 7.852 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.371, allocations: 0.6505 MB / 388.6 MB, free: 7.441 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002029/0.3712, allocations: 0.7372 MB / 389.4 MB, free: 6.746 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.585e-05/0.3713, allocations: 22.16 kB / 389.4 MB, free: 6.738 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.587e-05/0.3713, allocations: 19.94 kB / 389.4 MB, free: 6.73 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3713, allocations: 0 / 389.4 MB, free: 6.73 MB / 318.1 MB Notification: Performance of Templates: time 0.009115/0.3805, allocations: 3.851 MB / 393.3 MB, free: 6.438 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)