Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001006/0.001006, allocations: 87.73 kB / 16.31 MB, free: 6.449 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.00115/0.00115, allocations: 180.6 kB / 17.21 MB, free: 6.32 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.566/1.566, allocations: 205.4 MB / 223.4 MB, free: 5.48 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.0004641/0.0004641, allocations: 12 kB / 280.1 MB, free: 12.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2249, allocations: 47.59 MB / 327.7 MB, free: 1.457 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.001799/0.2267, allocations: 1.81 MB / 329.5 MB, free: 32 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.2279, allocations: 0.6973 MB / 330.2 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.228, allocations: 2.344 kB / 330.2 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.2282, allocations: 20.16 kB / 330.3 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001646/0.2284, allocations: 66.78 kB / 330.3 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.2286, allocations: 76.81 kB / 330.4 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002864/0.2289, allocations: 240.5 kB / 330.6 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.2291, allocations: 48 kB / 330.7 MB, free: 15.17 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/0.2293, allocations: 101.5 kB / 330.8 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001763/0.2295, allocations: 107 kB / 330.9 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.215e-05/0.2295, allocations: 14.81 kB / 330.9 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.2297, allocations: 51.86 kB / 330.9 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.909e-05/0.2297, allocations: 44.11 kB / 331 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.78e-05/0.2298, allocations: 64.12 kB / 331 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002412/0.2301, allocations: 194.2 kB / 331.2 MB, free: 14.8 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2301, allocations: 0 / 331.2 MB, free: 14.8 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2301, allocations: 1.125 kB / 331.2 MB, free: 14.8 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.2301, allocations: 0 / 331.2 MB, free: 14.8 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.0009399/0.2311, allocations: 0.5306 MB / 331.8 MB, free: 14.31 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.2311, allocations: 7.594 kB / 331.8 MB, free: 14.31 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.113e-05/0.2312, allocations: 32.73 kB / 331.8 MB, free: 14.29 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/0.2314, allocations: 230.4 kB / 332 MB, free: 14.04 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.2315, allocations: 24 kB / 332.1 MB, free: 14.03 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.823e-05/0.2315, allocations: 25.14 kB / 332.1 MB, free: 14.02 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004548/0.232, allocations: 237.5 kB / 332.3 MB, free: 13.86 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.232, allocations: 1.281 kB / 332.3 MB, free: 13.86 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.232, allocations: 9.031 kB / 332.3 MB, free: 13.86 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.232, allocations: 5.125 kB / 332.3 MB, free: 13.86 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004762/0.2325, allocations: 205.6 kB / 332.5 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009824/0.2335, allocations: 0.6805 MB / 333.2 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006035/0.2341, allocations: 217.4 kB / 333.4 MB, free: 13.06 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000238/0.2344, allocations: 104.1 kB / 333.5 MB, free: 13.01 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.2344, allocations: 7.172 kB / 333.5 MB, free: 13.01 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003915/0.2348, allocations: 174.3 kB / 333.7 MB, free: 12.89 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.743e-06/0.2348, allocations: 0 / 333.7 MB, free: 12.89 MB / 270.1 MB Notification: Performance of matching and sorting (n=26): time 0.002342/0.2372, allocations: 1.219 MB / 334.9 MB, free: 12 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.2372, allocations: 54.94 kB / 335 MB, free: 11.93 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.2374, allocations: 188.7 kB / 335.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.2375, allocations: 33.7 kB / 335.2 MB, free: 11.71 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.272e-05/0.2375, allocations: 140.2 kB / 335.3 MB, free: 11.57 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.287e-05/0.2376, allocations: 94.83 kB / 335.4 MB, free: 11.47 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.627e-05/0.2377, allocations: 4 kB / 335.4 MB, free: 11.47 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.2378, allocations: 338.8 kB / 335.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002673/0.2381, allocations: 108.3 kB / 335.9 MB, free: 11.02 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002747/0.2384, allocations: 152.3 kB / 336 MB, free: 10.86 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/0.2387, allocations: 131.1 kB / 336.1 MB, free: 10.73 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.2387, allocations: 4 kB / 336.1 MB, free: 10.72 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008244/0.2395, allocations: 421.2 kB / 336.6 MB, free: 10.3 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/0.2395, allocations: 33.7 kB / 336.6 MB, free: 10.26 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2396, allocations: 0 / 336.6 MB, free: 10.26 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002241/0.2398, allocations: 72.84 kB / 336.7 MB, free: 10.18 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.24, allocations: 55.91 kB / 336.7 MB, free: 10.13 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004997/0.2405, allocations: 0.6187 MB / 337.3 MB, free: 9.484 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002499/0.2408, allocations: 43.98 kB / 337.4 MB, free: 9.441 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.2408, allocations: 12 kB / 337.4 MB, free: 9.43 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.0001355/0.241, allocations: 142.1 kB / 337.5 MB, free: 9.281 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.272e-05/0.241, allocations: 23.8 kB / 337.5 MB, free: 9.258 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.317e-05/0.2411, allocations: 25.88 kB / 337.6 MB, free: 9.23 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2411, allocations: 0 / 337.6 MB, free: 9.23 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.2411, allocations: 0 / 337.6 MB, free: 9.23 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.2411, allocations: 4 kB / 337.6 MB, free: 9.227 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.2422, allocations: 0.6903 MB / 338.3 MB, free: 8.477 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.2422, allocations: 0 / 338.3 MB, free: 8.477 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002205/0.2425, allocations: 55.84 kB / 338.3 MB, free: 8.422 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001594/0.2426, allocations: 68.81 kB / 338.4 MB, free: 8.352 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.2427, allocations: 4 kB / 338.4 MB, free: 8.348 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004309/0.2431, allocations: 0.607 MB / 339 MB, free: 7.715 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2431, allocations: 0 / 339 MB, free: 7.715 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009262/0.244, allocations: 0.5272 MB / 339.5 MB, free: 7.168 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.2442, allocations: 112.8 kB / 339.6 MB, free: 7.039 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.2442, allocations: 11.95 kB / 339.6 MB, free: 7.027 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.2444, allocations: 47.91 kB / 339.7 MB, free: 6.98 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.938e-05/0.2445, allocations: 31.94 kB / 339.7 MB, free: 6.949 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.2446, allocations: 15.98 kB / 339.7 MB, free: 6.934 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.2447, allocations: 135.2 kB / 339.9 MB, free: 6.801 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2447, allocations: 0 / 339.9 MB, free: 6.801 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003371/0.245, allocations: 75.98 kB / 339.9 MB, free: 6.727 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.000174/0.2452, allocations: 111.2 kB / 340.1 MB, free: 6.609 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007253/0.246, allocations: 343.7 kB / 340.4 MB, free: 6.262 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.246, allocations: 0 / 340.4 MB, free: 6.262 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003352/0.2463, allocations: 155.8 kB / 340.5 MB, free: 6.109 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.2467, allocations: 44.34 kB / 340.6 MB, free: 6.066 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.2482, allocations: 0.7855 MB / 341.4 MB, free: 5.254 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/0.2486, allocations: 0.7518 MB / 342.1 MB, free: 4.477 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.2487, allocations: 17.95 kB / 342.1 MB, free: 4.461 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.184e-05/0.2488, allocations: 19.44 kB / 342.2 MB, free: 4.445 MB / 270.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2488, allocations: 0 / 342.2 MB, free: 4.445 MB / 270.1 MB Notification: Performance of Templates: time 0.007559/0.2563, allocations: 3.321 MB / 345.5 MB, free: 1.125 MB / 270.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1)