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.001537/0.001536, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.531/1.531, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001389/0.001389, allocations: 59.92 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2979, allocations: 46.64 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004408/0.3023, allocations: 2.968 MB / 328.3 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002305/0.3047, allocations: 1.212 MB / 329.5 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002988/0.305, allocations: 4.75 kB / 329.5 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004283/0.3055, allocations: 75.28 kB / 329.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002331/0.3057, allocations: 118.2 kB / 329.7 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009635/0.3067, allocations: 409.9 kB / 330.1 MB, free: 14.03 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007451/0.3074, allocations: 0.8055 MB / 330.9 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.3077, allocations: 94.09 kB / 331 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004883/0.3082, allocations: 356.1 kB / 331.3 MB, free: 13.3 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001499/0.3097, allocations: 1.345 MB / 332.7 MB, free: 12.56 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.3098, allocations: 68 kB / 332.7 MB, free: 12.49 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.3101, allocations: 108 kB / 332.8 MB, free: 12.39 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000233/0.3103, allocations: 227.7 kB / 333.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003202/0.3106, allocations: 350.1 kB / 333.4 MB, free: 11.82 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008645/0.3115, allocations: 0.8682 MB / 334.3 MB, free: 10.95 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.797e-06/0.3115, allocations: 0 / 334.3 MB, free: 10.95 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.3116, allocations: 0 / 334.3 MB, free: 10.95 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.3116, allocations: 0 / 334.3 MB, free: 10.95 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.003992/0.3156, allocations: 1.324 MB / 335.6 MB, free: 9.574 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.3156, allocations: 8.031 kB / 335.6 MB, free: 9.566 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.3158, allocations: 83.94 kB / 335.7 MB, free: 9.484 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007095/0.3165, allocations: 419.5 kB / 336.1 MB, free: 9.035 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.094e-05/0.3166, allocations: 29.38 kB / 336.1 MB, free: 9.004 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.3167, allocations: 36.38 kB / 336.2 MB, free: 8.969 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/0.3186, allocations: 1.158 MB / 337.3 MB, free: 7.797 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.3186, allocations: 8 kB / 337.3 MB, free: 7.789 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.27e-05/0.3187, allocations: 19.98 kB / 337.3 MB, free: 7.77 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3188, allocations: 8 kB / 337.4 MB, free: 7.762 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002948/0.3217, allocations: 1.74 MB / 339.1 MB, free: 6.023 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004841/0.3266, allocations: 2.482 MB / 341.6 MB, free: 3.461 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.3283, allocations: 0.9185 MB / 342.5 MB, free: 2.523 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001213/0.3295, allocations: 0.7123 MB / 343.2 MB, free: 1.805 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.464e-05/0.3296, allocations: 11.92 kB / 343.2 MB, free: 1.793 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001679/0.3313, allocations: 0.9006 MB / 344.1 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 2.415e-06/0.3313, allocations: 0 / 344.1 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01175/0.343, allocations: 5.792 MB / 349.9 MB, free: 10.92 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/0.3432, allocations: 89.05 kB / 350 MB, free: 10.81 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.3443, allocations: 0.9141 MB / 350.9 MB, free: 9.891 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.3445, allocations: 45.7 kB / 351 MB, free: 9.84 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003382/0.3448, allocations: 300.3 kB / 351.3 MB, free: 9.543 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.345, allocations: 161.9 kB / 351.4 MB, free: 9.383 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/0.3452, allocations: 114.2 kB / 351.5 MB, free: 9.262 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.3454, allocations: 378.8 kB / 351.9 MB, free: 8.883 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.3467, allocations: 0.8486 MB / 352.7 MB, free: 8.035 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.348, allocations: 0.9363 MB / 353.7 MB, free: 7.066 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002078/0.3501, allocations: 1.457 MB / 355.1 MB, free: 5.578 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.3501, allocations: 8 kB / 355.1 MB, free: 5.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003747/0.3538, allocations: 2.49 MB / 357.6 MB, free: 3.062 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.3539, allocations: 6.969 kB / 357.6 MB, free: 3.059 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.3539, allocations: 4 kB / 357.6 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002042/0.3559, allocations: 1.904 MB / 359.5 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000523/0.3565, allocations: 107.9 kB / 359.7 MB, free: 1.035 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008625/0.3651, allocations: 6.703 MB / 366.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001637/0.3668, allocations: 223.8 kB / 366.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.607e-05/0.3669, allocations: 20 kB / 366.6 MB, free: 9.785 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,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.0006388/0.3675, allocations: 267.9 kB / 366.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.3677, allocations: 79.08 kB / 366.9 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001998/0.3679, allocations: 98.17 kB / 367 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.3679, allocations: 8 kB / 367 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.3679, allocations: 192 / 367 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.368, allocations: 0 / 367 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004306/0.3723, allocations: 3.098 MB / 370.1 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.3723, allocations: 4 kB / 370.1 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005206/0.3728, allocations: 83.88 kB / 370.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002143/0.375, allocations: 1.869 MB / 372.1 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.403e-05/0.3751, allocations: 23.97 kB / 372.1 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006881/0.3819, allocations: 6.322 MB / 378.4 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.382, allocations: 0 / 378.4 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004632/0.3866, allocations: 3.228 MB / 381.7 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003251/0.387, allocations: 208.2 kB / 381.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.3871, allocations: 20 kB / 381.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001656/0.3887, allocations: 267.6 kB / 382.1 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001264/0.39, allocations: 0.5655 MB / 382.7 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.406e-05/0.3901, allocations: 43.83 kB / 382.8 MB, free: 9.164 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006832/0.3908, allocations: 0.6709 MB / 383.4 MB, free: 8.496 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3908, allocations: 0 / 383.4 MB, free: 8.496 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007764/0.3916, allocations: 192 kB / 383.6 MB, free: 8.309 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 (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.0003199/0.3919, allocations: 151 kB / 383.8 MB, free: 8.152 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003274/0.3952, allocations: 1.941 MB / 385.7 MB, free: 6.184 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3952, allocations: 0 / 385.7 MB, free: 6.184 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00172/0.3969, allocations: 1.076 MB / 386.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000613/0.3976, allocations: 79.33 kB / 386.9 MB, free: 5.008 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004194/0.4018, allocations: 1.978 MB / 388.8 MB, free: 2.992 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004966/0.4023, allocations: 0.9373 MB / 389.8 MB, free: 2.031 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002148/0.4025, allocations: 35.28 kB / 389.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.4026, allocations: 39.42 kB / 389.8 MB, free: 1.953 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4026, allocations: 0 / 389.8 MB, free: 1.953 MB / 318.1 MB Notification: Performance of Templates: time 0.03965/0.4423, allocations: 24.28 MB / 414.1 MB, free: 9.645 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)