Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.006918/0.006918, allocations: 96.94 kB / 15.73 MB, free: 6.484 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.001564/0.001565, allocations: 191.3 kB / 16.67 MB, free: 6.391 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.665/1.665, allocations: 205.1 MB / 222.5 MB, free: 4.555 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.001191/0.001191, allocations: 49.77 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1157, allocations: 46.63 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00355/0.1193, allocations: 2.155 MB / 375.3 MB, free: 15.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.1207, allocations: 0.7447 MB / 376.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.1208, allocations: 0 / 376.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002066/0.1211, allocations: 43.66 kB / 376.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000232/0.1213, allocations: 59.48 kB / 376.2 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004614/0.1218, allocations: 107.7 kB / 376.3 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004012/0.1222, allocations: 287.4 kB / 376.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001784/0.1224, allocations: 60.34 kB / 376.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.1227, allocations: 115.6 kB / 376.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.1229, allocations: 127.5 kB / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.994e-05/0.1229, allocations: 20 kB / 376.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.1231, allocations: 71.89 kB / 376.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.275e-05/0.1232, allocations: 51.83 kB / 377 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.1233, allocations: 115.4 kB / 377.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004288/0.1238, allocations: 278.9 kB / 377.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1238, allocations: 7.938 kB / 377.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1238, allocations: 0 / 377.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.1238, allocations: 0 / 377.4 MB, free: 13.09 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.001173/0.125, allocations: 0.5663 MB / 377.9 MB, free: 12.47 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.125, allocations: 8.031 kB / 377.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.358e-05/0.1251, allocations: 24.8 kB / 378 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004139/0.1256, allocations: 243.9 kB / 378.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.1256, allocations: 16.31 kB / 378.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.9e-05/0.1257, allocations: 24.38 kB / 378.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004958/0.1262, allocations: 239.5 kB / 378.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.1262, allocations: 3.984 kB / 378.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.1262, allocations: 8 kB / 378.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.1262, allocations: 4 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004697/0.1267, allocations: 199.8 kB / 378.7 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.1278, allocations: 0.6605 MB / 379.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005885/0.1284, allocations: 202.4 kB / 379.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002477/0.1286, allocations: 104.7 kB / 379.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.1287, allocations: 4 kB / 379.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003642/0.129, allocations: 155.2 kB / 379.8 MB, free: 10.47 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.1291, allocations: 4 kB / 379.8 MB, free: 10.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002664/0.1317, allocations: 1.157 MB / 381 MB, free: 9.199 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.1318, allocations: 59.41 kB / 381 MB, free: 9.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.1321, allocations: 191.1 kB / 381.2 MB, free: 8.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.1321, allocations: 29.7 kB / 381.2 MB, free: 8.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.1322, allocations: 148.4 kB / 381.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.617e-05/0.1323, allocations: 79.33 kB / 381.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.1324, allocations: 69.64 kB / 381.5 MB, free: 8.594 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1325, allocations: 334.8 kB / 381.9 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002673/0.1328, allocations: 104.3 kB / 382 MB, free: 8.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/0.1331, allocations: 144.3 kB / 382.1 MB, free: 8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005049/0.1337, allocations: 242.7 kB / 382.3 MB, free: 7.746 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1337, allocations: 0 / 382.3 MB, free: 7.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008549/0.1345, allocations: 413 kB / 382.7 MB, free: 7.328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.065e-05/0.1346, allocations: 34.73 kB / 382.8 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.1346, allocations: 7.938 kB / 382.8 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002823/0.1349, allocations: 68.84 kB / 382.9 MB, free: 7.211 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.1351, allocations: 59.97 kB / 382.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005342/0.1357, allocations: 0.6071 MB / 383.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.136, allocations: 35.89 kB / 383.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.748e-05/0.136, allocations: 12 kB / 383.6 MB, free: 6.473 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.0001426/0.1361, allocations: 141.8 kB / 383.7 MB, free: 6.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.492e-05/0.1362, allocations: 23.86 kB / 383.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.115e-05/0.1363, allocations: 29.86 kB / 383.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.738e-06/0.1363, allocations: 0 / 383.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.1363, allocations: 7.938 kB / 383.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1363, allocations: 0 / 383.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.1374, allocations: 0.6829 MB / 384.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.1374, allocations: 0 / 384.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002023/0.1376, allocations: 39.97 kB / 384.5 MB, free: 5.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001566/0.1378, allocations: 72.75 kB / 384.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.1378, allocations: 4 kB / 384.6 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004792/0.1383, allocations: 0.615 MB / 385.2 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1383, allocations: 3.984 kB / 385.2 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009854/0.1393, allocations: 0.5052 MB / 385.7 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.1395, allocations: 113 kB / 385.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.91e-05/0.1395, allocations: 11.98 kB / 385.8 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/0.1397, allocations: 31.97 kB / 385.8 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.419e-05/0.1398, allocations: 31.95 kB / 385.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.1399, allocations: 4 kB / 385.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001238/0.14, allocations: 139.2 kB / 386 MB, free: 3.895 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.14, allocations: 0 / 386 MB, free: 3.895 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003541/0.1404, 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.0003092/0.1407, allocations: 127.4 kB / 386.2 MB, free: 3.688 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007689/0.1415, allocations: 328.3 kB / 386.5 MB, free: 3.355 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1415, allocations: 0 / 386.5 MB, free: 3.355 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003397/0.1418, allocations: 143.9 kB / 386.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003985/0.1422, allocations: 39.92 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.00132/0.1436, allocations: 0.6621 MB / 387.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.1439, allocations: 0.7401 MB / 388.1 MB, free: 1.719 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.32e-05/0.144, allocations: 21.95 kB / 388.1 MB, free: 1.699 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.646e-05/0.1441, allocations: 23.42 kB / 388.2 MB, free: 1.676 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1441, allocations: 0 / 388.2 MB, free: 1.676 MB / 318.1 MB Notification: Performance of Templates: time 0.008145/0.1523, allocations: 3.839 MB / 392 MB, free: 13.83 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1)