Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00141/0.00141, 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.001358/0.001358, allocations: 191.4 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.48/1.48, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.001752/0.001752, allocations: 55.91 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3087, allocations: 46.63 MB / 324.8 MB, free: 1.961 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003692/0.3125, allocations: 2.257 MB / 327.1 MB, free: 196 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.3139, allocations: 0.7169 MB / 327.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.3141, allocations: 2.844 kB / 327.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.3143, allocations: 25.28 kB / 327.8 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.3145, allocations: 58.55 kB / 327.9 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003422/0.3148, allocations: 91 kB / 328 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003113/0.3152, allocations: 259.2 kB / 328.2 MB, free: 15.33 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.3153, allocations: 68.67 kB / 328.3 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.3155, allocations: 101.5 kB / 328.4 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.3157, allocations: 125.9 kB / 328.5 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.491e-05/0.3158, allocations: 18.62 kB / 328.6 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.3159, allocations: 66.05 kB / 328.6 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.8e-05/0.316, allocations: 55.36 kB / 328.7 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.3161, allocations: 110 kB / 328.8 MB, free: 15 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003494/0.3165, allocations: 274.9 kB / 329 MB, free: 14.81 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3165, allocations: 0 / 329 MB, free: 14.81 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3165, allocations: 1.125 kB / 329 MB, free: 14.81 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.3165, allocations: 0 / 329 MB, free: 14.81 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008867/0.3174, allocations: 0.5171 MB / 329.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3175, allocations: 9.875 kB / 329.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.795e-05/0.3175, allocations: 24.34 kB / 329.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.3178, allocations: 231.9 kB / 329.8 MB, free: 14.06 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.3179, allocations: 17.97 kB / 329.8 MB, free: 14.05 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.307e-05/0.3179, allocations: 20.44 kB / 329.9 MB, free: 14.05 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004204/0.3184, allocations: 225.1 kB / 330.1 MB, free: 13.89 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.3184, allocations: 9.094 kB / 330.1 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.65e-05/0.3184, allocations: 14.36 kB / 330.1 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.3184, allocations: 5.594 kB / 330.1 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003452/0.3188, allocations: 157.8 kB / 330.3 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.32, allocations: 0.7859 MB / 331.1 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003956/0.3204, allocations: 133.2 kB / 331.2 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.3206, allocations: 66.91 kB / 331.2 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.3206, allocations: 1.438 kB / 331.2 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.3206, allocations: 41.14 kB / 331.3 MB, free: 12.95 MB / 270.1 MB Notification: Performance of pre-optimization done (n=18): time 1.523e-06/0.3206, allocations: 4 kB / 331.3 MB, free: 12.95 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.002071/0.3227, allocations: 0.9777 MB / 332.3 MB, free: 12.14 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.3228, allocations: 53.69 kB / 332.3 MB, free: 12.08 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.323, allocations: 211.7 kB / 332.5 MB, free: 11.93 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.3231, allocations: 30.98 kB / 332.6 MB, free: 11.89 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.792e-05/0.3232, allocations: 137.9 kB / 332.7 MB, free: 11.76 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.762e-05/0.3232, allocations: 71.69 kB / 332.8 MB, free: 11.7 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.642e-05/0.3233, allocations: 56.59 kB / 332.8 MB, free: 11.66 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3235, allocations: 332.6 kB / 333.1 MB, free: 11.33 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.3237, allocations: 76.61 kB / 333.2 MB, free: 11.29 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.3239, allocations: 120.8 kB / 333.3 MB, free: 11.21 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.3242, allocations: 172.4 kB / 333.5 MB, free: 11.06 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3242, allocations: 0 / 333.5 MB, free: 11.06 MB / 270.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004785/0.3247, allocations: 287.8 kB / 333.8 MB, free: 10.77 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.3247, allocations: 6.344 kB / 333.8 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.3247, allocations: 8 kB / 333.8 MB, free: 10.76 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003382/0.3251, allocations: 72.88 kB / 333.9 MB, free: 10.69 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.3252, allocations: 39.92 kB / 333.9 MB, free: 10.65 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005608/0.3258, allocations: 0.6187 MB / 334.5 MB, free: 10 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.326, allocations: 23.97 kB / 334.6 MB, free: 9.98 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.326, allocations: 8.062 kB / 334.6 MB, free: 9.973 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0001398/0.3262, allocations: 137.8 kB / 334.7 MB, free: 9.828 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.482e-05/0.3262, allocations: 19.75 kB / 334.7 MB, free: 9.809 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.254e-05/0.3263, allocations: 25.91 kB / 334.7 MB, free: 9.781 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.3263, allocations: 11.92 kB / 334.8 MB, free: 9.77 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.3263, allocations: 0 / 334.8 MB, free: 9.77 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3263, allocations: 0 / 334.8 MB, free: 9.77 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008386/0.3272, allocations: 0.6022 MB / 335.4 MB, free: 9.102 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3272, allocations: 7.922 kB / 335.4 MB, free: 9.094 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.3273, allocations: 31.92 kB / 335.4 MB, free: 9.062 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001697/0.3275, allocations: 72.86 kB / 335.5 MB, free: 8.988 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/0.3275, allocations: 8 kB / 335.5 MB, free: 8.98 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004402/0.328, allocations: 0.6147 MB / 336.1 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.328, allocations: 0 / 336.1 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005939/0.3286, allocations: 413.7 kB / 336.5 MB, free: 7.91 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.264e-05/0.3287, allocations: 108.9 kB / 336.6 MB, free: 7.785 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.3287, allocations: 4 kB / 336.6 MB, free: 7.781 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.3289, allocations: 15.98 kB / 336.6 MB, free: 7.766 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001743/0.3291, allocations: 31.95 kB / 336.6 MB, free: 7.734 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.3291, allocations: 11.94 kB / 336.7 MB, free: 7.723 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001451/0.3293, allocations: 156 kB / 336.8 MB, free: 7.57 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3293, allocations: 0 / 336.8 MB, free: 7.57 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003874/0.3297, allocations: 67.94 kB / 336.9 MB, free: 7.504 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002124/0.3299, allocations: 111.2 kB / 337 MB, free: 7.387 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000516/0.3304, allocations: 215.8 kB / 337.2 MB, free: 7.176 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3304, allocations: 4 kB / 337.2 MB, free: 7.172 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002156/0.3307, allocations: 103.2 kB / 337.3 MB, free: 7.074 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004009/0.3311, allocations: 31.77 kB / 337.3 MB, free: 7.043 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.3327, allocations: 0.7519 MB / 338.1 MB, free: 6.262 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.333, allocations: 0.74 MB / 338.8 MB, free: 5.496 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.881e-05/0.3332, allocations: 29.94 kB / 338.9 MB, free: 5.465 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.5e-05/0.3332, allocations: 15.44 kB / 338.9 MB, free: 5.449 MB / 270.1 MB Notification: Performance of SimCode: time 2.885e-06/0.3332, allocations: 0 / 338.9 MB, free: 5.449 MB / 270.1 MB Notification: Performance of Templates: time 0.007445/0.3407, allocations: 3.074 MB / 341.9 MB, free: 2.371 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)