Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001161/0.001161, allocations: 105.1 kB / 17.05 MB, free: 6.027 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.001076/0.001076, allocations: 196 kB / 18 MB, free: 5.105 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.482/1.482, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001371/0.001371, allocations: 55.92 kB / 327.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1025, allocations: 46.61 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004586/0.1071, allocations: 2.975 MB / 377.4 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00265/0.1098, allocations: 1.209 MB / 378.7 MB, free: 388 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004537/0.1103, allocations: 4 kB / 378.7 MB, free: 384 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005657/0.1109, allocations: 79.3 kB / 378.7 MB, free: 304 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003549/0.1112, allocations: 122.9 kB / 378.9 MB, free: 180 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2648/0.376, allocations: 404 kB / 379.2 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.3773, allocations: 0.804 MB / 380.1 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.3776, allocations: 98.48 kB / 380.1 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005651/0.3781, allocations: 365.1 kB / 380.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.3807, allocations: 1.344 MB / 381.8 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001859/0.3809, allocations: 67.25 kB / 381.9 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00031/0.3812, allocations: 117 kB / 382 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003536/0.3816, allocations: 227.4 kB / 382.3 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000394/0.382, allocations: 350.7 kB / 382.6 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001245/0.3832, allocations: 0.8719 MB / 383.5 MB, free: 9.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.3832, allocations: 0.6094 kB / 383.5 MB, free: 9.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3832, allocations: 0 / 383.5 MB, free: 9.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.36e-05/0.3833, allocations: 1.094 kB / 383.5 MB, free: 9.371 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.004019/0.3873, allocations: 1.328 MB / 384.8 MB, free: 8.727 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.3874, allocations: 9.188 kB / 384.8 MB, free: 8.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.3875, allocations: 75.34 kB / 384.9 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000657/0.3882, allocations: 428.4 kB / 385.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.3883, allocations: 26.84 kB / 385.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.3884, allocations: 49.8 kB / 385.4 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002128/0.3905, allocations: 1.156 MB / 386.5 MB, free: 8.176 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.3905, allocations: 2.031 kB / 386.5 MB, free: 8.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.575e-05/0.3906, allocations: 20.45 kB / 386.5 MB, free: 8.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.3906, allocations: 8.781 kB / 386.6 MB, free: 8.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002968/0.3936, allocations: 1.743 MB / 388.3 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005161/0.3988, allocations: 2.472 MB / 390.8 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001927/0.4007, allocations: 0.9071 MB / 391.7 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001285/0.402, allocations: 0.7152 MB / 392.4 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.713e-05/0.4021, allocations: 9.453 kB / 392.4 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001689/0.4038, allocations: 0.8945 MB / 393.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 3.507e-06/0.4038, allocations: 0 / 393.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.01209/0.4159, allocations: 5.794 MB / 399.1 MB, free: 4.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.041e-05/0.416, allocations: 85.92 kB / 399.2 MB, free: 4.293 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.4174, allocations: 0.9101 MB / 400.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001077/0.4175, allocations: 50.16 kB / 400.1 MB, free: 3.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.4177, allocations: 303.1 kB / 400.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.4178, allocations: 168 kB / 400.6 MB, free: 3.414 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/0.418, allocations: 119.8 kB / 400.7 MB, free: 3.336 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.487e-05/0.4182, allocations: 380 kB / 401.1 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.4194, allocations: 0.8408 MB / 401.9 MB, free: 2.719 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.4205, allocations: 0.9472 MB / 402.9 MB, free: 1.898 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001673/0.4222, allocations: 1.457 MB / 404.3 MB, free: 428 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.4222, allocations: 0 / 404.3 MB, free: 428 kB / 318.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003735/0.4259, allocations: 2.494 MB / 406.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.4259, allocations: 8 kB / 406.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.426, allocations: 4 kB / 406.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002135/0.4281, allocations: 1.893 MB / 408.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005185/0.4286, allocations: 116.4 kB / 408.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008497/0.4371, allocations: 6.712 MB / 415.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.4388, allocations: 227.7 kB / 415.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.816e-05/0.4389, allocations: 20 kB / 415.8 MB, free: 4.703 MB / 334.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.0006151/0.4395, allocations: 267.7 kB / 416.1 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.4396, allocations: 67.16 kB / 416.1 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001904/0.4398, allocations: 110.2 kB / 416.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.86e-06/0.4398, allocations: 4 kB / 416.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.4399, allocations: 0 / 416.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.4399, allocations: 4.141 kB / 416.2 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004353/0.4442, allocations: 3.098 MB / 419.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.4443, allocations: 2.5 kB / 419.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000526/0.4448, allocations: 79.88 kB / 419.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001993/0.4468, allocations: 1.869 MB / 421.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.734e-05/0.4469, allocations: 19.97 kB / 421.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007997/0.4549, allocations: 6.332 MB / 427.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4549, allocations: 0 / 427.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005278/0.4602, allocations: 3.225 MB / 430.9 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004913/0.4607, allocations: 212.2 kB / 431.1 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.4608, allocations: 20 kB / 431.1 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/0.4625, allocations: 271.6 kB / 431.4 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00149/0.464, allocations: 0.5616 MB / 431.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.887e-05/0.4641, allocations: 27.95 kB / 431.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009693/0.4651, allocations: 0.6748 MB / 432.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4651, allocations: 0 / 432.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009725/0.4661, allocations: 188 kB / 432.8 MB, free: 3.27 MB / 350.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.0002944/0.4664, allocations: 153.8 kB / 433 MB, free: 3.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003152/0.4695, allocations: 1.918 MB / 434.9 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4696, allocations: 4.062 kB / 434.9 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.4714, allocations: 1.091 MB / 436 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006569/0.4721, allocations: 71.89 kB / 436 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004436/0.4766, allocations: 1.954 MB / 438 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005442/0.4771, allocations: 0.9221 MB / 438.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002085/0.4773, allocations: 39.27 kB / 438.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.4775, allocations: 51.34 kB / 439 MB, free: 12.97 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4775, allocations: 0 / 439 MB, free: 12.97 MB / 366.1 MB Notification: Performance of Templates: time 0.03849/0.516, allocations: 25.74 MB / 464.7 MB, free: 3.219 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)