Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_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.008246/0.008245, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001359/0.001359, allocations: 193.7 kB / 16.67 MB, free: 5.93 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.648/1.648, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.001242/0.001242, allocations: 55.03 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1271, allocations: 46.62 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.005651/0.1328, allocations: 2.209 MB / 375.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002063/0.135, allocations: 0.733 MB / 376.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.1352, allocations: 4 kB / 376.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000265/0.1355, allocations: 31.66 kB / 376.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000299/0.1358, allocations: 71.41 kB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005226/0.1363, allocations: 99.81 kB / 376.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004695/0.1368, allocations: 263.4 kB / 376.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00024/0.1371, allocations: 69.38 kB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002376/0.1373, allocations: 107.6 kB / 376.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003044/0.1376, allocations: 119.5 kB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.239e-05/0.1377, allocations: 20 kB / 376.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002024/0.1379, allocations: 71.94 kB / 376.9 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.1381, allocations: 47.84 kB / 377 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.1382, allocations: 115.4 kB / 377.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005491/0.1388, allocations: 275.1 kB / 377.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1388, allocations: 0 / 377.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.1389, allocations: 0 / 377.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.1389, allocations: 0 / 377.4 MB, free: 13.1 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001309/0.1402, allocations: 0.5147 MB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.262e-05/0.1403, allocations: 8.031 kB / 377.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.1404, allocations: 24.66 kB / 377.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005975/0.141, allocations: 247.8 kB / 378.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.764e-05/0.1411, allocations: 12.81 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.668e-05/0.1412, allocations: 28.25 kB / 378.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006792/0.1419, allocations: 226 kB / 378.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.1419, allocations: 4 kB / 378.4 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.797e-05/0.142, allocations: 8 kB / 378.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.142, allocations: 8 kB / 378.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005763/0.1426, allocations: 157 kB / 378.6 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.1444, allocations: 0.7719 MB / 379.4 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006577/0.1451, allocations: 138.5 kB / 379.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002544/0.1454, allocations: 68.83 kB / 379.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.1454, allocations: 0 / 379.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.953e-05/0.1455, allocations: 34.56 kB / 379.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 2.224e-06/0.1455, allocations: 0 / 379.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.003309/0.1488, allocations: 0.9866 MB / 380.6 MB, free: 9.578 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.1489, allocations: 55.41 kB / 380.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003539/0.1492, allocations: 207.4 kB / 380.8 MB, free: 9.301 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.011e-05/0.1493, allocations: 29.7 kB / 380.9 MB, free: 9.266 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.1495, allocations: 144.1 kB / 381 MB, free: 9.117 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.914e-05/0.1496, allocations: 74.94 kB / 381.1 MB, free: 9.043 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.1498, allocations: 49.7 kB / 381.1 MB, free: 8.988 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.15, allocations: 334.8 kB / 381.5 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.1503, allocations: 79.91 kB / 381.5 MB, free: 8.574 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/0.1507, allocations: 119.6 kB / 381.6 MB, free: 8.445 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005514/0.1512, allocations: 168.7 kB / 381.8 MB, free: 8.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1513, allocations: 0 / 381.8 MB, free: 8.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009281/0.1522, allocations: 295.7 kB / 382.1 MB, free: 7.973 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.1522, allocations: 8 kB / 382.1 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1523, allocations: 3.984 kB / 382.1 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004013/0.1527, allocations: 72.8 kB / 382.2 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003019/0.153, allocations: 43.92 kB / 382.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008422/0.1539, allocations: 0.6149 MB / 382.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003486/0.1542, allocations: 24.02 kB / 382.9 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.695e-05/0.1543, allocations: 12 kB / 382.9 MB, free: 7.168 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: 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.0002078/0.1545, allocations: 133.8 kB / 383 MB, free: 7.027 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-05/0.1546, allocations: 23.72 kB / 383 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.838e-05/0.1547, allocations: 21.88 kB / 383.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.1547, allocations: 8 kB / 383.1 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1547, allocations: 0 / 383.1 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.1547, allocations: 7.984 kB / 383.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.1563, allocations: 0.5959 MB / 383.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1563, allocations: 0 / 383.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003306/0.1566, allocations: 35.98 kB / 383.7 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003343/0.157, allocations: 72.81 kB / 383.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.157, allocations: 0 / 383.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007794/0.1578, allocations: 0.6186 MB / 384.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.1578, allocations: 0 / 384.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.159, allocations: 421.7 kB / 384.8 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.1592, allocations: 108.9 kB / 384.9 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.194e-05/0.1592, allocations: 8 kB / 384.9 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.1596, allocations: 23.97 kB / 384.9 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.1598, allocations: 23.91 kB / 385 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.1598, allocations: 11.94 kB / 385 MB, free: 4.926 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002283/0.16, allocations: 156.2 kB / 385.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1601, allocations: 0 / 385.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006456/0.1607, allocations: 71.92 kB / 385.2 MB, free: 4.703 MB / 318.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.0002921/0.161, allocations: 111.2 kB / 385.3 MB, free: 4.582 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009004/0.1619, allocations: 203.9 kB / 385.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.162, allocations: 0 / 385.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004386/0.1624, allocations: 103.8 kB / 385.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006965/0.1631, allocations: 32.53 kB / 385.6 MB, free: 4.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.1654, allocations: 0.6611 MB / 386.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004896/0.1659, allocations: 0.7402 MB / 387 MB, free: 2.789 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001309/0.166, allocations: 21.89 kB / 387.1 MB, free: 2.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.445e-05/0.1661, allocations: 19.44 kB / 387.1 MB, free: 2.75 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1661, allocations: 0 / 387.1 MB, free: 2.75 MB / 318.1 MB Notification: Performance of Templates: time 0.01268/0.1788, allocations: 3.226 MB / 390.3 MB, free: 15.52 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)