Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001672/0.001672, allocations: 113 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002119/0.002119, allocations: 214.8 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 59.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2496, allocations: 50.55 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00434/0.254, allocations: 3.099 MB / 413 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002267/0.2563, allocations: 1.336 MB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002106/0.2565, allocations: 11.94 kB / 414.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004749/0.257, allocations: 91.22 kB / 414.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002301/0.2573, allocations: 126.9 kB / 414.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008159/0.2581, allocations: 418.6 kB / 415 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007252/0.2589, allocations: 0.8192 MB / 415.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000199/0.2591, allocations: 101.5 kB / 415.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004953/0.2596, allocations: 375.1 kB / 416.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00159/0.2612, allocations: 1.471 MB / 417.7 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001292/0.2613, allocations: 71.94 kB / 417.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002695/0.2616, allocations: 136 kB / 417.9 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002248/0.2618, allocations: 231.8 kB / 418.2 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002937/0.2621, allocations: 354.1 kB / 418.5 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009135/0.263, allocations: 0.9083 MB / 419.4 MB, free: 8.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2631, allocations: 4 kB / 419.4 MB, free: 8.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2631, allocations: 0 / 419.4 MB, free: 8.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.2631, allocations: 4 kB / 419.4 MB, free: 8.031 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003777/0.2669, allocations: 1.343 MB / 420.8 MB, free: 6.633 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.2669, allocations: 8.031 kB / 420.8 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004994/0.2674, allocations: 112 kB / 420.9 MB, free: 6.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005826/0.268, allocations: 431.5 kB / 421.3 MB, free: 6.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.707e-05/0.2681, allocations: 29.38 kB / 421.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.724e-05/0.2682, allocations: 40.31 kB / 421.4 MB, free: 5.984 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.2697, allocations: 0.6343 MB / 422 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.2697, allocations: 4 kB / 422 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.597e-05/0.2698, allocations: 16 kB / 422 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.2698, allocations: 8 kB / 422 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/0.2718, allocations: 0.6976 MB / 422.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003581/0.2754, allocations: 1.658 MB / 424.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.2768, allocations: 0.4891 MB / 424.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008524/0.2776, allocations: 301.5 kB / 425.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.316e-05/0.2777, allocations: 7.984 kB / 425.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001164/0.2789, allocations: 498.6 kB / 425.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 4.368e-06/0.2789, allocations: 0 / 425.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.009251/0.2881, allocations: 2.793 MB / 428.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.2882, allocations: 89.11 kB / 428.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009438/0.2892, allocations: 0.918 MB / 429.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.2893, allocations: 49.69 kB / 429.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.2895, allocations: 296.3 kB / 429.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.2897, allocations: 169.8 kB / 430 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/0.2899, allocations: 118.2 kB / 430.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.2901, allocations: 382.7 kB / 430.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008959/0.291, allocations: 325.1 kB / 430.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009679/0.292, allocations: 415 kB / 431.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.2934, allocations: 0.5146 MB / 431.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.2935, allocations: 8 kB / 431.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002814/0.2963, allocations: 0.9871 MB / 432.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.2963, allocations: 7.938 kB / 432.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.2963, allocations: 4 kB / 432.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.2974, allocations: 0.5412 MB / 433.3 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005339/0.2979, allocations: 119.8 kB / 433.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00625/0.3042, allocations: 4.732 MB / 438.1 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/0.3058, allocations: 235.6 kB / 438.3 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.312e-05/0.3059, allocations: 24.06 kB / 438.4 MB, free: 4.262 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004564/0.3063, allocations: 255.9 kB / 438.6 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.3065, allocations: 75.09 kB / 438.7 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002132/0.3067, allocations: 102.2 kB / 438.8 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.3067, allocations: 8 kB / 438.8 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3067, allocations: 4 kB / 438.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.3068, allocations: 3.984 kB / 438.8 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003112/0.3099, allocations: 1.424 MB / 440.2 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3099, allocations: 0 / 440.2 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004718/0.3104, allocations: 83.98 kB / 440.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008968/0.3113, allocations: 0.5216 MB / 440.8 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.925e-05/0.3114, allocations: 24.08 kB / 440.8 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005353/0.3167, allocations: 4.359 MB / 445.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.3167, allocations: 3.938 kB / 445.2 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003328/0.3201, allocations: 1.271 MB / 446.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003268/0.3204, allocations: 208.1 kB / 446.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/0.3206, allocations: 23.94 kB / 446.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00173/0.3223, allocations: 267.6 kB / 447 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001289/0.3236, allocations: 0.5616 MB / 447.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.732e-05/0.3237, allocations: 39.95 kB / 447.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006607/0.3244, allocations: 0.667 MB / 448.2 MB, free: 9.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3244, allocations: 0 / 448.2 MB, free: 9.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007892/0.3252, allocations: 180 kB / 448.4 MB, free: 9.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009181/0.3261, allocations: 398.5 kB / 448.8 MB, free: 9.477 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.3285, allocations: 0.9677 MB / 449.8 MB, free: 8.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.3285, allocations: 4 kB / 449.8 MB, free: 8.484 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.3298, allocations: 0.6146 MB / 450.4 MB, free: 7.844 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006532/0.3305, allocations: 90.83 kB / 450.5 MB, free: 7.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004301/0.3348, allocations: 1.923 MB / 452.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.3353, allocations: 0.9259 MB / 453.3 MB, free: 4.836 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001849/0.3355, allocations: 43.42 kB / 453.4 MB, free: 4.793 MB / 366.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3355, allocations: 3.938 kB / 453.4 MB, free: 4.789 MB / 366.1 MB Notification: Performance of Templates: time 0.01875/0.3543, allocations: 14.16 MB / 467.5 MB, free: 6.621 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches