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.0008964/0.0008965, allocations: 89.41 kB / 16.3 MB, free: 5.656 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.0009156/0.0009156, allocations: 183.9 kB / 17.2 MB, free: 5.59 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.4 MB / 223.4 MB, free: 13.17 MB / 190.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.0004544/0.0004546, allocations: 8 kB / 280.1 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1126, allocations: 47.58 MB / 327.7 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002313/0.1149, allocations: 1.746 MB / 329.4 MB, free: 2.348 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.1161, allocations: 0.7143 MB / 330.1 MB, free: 1.625 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.633e-05/0.1162, allocations: 0 / 330.1 MB, free: 1.625 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.1163, allocations: 19.84 kB / 330.2 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.1165, allocations: 79.78 kB / 330.2 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.1168, allocations: 83.77 kB / 330.3 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002454/0.1171, allocations: 176.1 kB / 330.5 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.1173, allocations: 40.56 kB / 330.5 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.1174, allocations: 99.67 kB / 330.6 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/0.1176, allocations: 119.6 kB / 330.8 MB, free: 1.02 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.1177, allocations: 15.94 kB / 330.8 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.1178, allocations: 47.95 kB / 330.8 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.349e-05/0.1178, allocations: 39.83 kB / 330.9 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.483e-05/0.1179, allocations: 65.58 kB / 330.9 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.1182, allocations: 191.8 kB / 331.1 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1182, allocations: 0 / 331.1 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1182, allocations: 0 / 331.1 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1182, allocations: 0 / 331.1 MB, free: 0.6602 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.001015/0.1192, allocations: 0.5353 MB / 331.6 MB, free: 72 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1192, allocations: 8.031 kB / 331.6 MB, free: 64 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.449e-05/0.1193, allocations: 23.72 kB / 331.7 MB, free: 40 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.1196, allocations: 242.5 kB / 331.9 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.195e-05/0.1196, allocations: 16 kB / 331.9 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.048e-05/0.1197, allocations: 20 kB / 331.9 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.1202, allocations: 235.2 kB / 332.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.1202, allocations: 0 / 332.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.429e-05/0.1203, allocations: 4 kB / 332.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.1203, allocations: 8 kB / 332.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004883/0.1208, allocations: 211.8 kB / 332.4 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.1218, allocations: 0.6914 MB / 333.1 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005831/0.1224, allocations: 210.5 kB / 333.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.1225, allocations: 0 / 333.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000409/0.1229, allocations: 179.5 kB / 333.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.943e-06/0.1229, allocations: 0 / 333.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002458/0.1254, allocations: 1.207 MB / 334.7 MB, free: 12.8 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.1254, allocations: 63.34 kB / 334.7 MB, free: 12.72 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.1256, allocations: 202.8 kB / 334.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.1256, allocations: 33.7 kB / 335 MB, free: 12.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.1258, allocations: 132.3 kB / 335.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.439e-05/0.1258, allocations: 86.83 kB / 335.2 MB, free: 12.26 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.594e-05/0.1259, allocations: 4 kB / 335.2 MB, free: 12.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.126, allocations: 330.8 kB / 335.5 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000272/0.1263, allocations: 120.2 kB / 335.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002823/0.1266, allocations: 148.3 kB / 335.8 MB, free: 11.64 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.1269, allocations: 135.1 kB / 335.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1269, allocations: 4 kB / 335.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008269/0.1277, allocations: 413.2 kB / 336.3 MB, free: 11.09 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.386e-05/0.1278, allocations: 37.66 kB / 336.3 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.1278, allocations: 0 / 336.3 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002499/0.128, allocations: 76.81 kB / 336.4 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.1283, allocations: 55.91 kB / 336.5 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004906/0.1288, allocations: 0.6147 MB / 337.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.1291, allocations: 48.05 kB / 337.1 MB, free: 10.22 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.1291, allocations: 12 kB / 337.1 MB, free: 10.21 MB / 286.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.000159/0.1293, allocations: 142 kB / 337.3 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.846e-05/0.1293, allocations: 19.81 kB / 337.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.147e-05/0.1294, allocations: 25.86 kB / 337.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1294, allocations: 4 kB / 337.3 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1294, allocations: 4 kB / 337.3 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.1294, allocations: 0 / 337.3 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.1305, allocations: 0.6903 MB / 338 MB, free: 9.258 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1305, allocations: 3.953 kB / 338 MB, free: 9.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002078/0.1307, allocations: 47.91 kB / 338.1 MB, free: 9.207 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001716/0.1309, allocations: 68.88 kB / 338.1 MB, free: 9.137 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.1309, allocations: 15.94 kB / 338.2 MB, free: 9.121 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004204/0.1314, allocations: 0.607 MB / 338.8 MB, free: 8.488 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.1314, allocations: 0 / 338.8 MB, free: 8.488 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009429/0.1323, allocations: 0.5194 MB / 339.3 MB, free: 7.949 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.72e-05/0.1324, allocations: 112.9 kB / 339.4 MB, free: 7.82 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.068e-05/0.1325, allocations: 11.89 kB / 339.4 MB, free: 7.809 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.1327, allocations: 39.95 kB / 339.4 MB, free: 7.77 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.793e-05/0.1328, allocations: 39.94 kB / 339.5 MB, free: 7.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.1329, allocations: 4 kB / 339.5 MB, free: 7.727 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001107/0.133, allocations: 143.2 kB / 339.6 MB, free: 7.586 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.133, allocations: 0 / 339.6 MB, free: 7.586 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003374/0.1333, allocations: 68 kB / 339.7 MB, free: 7.52 MB / 286.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.0001994/0.1335, allocations: 119.2 kB / 339.8 MB, free: 7.395 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007567/0.1343, allocations: 347.6 kB / 340.2 MB, free: 7.043 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1343, allocations: 0 / 340.2 MB, free: 7.043 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003408/0.1347, allocations: 151.9 kB / 340.3 MB, free: 6.895 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.135, allocations: 39.75 kB / 340.3 MB, free: 6.859 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.1363, allocations: 0.7934 MB / 341.1 MB, free: 6.039 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/0.1366, allocations: 0.7518 MB / 341.9 MB, free: 5.262 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.374e-05/0.1367, allocations: 21.94 kB / 341.9 MB, free: 5.242 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.985e-05/0.1368, allocations: 15.44 kB / 341.9 MB, free: 5.227 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1368, allocations: 4 kB / 341.9 MB, free: 5.223 MB / 286.1 MB Notification: Performance of Templates: time 0.006714/0.1435, allocations: 3.308 MB / 345.2 MB, free: 1.918 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: