Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.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.005066/0.005066, allocations: 102.4 kB / 15.73 MB, free: 6.441 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.001083/0.001083, allocations: 198.3 kB / 16.67 MB, free: 6.355 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.519/1.519, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.001312/0.001312, allocations: 53.55 kB / 326.5 MB, free: 14.49 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1155, allocations: 46.62 MB / 373.2 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005071/0.1206, allocations: 2.976 MB / 376.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002435/0.1231, allocations: 1.201 MB / 377.3 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002283/0.1234, allocations: 7.938 kB / 377.3 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005336/0.1239, allocations: 87.3 kB / 377.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.1242, allocations: 114.9 kB / 377.5 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.1253, allocations: 407.2 kB / 377.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008609/0.1261, allocations: 0.7997 MB / 378.7 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000282/0.1264, allocations: 101.6 kB / 378.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004663/0.1269, allocations: 363.1 kB / 379.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.1283, allocations: 1.335 MB / 380.5 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001244/0.1284, allocations: 68 kB / 380.6 MB, free: 9.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000235/0.1287, allocations: 123.9 kB / 380.7 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002352/0.1289, allocations: 219.8 kB / 380.9 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003318/0.1292, allocations: 354 kB / 381.3 MB, free: 9.277 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009507/0.1302, allocations: 0.8721 MB / 382.1 MB, free: 8.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.1302, allocations: 0 / 382.1 MB, free: 8.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1302, allocations: 4 kB / 382.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.1303, allocations: 0 / 382.2 MB, free: 8.398 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.00377/0.134, allocations: 1.328 MB / 383.5 MB, free: 7.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.1341, allocations: 12.03 kB / 383.5 MB, free: 7.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/0.1343, allocations: 76.09 kB / 383.6 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007516/0.1351, allocations: 427.5 kB / 384 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.145e-05/0.1351, allocations: 25.38 kB / 384 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.1352, allocations: 44.28 kB / 384.1 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001905/0.1372, allocations: 1.15 MB / 385.2 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.1372, allocations: 11.94 kB / 385.2 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-05/0.1373, allocations: 12 kB / 385.2 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.1373, allocations: 12 kB / 385.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003038/0.1404, allocations: 1.748 MB / 387 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004448/0.1448, allocations: 2.474 MB / 389.5 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00192/0.1468, allocations: 0.9069 MB / 390.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/0.148, allocations: 0.7084 MB / 391.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.913e-05/0.1481, allocations: 8 kB / 391.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001574/0.1497, allocations: 0.901 MB / 392 MB, free: 14.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.705e-06/0.1497, allocations: 0 / 392 MB, free: 14.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01268/0.1624, allocations: 5.803 MB / 397.8 MB, free: 8.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/0.1625, allocations: 85.11 kB / 397.9 MB, free: 8.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.1637, allocations: 0.9102 MB / 398.8 MB, free: 7.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.332e-05/0.1638, allocations: 49.69 kB / 398.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.1641, allocations: 296.3 kB / 399.1 MB, free: 7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.1642, allocations: 169.8 kB / 399.3 MB, free: 6.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/0.1645, allocations: 114.2 kB / 399.4 MB, free: 6.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.1647, allocations: 378.8 kB / 399.8 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001396/0.1661, allocations: 0.8486 MB / 400.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/0.1675, allocations: 0.9363 MB / 401.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002249/0.1697, allocations: 1.465 MB / 403 MB, free: 3.023 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1698, allocations: 0 / 403 MB, free: 3.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004045/0.1738, allocations: 2.49 MB / 405.5 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.1738, allocations: 4 kB / 405.5 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.1739, allocations: 8 kB / 405.5 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002086/0.176, allocations: 1.904 MB / 407.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005187/0.1765, allocations: 111.9 kB / 407.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008205/0.1847, allocations: 6.707 MB / 414.2 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.1862, allocations: 227.8 kB / 414.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.834e-05/0.1863, allocations: 20 kB / 414.5 MB, free: 7.227 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.0004452/0.1867, allocations: 267.8 kB / 414.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.1869, allocations: 75.16 kB / 414.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001993/0.1871, allocations: 102.2 kB / 414.9 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1871, allocations: 4 kB / 414.9 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1871, allocations: 4 kB / 414.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.1871, allocations: 0 / 414.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004257/0.1914, allocations: 3.09 MB / 418 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.1914, allocations: 0 / 418 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004818/0.1919, allocations: 87.94 kB / 418.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001924/0.1938, allocations: 1.869 MB / 420 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.524e-05/0.1939, allocations: 19.97 kB / 420 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007057/0.2009, allocations: 6.33 MB / 426.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.201, allocations: 4.031 kB / 426.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00492/0.2059, allocations: 3.229 MB / 429.5 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003491/0.2062, allocations: 208.2 kB / 429.8 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.2064, allocations: 20 kB / 429.8 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/0.2081, allocations: 267.6 kB / 430 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001312/0.2094, allocations: 0.5694 MB / 430.6 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.544e-05/0.2095, allocations: 31.95 kB / 430.6 MB, free: 6.602 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006831/0.2102, allocations: 0.6748 MB / 431.3 MB, free: 5.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2102, allocations: 3.938 kB / 431.3 MB, free: 5.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008005/0.211, allocations: 180 kB / 431.5 MB, free: 5.754 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.00032/0.2113, allocations: 155.1 kB / 431.6 MB, free: 5.594 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002955/0.2143, allocations: 1.925 MB / 433.6 MB, free: 3.641 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.2143, allocations: 0 / 433.6 MB, free: 3.641 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001647/0.2159, allocations: 1.083 MB / 434.6 MB, free: 2.531 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006173/0.2166, allocations: 78.91 kB / 434.7 MB, free: 2.453 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/0.2207, allocations: 1.959 MB / 436.7 MB, free: 468 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004954/0.2212, allocations: 0.9182 MB / 437.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.2214, allocations: 43.28 kB / 437.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.2216, allocations: 43.42 kB / 437.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2216, allocations: 0 / 437.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of Templates: time 0.2553/0.4769, allocations: 24.37 MB / 462.1 MB, free: 74.02 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)