Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001335/0.001335, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001566/0.001566, allocations: 193.1 kB / 16.13 MB, free: 6.66 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.557/1.557, allocations: 205.1 MB / 222 MB, free: 4.727 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.001736/0.001736, allocations: 51.91 kB / 278 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2874, allocations: 46.62 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003261/0.2908, allocations: 2.258 MB / 326.9 MB, free: 160 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001323/0.2921, allocations: 0.7287 MB / 327.7 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.2923, allocations: 2.375 kB / 327.7 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002174/0.2925, allocations: 28.62 kB / 327.7 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.2926, allocations: 55.94 kB / 327.7 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.2929, allocations: 83.45 kB / 327.8 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002848/0.2932, allocations: 252.9 kB / 328.1 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.2934, allocations: 55.19 kB / 328.1 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.2935, allocations: 100.5 kB / 328.2 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.2937, allocations: 109.4 kB / 328.3 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.693e-05/0.2938, allocations: 12.34 kB / 328.3 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.2939, allocations: 58.11 kB / 328.4 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.597e-05/0.294, allocations: 47.39 kB / 328.4 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.2941, allocations: 110.2 kB / 328.5 MB, free: 15 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002805/0.2944, allocations: 262.8 kB / 328.8 MB, free: 14.81 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2944, allocations: 0 / 328.8 MB, free: 14.81 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2944, allocations: 0 / 328.8 MB, free: 14.81 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.2945, allocations: 1.375 kB / 328.8 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.0007982/0.2953, allocations: 0.509 MB / 329.3 MB, free: 14.33 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.2953, allocations: 9.031 kB / 329.3 MB, free: 14.33 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.737e-05/0.2954, allocations: 29.09 kB / 329.4 MB, free: 14.32 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.2957, allocations: 228.6 kB / 329.6 MB, free: 14.07 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.2957, allocations: 21.31 kB / 329.6 MB, free: 14.06 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.603e-05/0.2957, allocations: 20.97 kB / 329.6 MB, free: 14.05 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004293/0.2962, allocations: 220.2 kB / 329.8 MB, free: 13.9 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.421e-05/0.2962, allocations: 12.86 kB / 329.8 MB, free: 13.89 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.2962, allocations: 6.375 kB / 329.9 MB, free: 13.89 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.2963, allocations: 4.688 kB / 329.9 MB, free: 13.89 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.2966, allocations: 163.2 kB / 330 MB, free: 13.82 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.2978, allocations: 0.7813 MB / 330.8 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003699/0.2982, allocations: 141.2 kB / 330.9 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.2983, allocations: 74.77 kB / 331 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.2984, allocations: 6.172 kB / 331 MB, free: 12.99 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.2984, allocations: 32.69 kB / 331 MB, free: 12.95 MB / 270.1 MB Notification: Performance of pre-optimization done (n=18): time 1.152e-06/0.2984, allocations: 0 / 331 MB, free: 12.95 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.001906/0.3003, allocations: 0.9825 MB / 332 MB, free: 12.15 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.3004, allocations: 57.72 kB / 332.1 MB, free: 12.08 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.3006, allocations: 207.5 kB / 332.3 MB, free: 11.93 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.3007, allocations: 30.92 kB / 332.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.473e-05/0.3008, allocations: 137.5 kB / 332.5 MB, free: 11.77 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.21e-05/0.3008, allocations: 68.27 kB / 332.5 MB, free: 11.71 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.605e-05/0.3009, allocations: 52.47 kB / 332.6 MB, free: 11.67 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3011, allocations: 335.3 kB / 332.9 MB, free: 11.34 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.3012, allocations: 81.67 kB / 333 MB, free: 11.3 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.3014, allocations: 118.1 kB / 333.1 MB, free: 11.22 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.3017, allocations: 165.5 kB / 333.3 MB, free: 11.12 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3017, allocations: 1.094 kB / 333.3 MB, free: 11.12 MB / 270.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005293/0.3023, allocations: 296.5 kB / 333.5 MB, free: 10.89 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3023, allocations: 4 kB / 333.5 MB, free: 10.89 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.3023, allocations: 4 kB / 333.6 MB, free: 10.88 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/0.3026, allocations: 72.81 kB / 333.6 MB, free: 10.81 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.3028, allocations: 35.92 kB / 333.7 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004923/0.3033, allocations: 0.6187 MB / 334.3 MB, free: 10.13 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001941/0.3035, allocations: 23.97 kB / 334.3 MB, free: 10.11 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.3035, allocations: 11.94 kB / 334.3 MB, free: 10.09 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.000151/0.3037, allocations: 132.2 kB / 334.4 MB, free: 9.957 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.3037, allocations: 19.8 kB / 334.5 MB, free: 9.938 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.1e-05/0.3038, allocations: 25.88 kB / 334.5 MB, free: 9.91 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3038, allocations: 12 kB / 334.5 MB, free: 9.898 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3038, allocations: 0 / 334.5 MB, free: 9.898 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3038, allocations: 0 / 334.5 MB, free: 9.898 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008692/0.3047, allocations: 0.6022 MB / 335.1 MB, free: 9.23 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.3047, allocations: 3.984 kB / 335.1 MB, free: 9.227 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.3049, allocations: 35.98 kB / 335.1 MB, free: 9.191 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001696/0.305, allocations: 64.89 kB / 335.2 MB, free: 9.125 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.3051, allocations: 8 kB / 335.2 MB, free: 9.117 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004342/0.3055, allocations: 0.6186 MB / 335.8 MB, free: 8.473 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3055, allocations: 3.938 kB / 335.8 MB, free: 8.469 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006006/0.3061, allocations: 421.8 kB / 336.2 MB, free: 8.031 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.3062, allocations: 104.9 kB / 336.3 MB, free: 7.91 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.962e-05/0.3063, allocations: 8 kB / 336.4 MB, free: 7.902 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/0.3065, allocations: 31.91 kB / 336.4 MB, free: 7.871 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.541e-05/0.3066, allocations: 27.91 kB / 336.4 MB, free: 7.844 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.3066, allocations: 4 kB / 336.4 MB, free: 7.84 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001356/0.3067, allocations: 156 kB / 336.6 MB, free: 7.688 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3067, allocations: 0 / 336.6 MB, free: 7.688 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000348/0.3071, allocations: 75.92 kB / 336.6 MB, free: 7.613 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.0001966/0.3073, allocations: 115.2 kB / 336.8 MB, free: 7.492 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004519/0.3077, allocations: 207.6 kB / 337 MB, free: 7.289 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3078, allocations: 4 kB / 337 MB, free: 7.285 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002231/0.308, allocations: 95.89 kB / 337.1 MB, free: 7.191 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.3084, allocations: 35.77 kB / 337.1 MB, free: 7.156 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.3098, allocations: 0.7413 MB / 337.8 MB, free: 6.387 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003378/0.3101, allocations: 0.7443 MB / 338.6 MB, free: 5.617 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.18e-05/0.3102, allocations: 21.94 kB / 338.6 MB, free: 5.594 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.813e-05/0.3103, allocations: 19.44 kB / 338.6 MB, free: 5.574 MB / 270.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3103, allocations: 0 / 338.6 MB, free: 5.574 MB / 270.1 MB Notification: Performance of Templates: time 0.00695/0.3172, allocations: 2.919 MB / 341.5 MB, free: 2.656 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)