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.0009205/0.0009203, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.001222/0.001222, allocations: 177 kB / 17.56 MB, free: 6.18 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.677/1.677, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0005259/0.0005264, allocations: 8.219 kB / 280.7 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1081, allocations: 47.59 MB / 328.3 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002457/0.1107, allocations: 1.861 MB / 330.2 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.1118, allocations: 0.7295 MB / 330.9 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.926e-05/0.112, allocations: 0 / 330.9 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001614/0.1121, allocations: 23.84 kB / 330.9 MB, free: 1.133 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.1123, allocations: 63.53 kB / 331 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002977/0.1126, allocations: 87.84 kB / 331.1 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002728/0.1129, allocations: 271.4 kB / 331.3 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.113, allocations: 48.36 kB / 331.4 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.1132, allocations: 103.6 kB / 331.5 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.1134, allocations: 119.5 kB / 331.6 MB, free: 464 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.468e-05/0.1135, allocations: 15.98 kB / 331.6 MB, free: 448 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.1136, allocations: 59.95 kB / 331.7 MB, free: 388 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.114e-05/0.1137, allocations: 39.78 kB / 331.7 MB, free: 348 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.1139, allocations: 129.1 kB / 331.8 MB, free: 212 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003135/0.1142, allocations: 259.3 kB / 332.1 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1142, allocations: 0 / 332.1 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1142, allocations: 0 / 332.1 MB, free: 15.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1142, allocations: 0 / 332.1 MB, free: 15.95 MB / 286.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.0009769/0.1152, allocations: 0.5354 MB / 332.6 MB, free: 15.36 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.1152, allocations: 8.031 kB / 332.6 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.586e-05/0.1153, allocations: 28.66 kB / 332.7 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.1156, allocations: 235.8 kB / 332.9 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.1156, allocations: 20.38 kB / 332.9 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.1157, allocations: 16.38 kB / 332.9 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004754/0.1161, allocations: 243.5 kB / 333.2 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.1162, allocations: 0 / 333.2 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.1162, allocations: 4 kB / 333.2 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.1162, allocations: 12 kB / 333.2 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000481/0.1167, allocations: 207.8 kB / 333.4 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.1177, allocations: 0.6837 MB / 334.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005734/0.1183, allocations: 214.3 kB / 334.3 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000243/0.1186, allocations: 108.8 kB / 334.4 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.1186, allocations: 3.984 kB / 334.4 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004183/0.119, allocations: 171.6 kB / 334.6 MB, free: 13.3 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 3.427e-06/0.119, allocations: 7.984 kB / 334.6 MB, free: 13.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002478/0.1215, allocations: 1.218 MB / 335.8 MB, free: 11.96 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/0.1216, allocations: 59.34 kB / 335.8 MB, free: 11.89 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/0.1218, allocations: 198.8 kB / 336 MB, free: 11.69 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.1218, allocations: 37.69 kB / 336.1 MB, free: 11.65 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.777e-05/0.1219, allocations: 132.3 kB / 336.2 MB, free: 11.52 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.461e-05/0.122, allocations: 90.73 kB / 336.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.817e-05/0.1221, allocations: 33.7 kB / 336.3 MB, free: 11.39 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1222, allocations: 334.8 kB / 336.7 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003103/0.1225, allocations: 108.3 kB / 336.8 MB, free: 10.94 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.1228, allocations: 160 kB / 336.9 MB, free: 10.77 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004893/0.1233, allocations: 266.6 kB / 337.2 MB, free: 10.5 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.1233, allocations: 0 / 337.2 MB, free: 10.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008237/0.1242, allocations: 417 kB / 337.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/0.1242, allocations: 29.7 kB / 337.6 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.1242, allocations: 7.938 kB / 337.6 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002338/0.1245, allocations: 72.88 kB / 337.7 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.1247, allocations: 55.91 kB / 337.7 MB, free: 9.902 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000468/0.1252, allocations: 0.6147 MB / 338.4 MB, free: 9.262 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.1255, allocations: 48.05 kB / 338.4 MB, free: 9.215 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.1255, allocations: 12 kB / 338.4 MB, free: 9.203 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.0001563/0.1256, allocations: 138 kB / 338.6 MB, free: 9.059 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.331e-05/0.1257, allocations: 15.81 kB / 338.6 MB, free: 9.043 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.442e-05/0.1258, allocations: 29.86 kB / 338.6 MB, free: 9.012 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.1258, allocations: 4 kB / 338.6 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1258, allocations: 4 kB / 338.6 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.1258, allocations: 0 / 338.6 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.1269, allocations: 0.6941 MB / 339.3 MB, free: 8.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1269, allocations: 0 / 339.3 MB, free: 8.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.1271, allocations: 47.91 kB / 339.4 MB, free: 8.203 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001602/0.1273, allocations: 72.84 kB / 339.4 MB, free: 8.129 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.1273, allocations: 8 kB / 339.4 MB, free: 8.121 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004165/0.1278, allocations: 0.611 MB / 340 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1278, allocations: 0 / 340 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009865/0.1288, allocations: 0.5271 MB / 340.6 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.1289, allocations: 120.8 kB / 340.7 MB, free: 6.801 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.894e-05/0.1289, allocations: 7.938 kB / 340.7 MB, free: 6.793 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.1292, allocations: 35.97 kB / 340.7 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.331e-05/0.1293, allocations: 35.94 kB / 340.8 MB, free: 6.723 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.1293, allocations: 8 kB / 340.8 MB, free: 6.715 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001215/0.1294, allocations: 143.5 kB / 340.9 MB, free: 6.574 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1295, allocations: 0 / 340.9 MB, free: 6.574 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003614/0.1298, allocations: 72 kB / 341 MB, free: 6.504 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.0002003/0.13, allocations: 119.2 kB / 341.1 MB, free: 6.379 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007523/0.1308, allocations: 340.6 kB / 341.4 MB, free: 6.035 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.1308, allocations: 7.938 kB / 341.4 MB, free: 6.027 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003682/0.1312, allocations: 151.9 kB / 341.6 MB, free: 5.879 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.1316, allocations: 43.86 kB / 341.6 MB, free: 5.836 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.1331, allocations: 0.8111 MB / 342.4 MB, free: 5 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003499/0.1335, allocations: 0.7438 MB / 343.2 MB, free: 4.23 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001361/0.1336, allocations: 21.89 kB / 343.2 MB, free: 4.207 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.31e-05/0.1337, allocations: 15.44 kB / 343.2 MB, free: 4.191 MB / 286.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1337, allocations: 4 kB / 343.2 MB, free: 4.188 MB / 286.1 MB Notification: Performance of Templates: time 0.007558/0.1412, allocations: 3.41 MB / 346.6 MB, free: 0.7812 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)