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.01171/0.01171, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.002259/0.00226, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.612/1.612, allocations: 205.1 MB / 222.6 MB, free: 4.477 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.001195/0.001195, allocations: 49.44 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1168, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00367/0.1205, allocations: 2.155 MB / 375.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.1221, allocations: 0.7408 MB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002087/0.1223, allocations: 7.938 kB / 376.1 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000232/0.1226, allocations: 31.72 kB / 376.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002373/0.1228, allocations: 67.42 kB / 376.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004532/0.1233, allocations: 107.8 kB / 376.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004244/0.1237, allocations: 287.3 kB / 376.5 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.1239, allocations: 56.34 kB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.1241, allocations: 115.6 kB / 376.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.1244, allocations: 123.5 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.387e-05/0.1244, allocations: 20 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001655/0.1246, allocations: 75.89 kB / 376.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.019e-05/0.1247, allocations: 47.83 kB / 377 MB, free: 13.47 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000142/0.1249, allocations: 127.4 kB / 377.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004094/0.1253, allocations: 278.9 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1253, allocations: 0 / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1253, allocations: 0 / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.1253, allocations: 0 / 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.001183/0.1265, allocations: 0.5663 MB / 377.9 MB, free: 12.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1266, allocations: 12.03 kB / 378 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.34e-05/0.1267, allocations: 28.73 kB / 378 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004124/0.1271, allocations: 235.9 kB / 378.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/0.1271, allocations: 16.38 kB / 378.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.447e-05/0.1272, allocations: 20.38 kB / 378.2 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000561/0.1278, allocations: 235.5 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.1278, allocations: 3.984 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.1278, allocations: 16 kB / 378.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.895e-05/0.1279, allocations: 8 kB / 378.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004953/0.1284, allocations: 187.8 kB / 378.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.1295, allocations: 0.6644 MB / 379.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005834/0.1301, allocations: 206.3 kB / 379.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002492/0.1304, allocations: 96.8 kB / 379.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.1304, allocations: 4 kB / 379.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000358/0.1308, allocations: 163.2 kB / 379.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.1308, allocations: 0 / 379.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002551/0.1334, allocations: 1.157 MB / 381 MB, free: 9.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.1334, allocations: 55.41 kB / 381 MB, free: 9.113 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.1336, allocations: 195.1 kB / 381.2 MB, free: 8.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.1337, allocations: 29.7 kB / 381.2 MB, free: 8.875 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.876e-05/0.1338, allocations: 140.4 kB / 381.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.177e-05/0.1338, allocations: 87.31 kB / 381.5 MB, free: 8.648 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.134, allocations: 65.64 kB / 381.5 MB, free: 8.578 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1341, allocations: 334.8 kB / 381.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/0.1344, allocations: 108.3 kB / 382 MB, free: 8.133 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003453/0.1348, allocations: 144.3 kB / 382.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005056/0.1353, allocations: 250.7 kB / 382.3 MB, free: 7.719 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1353, allocations: 3.938 kB / 382.4 MB, free: 7.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000879/0.1362, allocations: 405 kB / 382.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/0.1362, allocations: 29.7 kB / 382.8 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1362, allocations: 3.938 kB / 382.8 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002607/0.1365, allocations: 76.88 kB / 382.9 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00022/0.1367, allocations: 51.91 kB / 382.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006073/0.1374, allocations: 0.6187 MB / 383.5 MB, free: 6.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.1376, allocations: 31.95 kB / 383.6 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.1377, allocations: 16.06 kB / 383.6 MB, free: 6.445 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.0001651/0.1379, allocations: 141.7 kB / 383.7 MB, free: 6.297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.681e-05/0.1379, allocations: 27.8 kB / 383.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.481e-05/0.138, allocations: 29.86 kB / 383.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.138, allocations: 0 / 383.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.138, allocations: 0 / 383.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.138, allocations: 4 kB / 383.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.1393, allocations: 0.679 MB / 384.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1393, allocations: 0 / 384.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002097/0.1395, allocations: 35.97 kB / 384.5 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001977/0.1397, allocations: 72.75 kB / 384.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.1397, allocations: 8 kB / 384.6 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004943/0.1402, allocations: 0.607 MB / 385.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.1402, allocations: 3.984 kB / 385.2 MB, free: 4.746 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.1413, allocations: 0.5091 MB / 385.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.1414, allocations: 113.1 kB / 385.8 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.88e-05/0.1415, allocations: 11.98 kB / 385.8 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.1417, allocations: 35.95 kB / 385.8 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.58e-05/0.1418, allocations: 27.95 kB / 385.9 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.1418, allocations: 8 kB / 385.9 MB, free: 4.008 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001135/0.142, allocations: 143.2 kB / 386 MB, free: 3.867 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.753e-06/0.142, allocations: 0 / 386 MB, free: 3.867 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003604/0.1423, allocations: 71.94 kB / 386.1 MB, free: 3.797 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.0001897/0.1425, allocations: 119.5 kB / 386.2 MB, free: 3.668 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007282/0.1433, allocations: 332.2 kB / 386.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1433, allocations: 0 / 386.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000368/0.1437, allocations: 139.8 kB / 386.7 MB, free: 3.195 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.1441, allocations: 47.8 kB / 386.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.1454, allocations: 0.6545 MB / 387.4 MB, free: 2.465 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/0.1458, allocations: 0.7441 MB / 388.1 MB, free: 1.695 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.983e-05/0.1459, allocations: 17.95 kB / 388.1 MB, free: 1.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.53e-05/0.146, allocations: 23.42 kB / 388.1 MB, free: 1.656 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.146, allocations: 0 / 388.1 MB, free: 1.656 MB / 318.1 MB Notification: Performance of Templates: time 0.009177/0.1552, allocations: 3.839 MB / 392 MB, free: 13.81 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)