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.001183/0.001184, allocations: 101.5 kB / 16.5 MB, free: 6.645 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.001427/0.001428, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.446/1.446, allocations: 205.1 MB / 223.3 MB, free: 12.38 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.001199/0.001199, allocations: 47.92 kB / 279.3 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1064, allocations: 46.64 MB / 326 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003975/0.1104, allocations: 2.2 MB / 328.2 MB, free: 2.656 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.112, allocations: 0.7489 MB / 328.9 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.1121, allocations: 3.938 kB / 328.9 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001952/0.1124, allocations: 19.84 kB / 328.9 MB, free: 1.875 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.1126, allocations: 59.53 kB / 329 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003287/0.1129, allocations: 83.91 kB / 329.1 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.1132, allocations: 267.4 kB / 329.3 MB, free: 1.473 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.1134, allocations: 52.38 kB / 329.4 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.1137, allocations: 103.6 kB / 329.5 MB, free: 1.32 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.1139, allocations: 123.4 kB / 329.6 MB, free: 1.199 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.276e-05/0.1139, allocations: 12 kB / 329.6 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.1141, allocations: 63.95 kB / 329.7 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.832e-05/0.1142, allocations: 47.77 kB / 329.7 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.1144, allocations: 111.4 kB / 329.8 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004661/0.1149, allocations: 255.4 kB / 330.1 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.1149, allocations: 0 / 330.1 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1149, allocations: 4 kB / 330.1 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1149, allocations: 0 / 330.1 MB, free: 0.7148 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.001375/0.1163, allocations: 0.5704 MB / 330.7 MB, free: 92 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.1164, allocations: 8.031 kB / 330.7 MB, free: 84 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.1165, allocations: 24.66 kB / 330.7 MB, free: 60 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003752/0.1169, allocations: 228 kB / 330.9 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.1169, allocations: 16.38 kB / 330.9 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.187e-05/0.117, allocations: 24.38 kB / 331 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006855/0.1177, allocations: 243.5 kB / 331.2 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.1178, allocations: 0 / 331.2 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.779e-05/0.1178, allocations: 8 kB / 331.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1178, allocations: 4 kB / 331.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007508/0.1186, allocations: 199.8 kB / 331.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.1201, allocations: 0.668 MB / 332.1 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009025/0.121, allocations: 206.3 kB / 332.3 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003271/0.1213, allocations: 100.8 kB / 332.4 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.1214, allocations: 0 / 332.4 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006804/0.1221, allocations: 167.6 kB / 332.5 MB, free: 14.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.044e-06/0.1221, allocations: 0 / 332.5 MB, free: 14.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.003358/0.1255, allocations: 1.149 MB / 333.7 MB, free: 12.83 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.1255, allocations: 55.34 kB / 333.7 MB, free: 12.76 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002562/0.1258, allocations: 202.9 kB / 333.9 MB, free: 12.55 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.86e-05/0.1259, allocations: 33.7 kB / 334 MB, free: 12.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.126, allocations: 132.3 kB / 334.1 MB, free: 12.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1261, allocations: 90.73 kB / 334.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001453/0.1263, allocations: 57.7 kB / 334.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.1264, allocations: 334.8 kB / 334.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004296/0.1269, allocations: 104.3 kB / 334.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000421/0.1273, allocations: 152 kB / 334.8 MB, free: 11.63 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007363/0.1281, allocations: 246.7 kB / 335.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1281, allocations: 4 kB / 335.1 MB, free: 11.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001009/0.1291, allocations: 400.9 kB / 335.5 MB, free: 10.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.93e-05/0.1292, allocations: 37.7 kB / 335.5 MB, free: 10.92 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1292, allocations: 3.938 kB / 335.5 MB, free: 10.92 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003018/0.1295, allocations: 72.88 kB / 335.6 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.1298, allocations: 51.91 kB / 335.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006208/0.1304, allocations: 0.6108 MB / 336.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.1308, allocations: 35.98 kB / 336.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.1308, allocations: 8 kB / 336.3 MB, free: 10.11 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 (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.0001705/0.131, allocations: 150.1 kB / 336.4 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.609e-05/0.131, allocations: 19.72 kB / 336.4 MB, free: 9.938 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.913e-05/0.1311, allocations: 29.86 kB / 336.5 MB, free: 9.906 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1311, allocations: 4 kB / 336.5 MB, free: 9.902 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1311, allocations: 0 / 336.5 MB, free: 9.902 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1311, allocations: 0 / 336.5 MB, free: 9.902 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.1322, allocations: 0.6747 MB / 337.1 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1322, allocations: 0 / 337.1 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002042/0.1324, allocations: 43.91 kB / 337.2 MB, free: 9.125 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001604/0.1326, allocations: 64.81 kB / 337.3 MB, free: 9.059 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.1326, allocations: 12 kB / 337.3 MB, free: 9.047 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004387/0.1331, allocations: 0.6109 MB / 337.9 MB, free: 8.41 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1331, allocations: 0 / 337.9 MB, free: 8.41 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009412/0.134, allocations: 0.4998 MB / 338.4 MB, free: 7.891 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.575e-05/0.1342, allocations: 116.9 kB / 338.5 MB, free: 7.758 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.016e-05/0.1342, allocations: 7.938 kB / 338.5 MB, free: 7.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.1344, allocations: 27.97 kB / 338.5 MB, free: 7.723 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.1346, allocations: 40.02 kB / 338.6 MB, free: 7.684 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.1346, allocations: 12 kB / 338.6 MB, free: 7.672 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.1347, allocations: 139.5 kB / 338.7 MB, free: 7.535 MB / 286.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1347, allocations: 0 / 338.7 MB, free: 7.535 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000348/0.1351, allocations: 72 kB / 338.8 MB, free: 7.465 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 (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.000195/0.1353, allocations: 123.2 kB / 338.9 MB, free: 7.336 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007778/0.136, allocations: 328.6 kB / 339.2 MB, free: 7.004 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.1361, allocations: 4.062 kB / 339.2 MB, free: 7 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003373/0.1364, allocations: 143.8 kB / 339.4 MB, free: 6.859 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003911/0.1368, allocations: 51.55 kB / 339.4 MB, free: 6.809 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.1381, allocations: 0.7345 MB / 340.1 MB, free: 6.051 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.1384, allocations: 0.7441 MB / 340.9 MB, free: 5.281 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.1386, allocations: 17.94 kB / 340.9 MB, free: 5.262 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.248e-05/0.1386, allocations: 19.44 kB / 340.9 MB, free: 5.242 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1386, allocations: 4 kB / 340.9 MB, free: 5.238 MB / 286.1 MB Notification: Performance of Templates: time 0.006894/0.1455, allocations: 3.446 MB / 344.4 MB, free: 1.793 MB / 286.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)