Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.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.0008917/0.0008917, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0009359/0.0009359, allocations: 172.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.536/1.536, allocations: 205.4 MB / 222.1 MB, free: 5.465 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.0009094/0.0009099, allocations: 8 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2925, allocations: 47.6 MB / 326.5 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002054/0.2947, allocations: 1.802 MB / 328.3 MB, free: 0 / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.296, allocations: 0.6978 MB / 329 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.2962, allocations: 2.844 kB / 329 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.2964, allocations: 23.58 kB / 329 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.2966, allocations: 59.12 kB / 329.1 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003047/0.2969, allocations: 80.38 kB / 329.1 MB, free: 15.31 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002999/0.2972, allocations: 248.3 kB / 329.4 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.2973, allocations: 40.78 kB / 329.4 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001772/0.2975, allocations: 105.9 kB / 329.5 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001943/0.2977, allocations: 114.3 kB / 329.6 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.2978, allocations: 15.44 kB / 329.6 MB, free: 15 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.2979, allocations: 52.38 kB / 329.7 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.22e-05/0.298, allocations: 39.61 kB / 329.7 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.768e-05/0.298, allocations: 59.55 kB / 329.8 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.2983, allocations: 194.5 kB / 330 MB, free: 14.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.2984, allocations: 0 / 330 MB, free: 14.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2984, allocations: 3.938 kB / 330 MB, free: 14.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.2984, allocations: 1.031 kB / 330 MB, free: 14.77 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.000947/0.2993, allocations: 0.5335 MB / 330.5 MB, free: 14.27 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.2994, allocations: 8.656 kB / 330.5 MB, free: 14.27 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.658e-05/0.2994, allocations: 28.06 kB / 330.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002679/0.2997, allocations: 230.3 kB / 330.8 MB, free: 14 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/0.2998, allocations: 16.81 kB / 330.8 MB, free: 14 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.736e-05/0.2998, allocations: 24.91 kB / 330.8 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000515/0.3003, allocations: 240.6 kB / 331.1 MB, free: 13.83 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.3004, allocations: 1.094 kB / 331.1 MB, free: 13.83 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.3004, allocations: 10.08 kB / 331.1 MB, free: 13.82 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.3004, allocations: 4.656 kB / 331.1 MB, free: 13.82 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000482/0.3009, allocations: 206.6 kB / 331.3 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.3019, allocations: 0.6721 MB / 332 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005791/0.3025, allocations: 212.9 kB / 332.2 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002361/0.3027, allocations: 113.3 kB / 332.3 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.3028, allocations: 2.094 kB / 332.3 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004058/0.3032, allocations: 166.9 kB / 332.4 MB, free: 12.87 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.3032, allocations: 0 / 332.4 MB, free: 12.87 MB / 270.1 MB Notification: Performance of matching and sorting (n=26): time 0.002475/0.3057, allocations: 1.224 MB / 333.7 MB, free: 11.97 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/0.3057, allocations: 60.94 kB / 333.7 MB, free: 11.9 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.306, allocations: 190.9 kB / 333.9 MB, free: 11.71 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.306, allocations: 33.7 kB / 333.9 MB, free: 11.67 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.3061, allocations: 136.2 kB / 334.1 MB, free: 11.53 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.065e-05/0.3062, allocations: 94.77 kB / 334.2 MB, free: 11.44 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.62e-05/0.3062, allocations: 4 kB / 334.2 MB, free: 11.43 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3064, allocations: 338.8 kB / 334.5 MB, free: 11.09 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003479/0.3067, allocations: 108.3 kB / 334.6 MB, free: 10.98 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002849/0.307, allocations: 156.2 kB / 334.8 MB, free: 10.82 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002676/0.3073, allocations: 139.1 kB / 334.9 MB, free: 10.68 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3073, allocations: 4 kB / 334.9 MB, free: 10.68 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008109/0.3081, allocations: 413.2 kB / 335.3 MB, free: 10.26 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.842e-05/0.3082, allocations: 41.69 kB / 335.3 MB, free: 10.21 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3082, allocations: 0 / 335.3 MB, free: 10.21 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002377/0.3084, allocations: 64.83 kB / 335.4 MB, free: 10.14 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/0.3087, allocations: 55.89 kB / 335.5 MB, free: 10.09 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005046/0.3092, allocations: 0.6148 MB / 336.1 MB, free: 9.449 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002661/0.3095, allocations: 44 kB / 336.1 MB, free: 9.406 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.3095, allocations: 12 kB / 336.1 MB, free: 9.395 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.0001543/0.3097, allocations: 150.1 kB / 336.3 MB, free: 9.238 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.3097, allocations: 19.81 kB / 336.3 MB, free: 9.219 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.395e-05/0.3098, allocations: 25.88 kB / 336.3 MB, free: 9.191 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3098, allocations: 0 / 336.3 MB, free: 9.191 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3098, allocations: 3.984 kB / 336.3 MB, free: 9.188 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3098, allocations: 0 / 336.3 MB, free: 9.188 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.311, allocations: 0.6942 MB / 337 MB, free: 8.434 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.311, allocations: 0 / 337 MB, free: 8.434 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002097/0.3112, allocations: 43.97 kB / 337.1 MB, free: 8.391 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001651/0.3114, allocations: 64.83 kB / 337.1 MB, free: 8.324 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.3114, allocations: 8.031 kB / 337.1 MB, free: 8.316 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004735/0.3119, allocations: 0.611 MB / 337.7 MB, free: 7.68 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.3119, allocations: 3.984 kB / 337.7 MB, free: 7.676 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009456/0.3129, allocations: 0.5272 MB / 338.3 MB, free: 7.129 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.313, allocations: 108.9 kB / 338.4 MB, free: 7.004 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.534e-05/0.3131, allocations: 7.953 kB / 338.4 MB, free: 6.996 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.3133, allocations: 47.95 kB / 338.4 MB, free: 6.949 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.775e-05/0.3134, allocations: 31.94 kB / 338.5 MB, free: 6.918 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.3134, allocations: 4 kB / 338.5 MB, free: 6.914 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001272/0.3136, allocations: 151.1 kB / 338.6 MB, free: 6.766 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3136, allocations: 3.938 kB / 338.6 MB, free: 6.762 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003954/0.314, allocations: 68 kB / 338.7 MB, free: 6.695 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.0002328/0.3142, allocations: 123.2 kB / 338.8 MB, free: 6.566 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0008176/0.315, allocations: 335.8 kB / 339.1 MB, free: 6.227 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3151, allocations: 128 / 339.1 MB, free: 6.227 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003663/0.3154, allocations: 155.7 kB / 339.3 MB, free: 6.074 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/0.3159, allocations: 40.09 kB / 339.3 MB, free: 6.035 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.3175, allocations: 0.7975 MB / 340.1 MB, free: 5.211 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004403/0.318, allocations: 0.7479 MB / 340.9 MB, free: 4.438 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.3181, allocations: 21.94 kB / 340.9 MB, free: 4.418 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.898e-05/0.3182, allocations: 23.38 kB / 340.9 MB, free: 4.398 MB / 270.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3182, allocations: 0 / 340.9 MB, free: 4.398 MB / 270.1 MB Notification: Performance of Templates: time 0.007812/0.326, allocations: 3.301 MB / 344.2 MB, free: 1.098 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1)