Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001309/0.001309, allocations: 109 kB / 16.92 MB, free: 5.742 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: 191.3 kB / 17.85 MB, free: 5.176 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.68/1.68, allocations: 205.1 MB / 223.7 MB, free: 12.35 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.001476/0.001476, allocations: 51.92 kB / 280 MB, free: 3.191 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1033, allocations: 46.63 MB / 326.6 MB, free: 4.492 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003315/0.1066, allocations: 2.164 MB / 328.8 MB, free: 2.305 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.1078, allocations: 0.7294 MB / 329.5 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.697e-05/0.1079, allocations: 4 kB / 329.5 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.1081, allocations: 39.66 kB / 329.6 MB, free: 1.523 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.1083, allocations: 63.47 kB / 329.6 MB, free: 1.461 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000343/0.1086, allocations: 107.7 kB / 329.7 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.1089, allocations: 283.4 kB / 330 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.1091, allocations: 52.38 kB / 330 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/0.1093, allocations: 115.6 kB / 330.2 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.1095, allocations: 127.5 kB / 330.3 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/0.1095, allocations: 20 kB / 330.3 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.1096, allocations: 67.89 kB / 330.4 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.094e-05/0.1097, allocations: 59.81 kB / 330.4 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.1099, allocations: 111.4 kB / 330.5 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002942/0.1102, allocations: 279.4 kB / 330.8 MB, free: 268 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1102, allocations: 0 / 330.8 MB, free: 268 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1102, allocations: 0 / 330.8 MB, free: 268 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1102, allocations: 4 kB / 330.8 MB, free: 264 kB / 270.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.001023/0.1112, allocations: 0.5587 MB / 331.4 MB, free: 15.64 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.1113, allocations: 12.03 kB / 331.4 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.76e-05/0.1113, allocations: 24.66 kB / 331.4 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.1116, allocations: 235.9 kB / 331.6 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.1116, allocations: 16.31 kB / 331.7 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.546e-05/0.1117, allocations: 20.38 kB / 331.7 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004721/0.1122, allocations: 239.5 kB / 331.9 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.1122, allocations: 4 kB / 331.9 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.1122, allocations: 4 kB / 331.9 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.1122, allocations: 4 kB / 331.9 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004823/0.1127, allocations: 199.8 kB / 332.1 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.1137, allocations: 0.668 MB / 332.8 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005569/0.1143, allocations: 206.4 kB / 333 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.1146, allocations: 96.81 kB / 333.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.1146, allocations: 11.88 kB / 333.1 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004067/0.115, allocations: 167.5 kB / 333.3 MB, free: 13.63 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.904e-06/0.115, allocations: 0 / 333.3 MB, free: 13.63 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002461/0.1175, allocations: 1.156 MB / 334.4 MB, free: 12.36 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.1175, allocations: 59.39 kB / 334.5 MB, free: 12.29 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.1177, allocations: 194.9 kB / 334.7 MB, free: 12.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.1178, allocations: 29.7 kB / 334.7 MB, free: 12.06 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.874e-05/0.1179, allocations: 136.3 kB / 334.8 MB, free: 11.92 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.483e-05/0.1179, allocations: 86.75 kB / 334.9 MB, free: 11.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1181, allocations: 61.7 kB / 335 MB, free: 11.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1182, allocations: 334.8 kB / 335.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002753/0.1185, allocations: 104.3 kB / 335.4 MB, free: 11.33 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000294/0.1188, allocations: 159.8 kB / 335.6 MB, free: 11.16 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004904/0.1193, allocations: 238.7 kB / 335.8 MB, free: 10.91 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1193, allocations: 4 kB / 335.8 MB, free: 10.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008785/0.1202, allocations: 400.9 kB / 336.2 MB, free: 10.5 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.1202, allocations: 33.7 kB / 336.2 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.1202, allocations: 3.938 kB / 336.2 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002534/0.1205, allocations: 80.89 kB / 336.3 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.1207, allocations: 51.91 kB / 336.3 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000492/0.1212, allocations: 0.6109 MB / 337 MB, free: 9.691 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.1215, allocations: 32.06 kB / 337 MB, free: 9.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.1215, allocations: 16 kB / 337 MB, free: 9.645 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: 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.0001355/0.1217, allocations: 142 kB / 337.1 MB, free: 9.496 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-05/0.1217, allocations: 23.7 kB / 337.2 MB, free: 9.473 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.006e-05/0.1218, allocations: 21.88 kB / 337.2 MB, free: 9.449 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1218, allocations: 4 kB / 337.2 MB, free: 9.445 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1218, allocations: 0 / 337.2 MB, free: 9.445 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.1218, allocations: 3.984 kB / 337.2 MB, free: 9.441 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.123, allocations: 0.6785 MB / 337.9 MB, free: 8.703 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.123, allocations: 0 / 337.9 MB, free: 8.703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002143/0.1232, allocations: 43.97 kB / 337.9 MB, free: 8.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001679/0.1234, allocations: 76.8 kB / 338 MB, free: 8.582 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.1234, allocations: 4 kB / 338 MB, free: 8.578 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004709/0.1239, allocations: 0.6069 MB / 338.6 MB, free: 7.945 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.1239, allocations: 4.031 kB / 338.6 MB, free: 7.941 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009904/0.1249, allocations: 0.5114 MB / 339.1 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000198/0.1251, allocations: 104.9 kB / 339.2 MB, free: 7.289 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.449e-05/0.1252, allocations: 8 kB / 339.2 MB, free: 7.281 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.1254, allocations: 27.97 kB / 339.3 MB, free: 7.254 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.461e-05/0.1255, allocations: 35.95 kB / 339.3 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.1255, allocations: 7.984 kB / 339.3 MB, free: 7.211 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001241/0.1257, allocations: 143.2 kB / 339.4 MB, free: 7.07 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1257, allocations: 0 / 339.4 MB, free: 7.07 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003499/0.126, allocations: 68 kB / 339.5 MB, free: 7.004 MB / 286.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.000229/0.1263, allocations: 131.2 kB / 339.6 MB, free: 6.867 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008462/0.1271, allocations: 340.8 kB / 340 MB, free: 6.523 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1271, allocations: 0 / 340 MB, free: 6.523 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000367/0.1275, allocations: 143.8 kB / 340.1 MB, free: 6.383 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004263/0.1279, allocations: 39.91 kB / 340.1 MB, free: 6.344 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.1293, allocations: 0.663 MB / 340.8 MB, free: 5.656 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.1297, allocations: 0.7439 MB / 341.6 MB, free: 4.887 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000101/0.1298, allocations: 21.95 kB / 341.6 MB, free: 4.863 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.966e-05/0.1298, allocations: 15.44 kB / 341.6 MB, free: 4.848 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1298, allocations: 0 / 341.6 MB, free: 4.848 MB / 286.1 MB Notification: Performance of Templates: time 0.008184/0.138, allocations: 3.794 MB / 345.4 MB, free: 1.051 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1)