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.01103/0.01103, allocations: 107.3 kB / 15.74 MB, free: 6.039 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.001487/0.001487, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.617/1.617, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001224/0.001225, allocations: 55.42 kB / 326.5 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.109, allocations: 46.62 MB / 373.2 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003745/0.1128, allocations: 2.154 MB / 375.3 MB, free: 15.28 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.1143, allocations: 0.7369 MB / 376.1 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.1144, allocations: 7.938 kB / 376.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.1147, allocations: 31.72 kB / 376.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001728/0.1148, allocations: 67.41 kB / 376.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003628/0.1152, allocations: 111.8 kB / 376.3 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.1155, allocations: 283.3 kB / 376.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.1157, allocations: 60.3 kB / 376.6 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001783/0.1159, allocations: 115.6 kB / 376.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.1161, allocations: 127.5 kB / 376.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.529e-05/0.1161, allocations: 24 kB / 376.9 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.1163, allocations: 71.88 kB / 376.9 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.995e-05/0.1164, allocations: 51.83 kB / 377 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.1165, allocations: 115.5 kB / 377.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003545/0.1168, allocations: 275.2 kB / 377.4 MB, free: 13.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.1168, allocations: 3.938 kB / 377.4 MB, free: 13.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1169, allocations: 0 / 377.4 MB, free: 13.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.1169, allocations: 0 / 377.4 MB, free: 13.21 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.001119/0.118, allocations: 0.5588 MB / 377.9 MB, free: 12.6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.118, allocations: 11.97 kB / 377.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.187e-05/0.1181, allocations: 28.66 kB / 378 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000448/0.1186, allocations: 239.8 kB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.1186, allocations: 12.38 kB / 378.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.93e-05/0.1187, allocations: 24.38 kB / 378.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004858/0.1192, allocations: 239.5 kB / 378.5 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.1192, allocations: 0 / 378.5 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.1192, allocations: 8 kB / 378.5 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1192, allocations: 8 kB / 378.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004934/0.1197, allocations: 191.8 kB / 378.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.1208, allocations: 0.6564 MB / 379.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006368/0.1214, allocations: 210.3 kB / 379.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/0.1217, allocations: 100.8 kB / 379.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.1217, allocations: 4 kB / 379.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004014/0.1222, allocations: 167.1 kB / 379.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.344e-06/0.1222, allocations: 0 / 379.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002747/0.1249, allocations: 1.152 MB / 381 MB, free: 9.328 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.125, allocations: 59.39 kB / 381 MB, free: 9.258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/0.1253, allocations: 195 kB / 381.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.1253, allocations: 29.7 kB / 381.2 MB, free: 9.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.1254, allocations: 140.3 kB / 381.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.282e-05/0.1255, allocations: 74.91 kB / 381.4 MB, free: 8.805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.1256, allocations: 65.61 kB / 381.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.1258, allocations: 338.8 kB / 381.8 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002961/0.1261, allocations: 100.3 kB / 381.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.1264, allocations: 156.3 kB / 382.1 MB, free: 8.129 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005216/0.127, allocations: 234.7 kB / 382.3 MB, free: 7.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.127, allocations: 4 kB / 382.3 MB, free: 7.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008514/0.1278, allocations: 405 kB / 382.7 MB, free: 7.469 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.924e-05/0.1279, allocations: 33.64 kB / 382.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.1279, allocations: 11.94 kB / 382.8 MB, free: 7.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002608/0.1282, allocations: 72.88 kB / 382.8 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000213/0.1284, allocations: 51.91 kB / 382.9 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005454/0.129, allocations: 0.6147 MB / 383.5 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002646/0.1292, allocations: 27.97 kB / 383.5 MB, free: 6.625 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.1293, allocations: 12 kB / 383.5 MB, free: 6.613 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.0001598/0.1294, allocations: 141.8 kB / 383.7 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.088e-05/0.1295, allocations: 27.8 kB / 383.7 MB, free: 6.438 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.336e-05/0.1296, allocations: 21.88 kB / 383.7 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-06/0.1296, allocations: 3.938 kB / 383.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.1296, allocations: 4.047 kB / 383.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.1296, allocations: 7.969 kB / 383.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.1308, allocations: 0.6867 MB / 384.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1308, allocations: 0 / 384.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000218/0.131, allocations: 43.91 kB / 384.5 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000184/0.1312, allocations: 68.89 kB / 384.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.1312, allocations: 4 kB / 384.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004983/0.1317, allocations: 0.6109 MB / 385.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1317, allocations: 0 / 385.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009976/0.1327, allocations: 0.5129 MB / 385.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.308e-05/0.1328, allocations: 108.8 kB / 385.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.002e-05/0.1329, allocations: 8 kB / 385.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.1332, allocations: 27.97 kB / 385.8 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.458e-05/0.1333, allocations: 31.95 kB / 385.8 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.37e-05/0.1334, allocations: 11.98 kB / 385.8 MB, free: 4.168 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.1335, allocations: 143.2 kB / 386 MB, free: 4.027 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1335, allocations: 0 / 386 MB, free: 4.027 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003433/0.1338, allocations: 72 kB / 386.1 MB, free: 3.957 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.0002043/0.1341, allocations: 119.6 kB / 386.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008247/0.1349, allocations: 324.2 kB / 386.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.1349, allocations: 8.062 kB / 386.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003471/0.1353, 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.0004054/0.1357, allocations: 43.84 kB / 386.7 MB, free: 3.305 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.1371, allocations: 0.6435 MB / 387.3 MB, free: 2.633 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.1376, allocations: 0.7401 MB / 388.1 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001089/0.1377, allocations: 25.94 kB / 388.1 MB, free: 1.844 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.399e-05/0.1378, allocations: 19.44 kB / 388.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1378, allocations: 0 / 388.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of Templates: time 0.008639/0.1464, allocations: 3.835 MB / 391.9 MB, free: 13.98 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)