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.0009936/0.0009936, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001108/0.001109, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0007063/0.0007064, allocations: 14.66 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2979, allocations: 47.59 MB / 326.5 MB, free: 1.613 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002601/0.3005, allocations: 2.531 MB / 329 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.3025, allocations: 1.15 MB / 330.2 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.3027, allocations: 12.28 kB / 330.2 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000332/0.303, allocations: 54 kB / 330.2 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001687/0.3032, allocations: 102 kB / 330.3 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007106/0.3039, allocations: 328.3 kB / 330.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006425/0.3045, allocations: 0.6821 MB / 331.3 MB, free: 13.87 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.3047, allocations: 82.09 kB / 331.4 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003878/0.3051, allocations: 319 kB / 331.7 MB, free: 13.65 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001502/0.3066, allocations: 1.427 MB / 333.1 MB, free: 12.96 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.046e-05/0.3067, allocations: 36 kB / 333.2 MB, free: 12.93 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001935/0.3069, allocations: 79.91 kB / 333.3 MB, free: 12.85 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002032/0.3072, allocations: 199.3 kB / 333.4 MB, free: 12.65 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.3073, allocations: 125.4 kB / 333.6 MB, free: 12.52 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005848/0.3079, allocations: 0.5977 MB / 334.2 MB, free: 11.93 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/0.3079, allocations: 7.938 kB / 334.2 MB, free: 11.92 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3079, allocations: 4 kB / 334.2 MB, free: 11.91 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.3079, allocations: 0 / 334.2 MB, free: 11.91 MB / 270.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.003304/0.3112, allocations: 1.313 MB / 335.5 MB, free: 10.55 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.3113, allocations: 15.97 kB / 335.5 MB, free: 10.54 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.3115, allocations: 71.16 kB / 335.6 MB, free: 10.46 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005588/0.312, allocations: 406.7 kB / 336 MB, free: 10.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/0.3121, allocations: 21 kB / 336 MB, free: 10 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.629e-05/0.3122, allocations: 40 kB / 336 MB, free: 9.961 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001828/0.314, allocations: 1.165 MB / 337.2 MB, free: 8.785 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.3141, allocations: 3.906 kB / 337.2 MB, free: 8.781 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.295e-05/0.3141, allocations: 19.98 kB / 337.2 MB, free: 8.762 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.3142, allocations: 11.94 kB / 337.2 MB, free: 8.75 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002549/0.3167, allocations: 1.779 MB / 339 MB, free: 6.973 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004128/0.3209, allocations: 2.545 MB / 341.6 MB, free: 4.348 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.3225, allocations: 0.946 MB / 342.5 MB, free: 3.383 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.3236, allocations: 0.728 MB / 343.2 MB, free: 2.648 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.95e-05/0.3237, allocations: 4 kB / 343.2 MB, free: 2.645 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001395/0.3251, allocations: 0.9162 MB / 344.2 MB, free: 1.707 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 2.815e-06/0.3251, allocations: 0 / 344.2 MB, free: 1.707 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01082/0.336, allocations: 6.037 MB / 350.2 MB, free: 11.51 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.336, allocations: 85.11 kB / 350.3 MB, free: 11.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.3372, allocations: 0.9103 MB / 351.2 MB, free: 10.49 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.845e-05/0.3373, allocations: 45.7 kB / 351.2 MB, free: 10.44 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002733/0.3376, allocations: 304.2 kB / 351.5 MB, free: 10.14 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.3378, allocations: 165.9 kB / 351.7 MB, free: 9.973 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.274e-05/0.3379, allocations: 12 kB / 351.7 MB, free: 9.961 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.3381, allocations: 382.7 kB / 352.1 MB, free: 9.578 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001303/0.3394, allocations: 0.8642 MB / 352.9 MB, free: 8.711 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/0.3408, allocations: 0.948 MB / 353.9 MB, free: 7.734 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.3419, allocations: 0.7809 MB / 354.7 MB, free: 6.953 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3419, allocations: 0 / 354.7 MB, free: 6.953 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003576/0.3455, allocations: 2.486 MB / 357.2 MB, free: 4.449 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.381e-05/0.3455, allocations: 4 kB / 357.2 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.3456, allocations: 8.031 kB / 357.2 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00211/0.3477, allocations: 1.892 MB / 359.1 MB, free: 2.535 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004909/0.3482, allocations: 123.8 kB / 359.2 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007531/0.3557, allocations: 6.438 MB / 365.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.3571, allocations: 307.8 kB / 365.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.413e-05/0.3571, allocations: 27.98 kB / 365.9 MB, free: 11.35 MB / 302.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,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004296/0.3576, allocations: 255.9 kB / 366.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.3577, allocations: 71.16 kB / 366.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002349/0.3579, allocations: 106.1 kB / 366.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.3579, allocations: 11.94 kB / 366.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.358, allocations: 0 / 366.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.358, allocations: 7.984 kB / 366.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004115/0.3621, allocations: 3.135 MB / 369.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3621, allocations: 0 / 369.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004469/0.3626, allocations: 95.98 kB / 369.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00209/0.3647, allocations: 1.865 MB / 371.5 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-05/0.3647, allocations: 23.95 kB / 371.5 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006701/0.3714, allocations: 6.149 MB / 377.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3715, allocations: 8.016 kB / 377.7 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004784/0.3763, allocations: 3.271 MB / 380.9 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003022/0.3766, allocations: 208.2 kB / 381.1 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.3767, allocations: 24 kB / 381.2 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001495/0.3782, allocations: 344 kB / 381.5 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001381/0.3796, allocations: 0.6471 MB / 382.1 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.653e-05/0.3797, allocations: 31.95 kB / 382.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007461/0.3804, allocations: 0.6709 MB / 382.8 MB, free: 10.01 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3804, allocations: 0 / 382.8 MB, free: 10.01 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007937/0.3812, allocations: 188 kB / 383 MB, free: 9.828 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003689/0.3816, allocations: 155.2 kB / 383.2 MB, free: 9.668 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00298/0.3846, allocations: 1.952 MB / 385.1 MB, free: 7.684 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.3846, allocations: 0 / 385.1 MB, free: 7.684 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001702/0.3863, allocations: 1.099 MB / 386.2 MB, free: 6.559 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005386/0.3869, allocations: 70.91 kB / 386.3 MB, free: 6.492 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00408/0.391, allocations: 2.285 MB / 388.6 MB, free: 4.172 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000534/0.3915, allocations: 0.9219 MB / 389.5 MB, free: 3.227 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002177/0.3918, allocations: 47.27 kB / 389.6 MB, free: 3.176 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.3919, allocations: 39.36 kB / 389.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3919, allocations: 0 / 389.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of Templates: time 0.03053/0.4224, allocations: 20.97 MB / 410.6 MB, free: 14.14 MB / 350.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)