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.001173/0.001174, allocations: 94.66 kB / 15.06 MB, free: 1.086 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.001498/0.001499, allocations: 168.7 kB / 15.95 MB, free: 208 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.528/1.528, allocations: 205.4 MB / 222.1 MB, free: 5.898 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.0006295/0.0006295, allocations: 10.81 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3029, allocations: 47.59 MB / 326.5 MB, free: 1.359 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00369/0.3067, allocations: 1.802 MB / 328.3 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002119/0.3088, allocations: 0.697 MB / 329 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002187/0.3091, allocations: 2.281 kB / 329 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.3093, allocations: 20.08 kB / 329 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003131/0.3097, allocations: 55.25 kB / 329 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005032/0.3102, allocations: 84.47 kB / 329.1 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004908/0.3107, allocations: 248.5 kB / 329.4 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.3109, allocations: 40.66 kB / 329.4 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003336/0.3113, allocations: 105.2 kB / 329.5 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003192/0.3116, allocations: 111 kB / 329.6 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.3117, allocations: 11.47 kB / 329.6 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.3119, allocations: 51.44 kB / 329.7 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.473e-05/0.312, allocations: 40.2 kB / 329.7 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.3122, allocations: 64.98 kB / 329.8 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003697/0.3126, allocations: 201.1 kB / 330 MB, free: 14.71 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.457e-06/0.3126, allocations: 0 / 330 MB, free: 14.71 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3126, allocations: 5.438 kB / 330 MB, free: 14.71 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.3126, allocations: 0 / 330 MB, free: 14.71 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.001487/0.3141, allocations: 0.5372 MB / 330.5 MB, free: 14.2 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.3142, allocations: 8.562 kB / 330.5 MB, free: 14.2 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.3143, allocations: 23.97 kB / 330.6 MB, free: 14.19 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004856/0.3148, allocations: 230.6 kB / 330.8 MB, free: 13.95 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.544e-05/0.3149, allocations: 12.41 kB / 330.8 MB, free: 13.94 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.317e-05/0.315, allocations: 25.31 kB / 330.8 MB, free: 13.93 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008174/0.3158, allocations: 241.3 kB / 331.1 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.501e-05/0.3159, allocations: 1.312 kB / 331.1 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.131e-05/0.3159, allocations: 9.016 kB / 331.1 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.316, allocations: 5.281 kB / 331.1 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009165/0.3169, allocations: 209.7 kB / 331.3 MB, free: 13.68 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.3187, allocations: 0.676 MB / 332 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.3197, allocations: 213.4 kB / 332.2 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004777/0.3202, allocations: 113.3 kB / 332.3 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.3203, allocations: 6.281 kB / 332.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007179/0.321, allocations: 162.1 kB / 332.4 MB, free: 12.8 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 3.597e-06/0.3211, allocations: 1.094 kB / 332.4 MB, free: 12.8 MB / 270.1 MB Notification: Performance of matching and sorting (n=26): time 0.004382/0.3254, allocations: 1.223 MB / 333.7 MB, free: 11.91 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/0.3255, allocations: 54.59 kB / 333.7 MB, free: 11.85 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.3259, allocations: 193.3 kB / 333.9 MB, free: 11.7 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.546e-05/0.326, allocations: 32.02 kB / 333.9 MB, free: 11.66 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.3261, allocations: 136.9 kB / 334.1 MB, free: 11.54 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.3262, allocations: 86.2 kB / 334.2 MB, free: 11.46 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.544e-05/0.3263, allocations: 9 kB / 334.2 MB, free: 11.45 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.3265, allocations: 340.3 kB / 334.5 MB, free: 11.12 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005036/0.327, allocations: 110 kB / 334.6 MB, free: 11.04 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005806/0.3276, allocations: 152.3 kB / 334.7 MB, free: 10.88 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005392/0.3282, allocations: 139 kB / 334.9 MB, free: 10.74 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3282, allocations: 0 / 334.9 MB, free: 10.74 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001563/0.3298, allocations: 421.2 kB / 335.3 MB, free: 10.31 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.616e-05/0.3299, allocations: 33.69 kB / 335.3 MB, free: 10.27 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.3299, allocations: 7.938 kB / 335.3 MB, free: 10.27 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003536/0.3303, allocations: 64.89 kB / 335.4 MB, free: 10.2 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003985/0.3307, allocations: 59.89 kB / 335.5 MB, free: 10.14 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008262/0.3315, allocations: 0.6109 MB / 336.1 MB, free: 9.504 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004869/0.3321, allocations: 47.97 kB / 336.1 MB, free: 9.457 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.3321, allocations: 8 kB / 336.1 MB, free: 9.449 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.0002371/0.3324, allocations: 146 kB / 336.3 MB, free: 9.297 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.852e-05/0.3324, allocations: 19.81 kB / 336.3 MB, free: 9.277 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.212e-05/0.3325, allocations: 29.88 kB / 336.3 MB, free: 9.246 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.3326, allocations: 4 kB / 336.3 MB, free: 9.242 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.497e-06/0.3326, allocations: 3.984 kB / 336.3 MB, free: 9.238 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.3326, allocations: 0 / 336.3 MB, free: 9.238 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.3347, allocations: 0.6903 MB / 337 MB, free: 8.488 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3347, allocations: 0 / 337 MB, free: 8.488 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000422/0.3351, allocations: 43.97 kB / 337.1 MB, free: 8.445 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003125/0.3355, allocations: 72.84 kB / 337.1 MB, free: 8.371 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.419e-05/0.3355, allocations: 7.984 kB / 337.1 MB, free: 8.363 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007648/0.3363, allocations: 0.6069 MB / 337.7 MB, free: 7.73 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3363, allocations: 0 / 337.7 MB, free: 7.73 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001891/0.3382, allocations: 0.5272 MB / 338.3 MB, free: 7.184 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001739/0.3384, allocations: 108.9 kB / 338.4 MB, free: 7.059 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.02e-05/0.3385, allocations: 11.95 kB / 338.4 MB, free: 7.047 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004782/0.339, allocations: 39.95 kB / 338.4 MB, free: 7.008 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.3392, allocations: 35.94 kB / 338.5 MB, free: 6.973 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.36e-05/0.3392, allocations: 12 kB / 338.5 MB, free: 6.961 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.3394, allocations: 139.2 kB / 338.6 MB, free: 6.824 MB / 270.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3395, allocations: 0 / 338.6 MB, free: 6.824 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006635/0.3401, allocations: 72 kB / 338.7 MB, free: 6.754 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.0002613/0.3404, allocations: 119.2 kB / 338.8 MB, free: 6.629 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.3418, allocations: 335.8 kB / 339.1 MB, free: 6.289 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.3418, allocations: 0 / 339.1 MB, free: 6.289 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006721/0.3425, allocations: 159.8 kB / 339.3 MB, free: 6.133 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006812/0.3432, allocations: 40.09 kB / 339.3 MB, free: 6.094 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/0.3455, allocations: 0.8014 MB / 340.1 MB, free: 5.266 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.346, allocations: 0.744 MB / 340.9 MB, free: 4.496 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.3462, allocations: 21.95 kB / 340.9 MB, free: 4.477 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.063e-05/0.3463, allocations: 15.44 kB / 340.9 MB, free: 4.465 MB / 270.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3463, allocations: 0 / 340.9 MB, free: 4.465 MB / 270.1 MB Notification: Performance of Templates: time 0.01296/0.3593, allocations: 3.325 MB / 344.2 MB, free: 1.141 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)