Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.008535/0.008535, allocations: 97.73 kB / 15.73 MB, free: 6.047 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.001471/0.001472, allocations: 202.3 kB / 16.68 MB, free: 5.965 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.589/1.589, allocations: 205.1 MB / 222.6 MB, free: 4.516 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.001158/0.001158, allocations: 57.5 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/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.003522/0.1307, allocations: 2.193 MB / 375.4 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.1321, allocations: 0.7407 MB / 376.1 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.1323, allocations: 4 kB / 376.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002023/0.1325, allocations: 31.66 kB / 376.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.1327, allocations: 71.47 kB / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003246/0.133, allocations: 99.75 kB / 376.3 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002806/0.1333, allocations: 255.5 kB / 376.5 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.1335, allocations: 72.31 kB / 376.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.1336, allocations: 111.6 kB / 376.7 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.1338, allocations: 115.5 kB / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.774e-05/0.1339, allocations: 20 kB / 376.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001307/0.134, allocations: 79.88 kB / 376.9 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.625e-05/0.1341, allocations: 47.84 kB / 377 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.1342, allocations: 107.5 kB / 377.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.1346, allocations: 278.9 kB / 377.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1346, allocations: 4 kB / 377.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1346, allocations: 4 kB / 377.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1346, allocations: 3.938 kB / 377.4 MB, free: 13.09 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.0008803/0.1355, allocations: 0.5182 MB / 377.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.1355, allocations: 12.03 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.974e-05/0.1356, allocations: 24.8 kB / 377.9 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003902/0.136, allocations: 239.9 kB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.1361, allocations: 20.81 kB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.653e-05/0.1361, allocations: 20.33 kB / 378.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004299/0.1365, allocations: 230 kB / 378.4 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.1366, allocations: 0 / 378.4 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.385e-05/0.1366, allocations: 8 kB / 378.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.1366, allocations: 8 kB / 378.4 MB, free: 11.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003369/0.137, allocations: 165 kB / 378.6 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.1382, allocations: 0.776 MB / 379.4 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003725/0.1386, allocations: 126.5 kB / 379.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.1387, allocations: 72.83 kB / 379.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.1388, allocations: 0 / 379.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.1388, allocations: 38.56 kB / 379.6 MB, free: 10.67 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.042e-06/0.1388, allocations: 0 / 379.6 MB, free: 10.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001955/0.1408, allocations: 0.9948 MB / 380.6 MB, free: 9.559 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.1408, allocations: 55.41 kB / 380.7 MB, free: 9.492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.141, allocations: 203.4 kB / 380.9 MB, free: 9.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.1411, allocations: 33.64 kB / 380.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.1412, allocations: 144.3 kB / 381 MB, free: 9.098 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.907e-05/0.1412, allocations: 79.36 kB / 381.1 MB, free: 9.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.433e-05/0.1413, allocations: 49.7 kB / 381.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1415, allocations: 342.8 kB / 381.5 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.1417, allocations: 71.97 kB / 381.6 MB, free: 8.551 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.1418, allocations: 111.6 kB / 381.7 MB, free: 8.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002926/0.1421, allocations: 176.7 kB / 381.8 MB, free: 8.246 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1422, allocations: 0 / 381.8 MB, free: 8.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005003/0.1427, allocations: 287.9 kB / 382.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.1427, allocations: 4 kB / 382.1 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.1427, allocations: 4 kB / 382.1 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00027/0.143, allocations: 76.81 kB / 382.2 MB, free: 7.871 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.1431, allocations: 31.98 kB / 382.2 MB, free: 7.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005607/0.1437, allocations: 0.6264 MB / 382.9 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/0.1439, allocations: 20.02 kB / 382.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.144, allocations: 8 kB / 382.9 MB, free: 7.16 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.0001391/0.1441, allocations: 145.8 kB / 383 MB, free: 7.008 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.764e-05/0.1442, allocations: 19.91 kB / 383.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.051e-05/0.1442, allocations: 21.88 kB / 383.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1443, allocations: 7.938 kB / 383.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.1443, allocations: 0 / 383.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.1443, allocations: 3.984 kB / 383.1 MB, free: 6.957 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008815/0.1452, allocations: 0.5998 MB / 383.7 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1452, allocations: 4 kB / 383.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001566/0.1453, allocations: 27.98 kB / 383.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001689/0.1455, allocations: 64.86 kB / 383.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.1456, allocations: 11.98 kB / 383.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004599/0.146, allocations: 0.6227 MB / 384.4 MB, free: 5.535 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.146, allocations: 0 / 384.4 MB, free: 5.535 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006016/0.1466, allocations: 421.8 kB / 384.8 MB, free: 5.098 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.295e-05/0.1467, allocations: 109 kB / 384.9 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.1468, allocations: 4 kB / 384.9 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.147, allocations: 23.97 kB / 385 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.16e-05/0.1471, allocations: 31.91 kB / 385 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.1471, allocations: 4 kB / 385 MB, free: 4.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.1472, allocations: 156.2 kB / 385.2 MB, free: 4.758 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1472, allocations: 4 kB / 385.2 MB, free: 4.754 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003304/0.1476, allocations: 67.92 kB / 385.2 MB, free: 4.688 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.0002105/0.1478, allocations: 123.1 kB / 385.3 MB, free: 4.555 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005206/0.1483, allocations: 195.8 kB / 385.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1483, allocations: 4 kB / 385.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002232/0.1485, allocations: 99.98 kB / 385.6 MB, free: 4.262 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003967/0.149, allocations: 36.39 kB / 385.7 MB, free: 4.227 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.1503, allocations: 0.664 MB / 386.3 MB, free: 3.527 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.1506, allocations: 0.7402 MB / 387.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.026e-05/0.1507, allocations: 13.95 kB / 387.1 MB, free: 2.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.506e-05/0.1508, allocations: 19.44 kB / 387.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of SimCode: time 2.335e-06/0.1508, allocations: 0 / 387.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of Templates: time 0.007399/0.1582, allocations: 3.234 MB / 390.3 MB, free: 15.49 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)