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.01019/0.01019, allocations: 104.1 kB / 15.73 MB, free: 5.992 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.002049/0.002049, allocations: 187 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.603/1.603, allocations: 205.1 MB / 222.6 MB, free: 4.484 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.001209/0.001209, allocations: 58.03 kB / 326.5 MB, free: 14.54 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1089, allocations: 46.62 MB / 373.2 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003931/0.1129, allocations: 2.158 MB / 375.3 MB, free: 15.28 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.1141, allocations: 0.7485 MB / 376.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.1143, allocations: 4 kB / 376.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001923/0.1145, allocations: 27.72 kB / 376.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.1147, allocations: 75.41 kB / 376.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003622/0.115, allocations: 111.7 kB / 376.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003174/0.1154, allocations: 275.4 kB / 376.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.1155, allocations: 60.3 kB / 376.6 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001998/0.1157, allocations: 123.6 kB / 376.7 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001933/0.1159, allocations: 131.4 kB / 376.9 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.116, allocations: 20 kB / 376.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.1161, allocations: 75.95 kB / 376.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.086e-05/0.1162, allocations: 47.83 kB / 377 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.1163, allocations: 111.5 kB / 377.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003487/0.1167, allocations: 275.1 kB / 377.4 MB, free: 13.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1167, allocations: 3.938 kB / 377.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1167, allocations: 0 / 377.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1167, allocations: 7.984 kB / 377.4 MB, free: 13.2 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.00101/0.1178, allocations: 0.5549 MB / 377.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.1178, allocations: 8.031 kB / 377.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.463e-05/0.1179, allocations: 24.66 kB / 378 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000374/0.1183, allocations: 239.8 kB / 378.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.1183, allocations: 16.38 kB / 378.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.761e-05/0.1184, allocations: 20.36 kB / 378.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004848/0.1189, allocations: 235.5 kB / 378.5 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.1189, allocations: 8 kB / 378.5 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/0.119, allocations: 8 kB / 378.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.119, allocations: 7.938 kB / 378.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005015/0.1195, allocations: 187.8 kB / 378.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009999/0.1205, allocations: 0.6681 MB / 379.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005622/0.1211, allocations: 206.3 kB / 379.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002176/0.1213, allocations: 96.81 kB / 379.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.1213, allocations: 0 / 379.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003447/0.1217, allocations: 167.1 kB / 379.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.1217, allocations: 4 kB / 379.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002388/0.1241, allocations: 1.149 MB / 381 MB, free: 9.324 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.1241, allocations: 55.41 kB / 381 MB, free: 9.258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.1243, allocations: 195 kB / 381.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.1244, allocations: 33.7 kB / 381.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.346e-05/0.1245, allocations: 140.2 kB / 381.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.782e-05/0.1246, allocations: 78.91 kB / 381.4 MB, free: 8.797 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.1247, allocations: 65.59 kB / 381.5 MB, free: 8.727 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1248, allocations: 330.8 kB / 381.8 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.1251, allocations: 112.2 kB / 381.9 MB, free: 8.281 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002766/0.1254, allocations: 148.2 kB / 382.1 MB, free: 8.125 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004869/0.1259, allocations: 238.8 kB / 382.3 MB, free: 7.875 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1259, allocations: 0 / 382.3 MB, free: 7.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008472/0.1267, allocations: 397 kB / 382.7 MB, free: 7.473 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.463e-05/0.1268, allocations: 46.72 kB / 382.8 MB, free: 7.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.1268, allocations: 3.938 kB / 382.8 MB, free: 7.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002659/0.1271, allocations: 72.83 kB / 382.8 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.1273, allocations: 43.97 kB / 382.9 MB, free: 7.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005023/0.1278, allocations: 0.6186 MB / 383.5 MB, free: 6.656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.1281, allocations: 40 kB / 383.5 MB, free: 6.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.1281, allocations: 8 kB / 383.5 MB, free: 6.609 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.0001508/0.1283, allocations: 153.7 kB / 383.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.533e-05/0.1283, allocations: 15.81 kB / 383.7 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.873e-05/0.1284, allocations: 25.88 kB / 383.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1284, allocations: 4 kB / 383.7 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.1284, allocations: 0 / 383.7 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1284, allocations: 3.984 kB / 383.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.1295, allocations: 0.6828 MB / 384.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1295, allocations: 0 / 384.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002116/0.1297, allocations: 43.91 kB / 384.5 MB, free: 5.617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001743/0.1299, allocations: 72.8 kB / 384.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/0.13, allocations: 15.98 kB / 384.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004396/0.1304, allocations: 0.5993 MB / 385.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1304, allocations: 0 / 385.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009243/0.1314, allocations: 0.5168 MB / 385.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.1315, allocations: 112.8 kB / 385.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.721e-05/0.1315, allocations: 8 kB / 385.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.1318, allocations: 27.97 kB / 385.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.1319, allocations: 35.94 kB / 385.8 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.987e-05/0.1319, allocations: 12 kB / 385.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001515/0.1321, allocations: 135.2 kB / 386 MB, free: 4.023 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1321, allocations: 0 / 386 MB, free: 4.023 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003566/0.1325, allocations: 72 kB / 386.1 MB, free: 3.953 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.0002275/0.1327, allocations: 115.6 kB / 386.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008/0.1335, allocations: 328.3 kB / 386.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.1335, allocations: 4 kB / 386.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003798/0.1339, allocations: 147.8 kB / 386.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004581/0.1344, allocations: 48.02 kB / 386.7 MB, free: 3.301 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.136, allocations: 0.6473 MB / 387.3 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.1364, allocations: 0.7402 MB / 388.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.1365, allocations: 17.95 kB / 388.1 MB, free: 1.844 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.1366, allocations: 23.44 kB / 388.1 MB, free: 1.82 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1366, allocations: 0 / 388.1 MB, free: 1.82 MB / 318.1 MB Notification: Performance of Templates: time 0.01019/0.1468, allocations: 3.843 MB / 392 MB, free: 13.97 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)