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.001612/0.001612, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002038/0.002037, allocations: 197 kB / 16.53 MB, free: 6.664 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.575/1.575, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.00144/0.00144, allocations: 51.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2738, allocations: 46.64 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003372/0.2773, allocations: 2.163 MB / 327.5 MB, free: 164 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.2787, allocations: 0.7413 MB / 328.2 MB, free: 15.56 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.2788, allocations: 2.656 kB / 328.2 MB, free: 15.56 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002234/0.2791, allocations: 31.62 kB / 328.2 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.2793, allocations: 71.75 kB / 328.3 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004124/0.2797, allocations: 107 kB / 328.4 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003905/0.2801, allocations: 277.8 kB / 328.7 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.2803, allocations: 54.56 kB / 328.7 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002154/0.2805, allocations: 115.4 kB / 328.9 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002159/0.2808, allocations: 125.1 kB / 329 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.335e-05/0.2808, allocations: 19.94 kB / 329 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.281, allocations: 62.38 kB / 329.1 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.2811, allocations: 59.73 kB / 329.1 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.2812, allocations: 117.2 kB / 329.2 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004249/0.2817, allocations: 279 kB / 329.5 MB, free: 14.7 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2817, allocations: 1.031 kB / 329.5 MB, free: 14.7 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2817, allocations: 0 / 329.5 MB, free: 14.7 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.575e-06/0.2817, allocations: 0 / 329.5 MB, free: 14.7 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.00133/0.2831, allocations: 0.5616 MB / 330.1 MB, free: 14.18 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.2831, allocations: 8.406 kB / 330.1 MB, free: 14.18 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.142e-05/0.2832, allocations: 24.97 kB / 330.1 MB, free: 14.16 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/0.2835, allocations: 236.5 kB / 330.3 MB, free: 13.91 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.375e-05/0.2836, allocations: 12.28 kB / 330.3 MB, free: 13.91 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.879e-05/0.2837, allocations: 25.84 kB / 330.4 MB, free: 13.9 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006169/0.2843, allocations: 240.1 kB / 330.6 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.2843, allocations: 1.188 kB / 330.6 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.2844, allocations: 9.094 kB / 330.6 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.2844, allocations: 4.688 kB / 330.6 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005255/0.2849, allocations: 189.5 kB / 330.8 MB, free: 13.65 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.286, allocations: 0.673 MB / 331.5 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000689/0.2867, allocations: 201.4 kB / 331.7 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/0.287, allocations: 107.5 kB / 331.8 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.2871, allocations: 2.656 kB / 331.8 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004709/0.2876, allocations: 160.5 kB / 331.9 MB, free: 12.77 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.502e-06/0.2876, allocations: 7.875 kB / 331.9 MB, free: 12.77 MB / 270.1 MB Notification: Performance of matching and sorting (n=26): time 0.002811/0.2904, allocations: 1.145 MB / 333.1 MB, free: 11.84 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.616e-05/0.2905, allocations: 63.34 kB / 333.1 MB, free: 11.76 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.2907, allocations: 194.8 kB / 333.3 MB, free: 11.56 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.129e-05/0.2908, allocations: 33.69 kB / 333.4 MB, free: 11.52 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.2909, allocations: 136.3 kB / 333.5 MB, free: 11.39 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.857e-05/0.291, allocations: 86.73 kB / 333.6 MB, free: 11.3 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001419/0.2912, allocations: 69.69 kB / 333.7 MB, free: 11.23 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.2914, allocations: 338.8 kB / 334 MB, free: 10.89 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.2917, allocations: 100.3 kB / 334.1 MB, free: 10.79 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002854/0.292, allocations: 144.7 kB / 334.2 MB, free: 10.64 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004925/0.2925, allocations: 250.7 kB / 334.5 MB, free: 10.38 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2925, allocations: 0 / 334.5 MB, free: 10.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008188/0.2933, allocations: 412.9 kB / 334.9 MB, free: 9.957 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/0.2934, allocations: 29.7 kB / 334.9 MB, free: 9.922 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2934, allocations: 3.938 kB / 334.9 MB, free: 9.918 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002657/0.2936, allocations: 68.81 kB / 335 MB, free: 9.848 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.2939, allocations: 55.91 kB / 335 MB, free: 9.793 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000547/0.2944, allocations: 0.6111 MB / 335.6 MB, free: 9.156 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.2947, allocations: 31.97 kB / 335.7 MB, free: 9.125 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.901e-05/0.2947, allocations: 19.97 kB / 335.7 MB, free: 9.105 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 (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.0001566/0.2949, allocations: 137.7 kB / 335.8 MB, free: 8.961 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.145e-05/0.2949, allocations: 23.72 kB / 335.9 MB, free: 8.938 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.705e-05/0.295, allocations: 33.92 kB / 335.9 MB, free: 8.902 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.295, allocations: 0 / 335.9 MB, free: 8.902 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.295, allocations: 4 kB / 335.9 MB, free: 8.898 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.295, allocations: 0 / 335.9 MB, free: 8.898 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.2961, allocations: 0.6746 MB / 336.6 MB, free: 8.164 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.2962, allocations: 4 kB / 336.6 MB, free: 8.16 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002013/0.2964, allocations: 39.97 kB / 336.6 MB, free: 8.121 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001553/0.2965, allocations: 64.83 kB / 336.7 MB, free: 8.055 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.2966, allocations: 7.984 kB / 336.7 MB, free: 8.047 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004531/0.297, allocations: 0.6147 MB / 337.3 MB, free: 7.406 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.297, allocations: 0 / 337.3 MB, free: 7.406 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009424/0.298, allocations: 0.5036 MB / 337.8 MB, free: 6.883 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.2981, allocations: 112.9 kB / 337.9 MB, free: 6.754 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.28e-05/0.2981, allocations: 8 kB / 337.9 MB, free: 6.746 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.2984, allocations: 31.95 kB / 337.9 MB, free: 6.715 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.2985, allocations: 32.09 kB / 338 MB, free: 6.684 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.2985, allocations: 4 kB / 338 MB, free: 6.68 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001174/0.2986, allocations: 139.2 kB / 338.1 MB, free: 6.543 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2986, allocations: 0 / 338.1 MB, free: 6.543 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003416/0.299, allocations: 71.94 kB / 338.2 MB, free: 6.473 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 (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.0002129/0.2992, allocations: 135.5 kB / 338.3 MB, free: 6.332 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007634/0.3, allocations: 328.8 kB / 338.6 MB, free: 6 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.3, allocations: 4 kB / 338.6 MB, free: 5.996 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004036/0.3004, allocations: 147.9 kB / 338.8 MB, free: 5.852 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.3008, allocations: 35.92 kB / 338.8 MB, free: 5.816 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.3022, allocations: 0.6641 MB / 339.5 MB, free: 5.129 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.3025, allocations: 0.74 MB / 340.2 MB, free: 4.363 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.734e-05/0.3026, allocations: 21.95 kB / 340.2 MB, free: 4.34 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.949e-05/0.3027, allocations: 23.42 kB / 340.3 MB, free: 4.32 MB / 270.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3027, allocations: 0 / 340.3 MB, free: 4.32 MB / 270.1 MB Notification: Performance of Templates: time 0.007564/0.3103, allocations: 3.786 MB / 344.1 MB, free: 0.5312 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)