Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.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.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00974/0.00974, allocations: 100.9 kB / 15.73 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.001422/0.001422, allocations: 186.5 kB / 16.67 MB, free: 5.969 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.529/1.529, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.001205/0.001205, allocations: 53.06 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.118, allocations: 46.62 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00498/0.1231, allocations: 2.984 MB / 376.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00293/0.1261, allocations: 1.201 MB / 377.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000315/0.1264, allocations: 8 kB / 377.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006211/0.1271, allocations: 83.23 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004036/0.1275, allocations: 118.9 kB / 377.5 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001235/0.1288, allocations: 407.2 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009123/0.1297, allocations: 0.8036 MB / 378.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002522/0.13, allocations: 97.58 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005583/0.1305, allocations: 363.1 kB / 379.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001586/0.1321, allocations: 1.342 MB / 380.5 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.1323, allocations: 68 kB / 380.6 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002641/0.1325, allocations: 123.9 kB / 380.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002652/0.1328, allocations: 219.8 kB / 380.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003571/0.1332, allocations: 350 kB / 381.3 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.1342, allocations: 0.876 MB / 382.2 MB, free: 8.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1343, allocations: 0 / 382.2 MB, free: 8.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1343, allocations: 0 / 382.2 MB, free: 8.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.1343, allocations: 3.984 kB / 382.2 MB, free: 8.285 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.004002/0.1383, allocations: 1.328 MB / 383.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.1384, allocations: 8.031 kB / 383.5 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.1385, allocations: 76.09 kB / 383.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006921/0.1392, allocations: 427.5 kB / 384 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.446e-05/0.1393, allocations: 29.38 kB / 384 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.1394, allocations: 36.28 kB / 384.1 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001994/0.1414, allocations: 1.161 MB / 385.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.1414, allocations: 4 kB / 385.2 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.629e-05/0.1415, allocations: 19.98 kB / 385.2 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.1415, allocations: 11.98 kB / 385.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002791/0.1443, allocations: 1.748 MB / 387 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004586/0.1489, allocations: 2.474 MB / 389.5 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.1507, allocations: 0.907 MB / 390.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/0.1518, allocations: 0.7084 MB / 391.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.871e-05/0.1518, allocations: 15.91 kB / 391.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001723/0.1536, allocations: 0.8933 MB / 392 MB, free: 14.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.484e-06/0.1536, allocations: 4 kB / 392 MB, free: 14.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.0121/0.1657, allocations: 5.792 MB / 397.8 MB, free: 8.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.1658, allocations: 85.11 kB / 397.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.1671, allocations: 0.9141 MB / 398.8 MB, free: 7.238 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001111/0.1672, allocations: 45.7 kB / 398.8 MB, free: 7.188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002664/0.1675, allocations: 296.3 kB / 399.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.1677, allocations: 165.8 kB / 399.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002491/0.1679, allocations: 118.2 kB / 399.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.1682, allocations: 378.8 kB / 399.8 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001308/0.1695, allocations: 0.8524 MB / 400.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.1709, allocations: 0.9363 MB / 401.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002199/0.1731, allocations: 1.461 MB / 403 MB, free: 2.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1731, allocations: 0 / 403 MB, free: 2.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003939/0.177, allocations: 2.494 MB / 405.5 MB, free: 412 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.1771, allocations: 4 kB / 405.5 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.1771, allocations: 4 kB / 405.5 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/0.1793, allocations: 1.9 MB / 407.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005315/0.1798, allocations: 111.9 kB / 407.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007926/0.1878, allocations: 6.707 MB / 414.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/0.1895, allocations: 231.7 kB / 414.5 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.1897, allocations: 24 kB / 414.5 MB, free: 7.113 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0006018/0.1903, allocations: 263.8 kB / 414.7 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.1905, allocations: 75.16 kB / 414.8 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002404/0.1908, allocations: 98.17 kB / 414.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.1908, allocations: 4 kB / 414.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.1908, allocations: 4 kB / 414.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1908, allocations: 7.984 kB / 414.9 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004718/0.1955, allocations: 3.09 MB / 418 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.1956, allocations: 0 / 418 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005277/0.1961, allocations: 87.94 kB / 418.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002093/0.1982, allocations: 1.869 MB / 420 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.354e-05/0.1983, allocations: 23.97 kB / 420 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007959/0.2063, allocations: 6.318 MB / 426.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.2064, allocations: 8.094 kB / 426.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005877/0.2122, allocations: 3.229 MB / 429.6 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006241/0.2129, allocations: 212.2 kB / 429.8 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001944/0.2131, allocations: 20 kB / 429.8 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001922/0.2151, allocations: 271.6 kB / 430 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001523/0.2166, allocations: 0.5616 MB / 430.6 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001531/0.2168, allocations: 31.95 kB / 430.6 MB, free: 6.492 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001069/0.2179, allocations: 0.6709 MB / 431.3 MB, free: 5.828 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2179, allocations: 0 / 431.3 MB, free: 5.828 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009799/0.2189, allocations: 192 kB / 431.5 MB, free: 5.641 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003979/0.2193, allocations: 151.1 kB / 431.6 MB, free: 5.484 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003533/0.2228, allocations: 1.914 MB / 433.6 MB, free: 3.543 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/0.2229, allocations: 4 kB / 433.6 MB, free: 3.539 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002133/0.225, allocations: 1.087 MB / 434.6 MB, free: 2.426 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007378/0.2258, allocations: 79.09 kB / 434.7 MB, free: 2.348 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005072/0.2309, allocations: 1.963 MB / 436.7 MB, free: 356 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007133/0.2316, allocations: 0.9182 MB / 437.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000269/0.2319, allocations: 43.27 kB / 437.6 MB, free: 15.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.232, allocations: 39.42 kB / 437.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of SimCode: time 1.944e-06/0.232, allocations: 0 / 437.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of Templates: time 0.2903/0.5224, allocations: 24.38 MB / 462.1 MB, free: 73.45 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)