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.00905/0.00905, allocations: 102.5 kB / 15.73 MB, free: 5.984 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.002059/0.002059, allocations: 199.1 kB / 16.68 MB, free: 5.91 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.587/1.587, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001216/0.001216, allocations: 50.11 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1097, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00378/0.1136, allocations: 2.158 MB / 375.3 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001608/0.1152, allocations: 0.7446 MB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.1154, allocations: 3.938 kB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002282/0.1157, allocations: 31.72 kB / 376.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002104/0.1159, allocations: 75.41 kB / 376.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004151/0.1163, allocations: 107.7 kB / 376.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000359/0.1167, allocations: 279.4 kB / 376.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.1169, allocations: 56.3 kB / 376.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002272/0.1171, allocations: 127.6 kB / 376.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.1173, allocations: 123.5 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.166e-05/0.1174, allocations: 20 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001547/0.1175, allocations: 75.89 kB / 376.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.1176, allocations: 51.83 kB / 377 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001588/0.1178, allocations: 115.5 kB / 377.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004034/0.1182, allocations: 275.1 kB / 377.4 MB, free: 13.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1182, allocations: 3.938 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1182, allocations: 0 / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.146e-06/0.1183, allocations: 3.984 kB / 377.4 MB, free: 13.07 MB / 318.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.00107/0.1193, allocations: 0.5588 MB / 377.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.1194, allocations: 8.031 kB / 377.9 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.071e-05/0.1195, allocations: 24.66 kB / 378 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.1198, allocations: 235.8 kB / 378.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.1199, allocations: 16.38 kB / 378.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.794e-05/0.1199, allocations: 28.36 kB / 378.2 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004853/0.1204, allocations: 239.5 kB / 378.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.1205, allocations: 0 / 378.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.783e-05/0.1205, allocations: 12 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1205, allocations: 4 kB / 378.5 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004645/0.121, allocations: 187.8 kB / 378.7 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.122, allocations: 0.672 MB / 379.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006478/0.1227, allocations: 206.3 kB / 379.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002484/0.123, allocations: 92.81 kB / 379.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.63e-05/0.123, allocations: 4 kB / 379.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004012/0.1234, allocations: 163.1 kB / 379.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1234, allocations: 0 / 379.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002463/0.1259, allocations: 1.152 MB / 381 MB, free: 9.195 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.126, allocations: 59.41 kB / 381 MB, free: 9.125 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.1262, allocations: 191 kB / 381.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.1262, allocations: 29.7 kB / 381.2 MB, free: 8.891 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.685e-05/0.1263, allocations: 140.3 kB / 381.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.455e-05/0.1264, allocations: 82.89 kB / 381.4 MB, free: 8.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.799e-05/0.1265, allocations: 65.59 kB / 381.5 MB, free: 8.598 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1267, allocations: 334.8 kB / 381.8 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002887/0.127, allocations: 112.2 kB / 381.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.1273, allocations: 140.3 kB / 382.1 MB, free: 8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004802/0.1278, allocations: 246.7 kB / 382.3 MB, free: 7.742 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.1278, allocations: 0 / 382.3 MB, free: 7.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008125/0.1286, allocations: 397 kB / 382.7 MB, free: 7.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.052e-05/0.1286, allocations: 37.62 kB / 382.8 MB, free: 7.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1287, allocations: 12 kB / 382.8 MB, free: 7.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000265/0.1289, allocations: 68.83 kB / 382.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.1292, allocations: 47.91 kB / 382.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005373/0.1297, allocations: 0.6186 MB / 383.5 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002587/0.13, allocations: 35.97 kB / 383.5 MB, free: 6.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.709e-05/0.13, allocations: 12 kB / 383.5 MB, free: 6.477 MB / 318.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.0001625/0.1302, allocations: 149.7 kB / 383.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.786e-05/0.1302, allocations: 19.81 kB / 383.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.559e-05/0.1303, allocations: 25.88 kB / 383.7 MB, free: 6.277 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1303, allocations: 0 / 383.7 MB, free: 6.277 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.1303, allocations: 4 kB / 383.7 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1303, allocations: 3.984 kB / 383.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.1315, allocations: 0.6828 MB / 384.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1315, allocations: 0 / 384.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002085/0.1317, allocations: 39.91 kB / 384.5 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/0.1319, allocations: 76.8 kB / 384.5 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.132, allocations: 7.984 kB / 384.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004711/0.1324, allocations: 0.5993 MB / 385.1 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1325, allocations: 0 / 385.1 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.1335, allocations: 0.5168 MB / 385.7 MB, free: 4.242 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.1336, allocations: 112.8 kB / 385.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.475e-05/0.1336, allocations: 8 kB / 385.8 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.1339, allocations: 23.97 kB / 385.8 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.134, allocations: 43.88 kB / 385.8 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.134, allocations: 8 kB / 385.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001146/0.1341, allocations: 139.2 kB / 386 MB, free: 3.895 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1341, allocations: 0 / 386 MB, free: 3.895 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.1345, allocations: 72 kB / 386.1 MB, free: 3.824 MB / 318.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.000209/0.1347, allocations: 115.6 kB / 386.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007858/0.1355, allocations: 328.3 kB / 386.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1355, allocations: 0 / 386.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003363/0.1359, allocations: 147.8 kB / 386.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.1363, allocations: 47.84 kB / 386.7 MB, free: 3.176 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.1375, allocations: 0.6554 MB / 387.3 MB, free: 2.492 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.1379, allocations: 0.7402 MB / 388.1 MB, free: 1.727 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.977e-05/0.138, allocations: 17.95 kB / 388.1 MB, free: 1.711 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.837e-05/0.1381, allocations: 23.44 kB / 388.1 MB, free: 1.688 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1381, allocations: 0 / 388.1 MB, free: 1.688 MB / 318.1 MB Notification: Performance of Templates: time 0.007572/0.1456, allocations: 3.831 MB / 392 MB, free: 13.85 MB / 334.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)