Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 107.1 kB / 16.62 MB, free: 6.816 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.001727/0.001727, allocations: 189.8 kB / 17.55 MB, free: 5.949 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.453/1.453, allocations: 205.1 MB / 223.4 MB, free: 12.43 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.001511/0.001511, allocations: 63.91 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1228, allocations: 46.62 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.005375/0.1282, allocations: 2.254 MB / 328.4 MB, free: 2.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.1299, allocations: 0.7294 MB / 329.1 MB, free: 1.781 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002478/0.1302, allocations: 0 / 329.1 MB, free: 1.781 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002568/0.1305, allocations: 23.84 kB / 329.1 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002806/0.1308, allocations: 59.53 kB / 329.2 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004863/0.1313, allocations: 91.86 kB / 329.3 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004217/0.1317, allocations: 259.5 kB / 329.5 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.1319, allocations: 72.3 kB / 329.6 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002741/0.1322, allocations: 107.6 kB / 329.7 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002471/0.1325, allocations: 115.5 kB / 329.8 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.682e-05/0.1325, allocations: 20 kB / 329.8 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001589/0.1327, allocations: 71.89 kB / 329.9 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.069e-05/0.1328, allocations: 51.81 kB / 330 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.1329, allocations: 111.5 kB / 330.1 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003912/0.1333, allocations: 271.4 kB / 330.3 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.1333, allocations: 0 / 330.3 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1334, allocations: 0 / 330.3 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.1334, allocations: 0 / 330.3 MB, free: 0.5508 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.000979/0.1344, allocations: 0.5147 MB / 330.9 MB, free: 15.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.1344, allocations: 8.031 kB / 330.9 MB, free: 15.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.003e-05/0.1345, allocations: 32.59 kB / 330.9 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/0.1348, allocations: 231.9 kB / 331.1 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.035e-05/0.1349, allocations: 16.81 kB / 331.1 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.491e-05/0.1349, allocations: 24.28 kB / 331.2 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005213/0.1355, allocations: 226 kB / 331.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.1355, allocations: 0 / 331.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.1355, allocations: 8 kB / 331.4 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.1356, allocations: 7.938 kB / 331.4 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003901/0.136, allocations: 173 kB / 331.6 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.1373, allocations: 0.7719 MB / 332.3 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000423/0.1378, allocations: 134.5 kB / 332.5 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.1379, allocations: 68.83 kB / 332.5 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.138, allocations: 4 kB / 332.5 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.138, allocations: 30.56 kB / 332.6 MB, free: 14.13 MB / 286.1 MB Notification: Performance of pre-optimization done (n=18): time 1.282e-06/0.138, allocations: 0 / 332.6 MB, free: 14.13 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.002071/0.1401, allocations: 0.9973 MB / 333.6 MB, free: 13.02 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.1402, allocations: 55.41 kB / 333.6 MB, free: 12.95 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002297/0.1404, allocations: 206.6 kB / 333.8 MB, free: 12.74 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.1404, allocations: 25.7 kB / 333.9 MB, free: 12.71 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.748e-05/0.1405, allocations: 144.2 kB / 334 MB, free: 12.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.147e-05/0.1406, allocations: 70.98 kB / 334.1 MB, free: 12.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.974e-05/0.1407, allocations: 57.61 kB / 334.1 MB, free: 12.43 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.1408, allocations: 334.8 kB / 334.4 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.141, allocations: 75.97 kB / 334.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.1412, allocations: 119.6 kB / 334.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.1415, allocations: 164.7 kB / 334.8 MB, free: 11.72 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1415, allocations: 0 / 334.8 MB, free: 11.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004903/0.142, allocations: 287.8 kB / 335.1 MB, free: 11.43 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.142, allocations: 8 kB / 335.1 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.142, allocations: 0 / 335.1 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003505/0.1424, allocations: 72.75 kB / 335.2 MB, free: 11.35 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.1426, allocations: 35.98 kB / 335.2 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005037/0.1431, allocations: 0.6265 MB / 335.8 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.1433, allocations: 19.98 kB / 335.8 MB, free: 10.64 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.1433, allocations: 4.078 kB / 335.8 MB, free: 10.64 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0001465/0.1435, allocations: 145.2 kB / 336 MB, free: 10.49 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.512e-05/0.1435, allocations: 19.88 kB / 336 MB, free: 10.47 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.156e-05/0.1436, allocations: 25.88 kB / 336 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1436, allocations: 7.875 kB / 336 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1436, allocations: 0 / 336 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.1436, allocations: 7.922 kB / 336 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008549/0.1445, allocations: 0.606 MB / 336.6 MB, free: 9.758 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1445, allocations: 0 / 336.6 MB, free: 9.758 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000158/0.1447, allocations: 27.98 kB / 336.7 MB, free: 9.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001848/0.1448, allocations: 80.81 kB / 336.8 MB, free: 9.648 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.1449, allocations: 8 kB / 336.8 MB, free: 9.641 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005298/0.1454, allocations: 0.6187 MB / 337.4 MB, free: 8.996 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1454, allocations: 0 / 337.4 MB, free: 8.996 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006104/0.146, allocations: 413.7 kB / 337.8 MB, free: 8.566 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.1462, allocations: 108.9 kB / 337.9 MB, free: 8.441 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.1462, allocations: 4 kB / 337.9 MB, free: 8.438 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.1464, allocations: 19.97 kB / 337.9 MB, free: 8.418 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.621e-05/0.1465, allocations: 23.97 kB / 337.9 MB, free: 8.395 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.1465, allocations: 8 kB / 337.9 MB, free: 8.387 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001354/0.1466, allocations: 156 kB / 338.1 MB, free: 8.234 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1467, allocations: 0 / 338.1 MB, free: 8.234 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003571/0.147, allocations: 71.92 kB / 338.2 MB, free: 8.164 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002103/0.1472, allocations: 119.1 kB / 338.3 MB, free: 8.039 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005555/0.1478, allocations: 207.7 kB / 338.5 MB, free: 7.836 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1478, allocations: 0 / 338.5 MB, free: 7.836 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002368/0.1481, allocations: 100.1 kB / 338.6 MB, free: 7.738 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004107/0.1485, allocations: 43.75 kB / 338.6 MB, free: 7.695 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.1499, allocations: 0.7478 MB / 339.4 MB, free: 6.918 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.1502, allocations: 0.7439 MB / 340.1 MB, free: 6.148 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.5e-05/0.1503, allocations: 17.95 kB / 340.1 MB, free: 6.129 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.117e-05/0.1504, allocations: 19.38 kB / 340.2 MB, free: 6.109 MB / 286.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1504, allocations: 4 kB / 340.2 MB, free: 6.105 MB / 286.1 MB Notification: Performance of Templates: time 0.007902/0.1583, allocations: 3.081 MB / 343.2 MB, free: 3.027 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)