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.0009988/0.0009988, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00116/0.00116, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009941/0.0009941, allocations: 59.88 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2736, allocations: 50.55 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004017/0.2776, allocations: 3.106 MB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.2796, allocations: 1.34 MB / 413.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.2798, allocations: 11.94 kB / 413.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004444/0.2803, allocations: 95.22 kB / 413.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.2805, allocations: 122.9 kB / 413.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007946/0.2813, allocations: 422.5 kB / 414.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006806/0.282, allocations: 0.8153 MB / 415.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.2822, allocations: 105.5 kB / 415.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004754/0.2827, allocations: 375.1 kB / 415.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.2843, allocations: 1.463 MB / 417.1 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.2845, allocations: 68 kB / 417.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002849/0.2848, allocations: 139.9 kB / 417.3 MB, free: 9.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002548/0.285, allocations: 235.7 kB / 417.5 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003239/0.2854, allocations: 358 kB / 417.8 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009055/0.2863, allocations: 0.9143 MB / 418.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.2863, allocations: 0 / 418.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2863, allocations: 0 / 418.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.2863, allocations: 0 / 418.8 MB, free: 8.039 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.003537/0.2899, allocations: 1.37 MB / 420.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.2899, allocations: 12.03 kB / 420.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004883/0.2904, allocations: 100.4 kB / 420.2 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005892/0.291, allocations: 436 kB / 420.7 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.568e-05/0.2911, allocations: 29.38 kB / 420.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.753e-05/0.2912, allocations: 44.36 kB / 420.7 MB, free: 5.965 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.2925, allocations: 0.6381 MB / 421.4 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.2926, allocations: 11.95 kB / 421.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.588e-05/0.2927, allocations: 16 kB / 421.4 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.2927, allocations: 8 kB / 421.4 MB, free: 5.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.2945, allocations: 0.6936 MB / 422.1 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003236/0.2977, allocations: 1.659 MB / 423.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.2991, allocations: 492.8 kB / 424.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000782/0.2998, allocations: 305.8 kB / 424.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.601e-05/0.2999, allocations: 7.984 kB / 424.5 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001053/0.301, allocations: 494.2 kB / 425 MB, free: 1.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.935e-06/0.301, allocations: 3.984 kB / 425 MB, free: 1.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.008971/0.31, allocations: 2.822 MB / 427.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.31, allocations: 85.05 kB / 427.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009271/0.311, allocations: 0.9181 MB / 428.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.218e-05/0.3111, allocations: 53.52 kB / 428.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/0.3113, allocations: 300.7 kB / 429.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.3115, allocations: 174.7 kB / 429.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002405/0.3117, allocations: 122.3 kB / 429.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002236/0.312, allocations: 386.7 kB / 429.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008754/0.3128, allocations: 325.1 kB / 430.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009204/0.3138, allocations: 411 kB / 430.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.3152, allocations: 0.5108 MB / 431.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3152, allocations: 0 / 431.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002756/0.3179, allocations: 0.9952 MB / 432.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.318, allocations: 7.938 kB / 432.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.318, allocations: 4 kB / 432.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.3191, allocations: 0.5451 MB / 432.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005454/0.3196, allocations: 111.8 kB / 432.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006129/0.3258, allocations: 4.744 MB / 437.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.3272, allocations: 223.8 kB / 437.7 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.478e-05/0.3272, allocations: 20.08 kB / 437.7 MB, free: 4.215 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.0003668/0.3276, allocations: 264.2 kB / 438 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.3278, allocations: 79.47 kB / 438.1 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001941/0.328, allocations: 106.2 kB / 438.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.328, allocations: 12.03 kB / 438.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.328, allocations: 0 / 438.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.328, allocations: 3.984 kB / 438.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/0.331, allocations: 1.42 MB / 439.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.331, allocations: 4.031 kB / 439.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000465/0.3315, allocations: 83.88 kB / 439.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009581/0.3324, allocations: 0.5255 MB / 440.2 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-05/0.3325, allocations: 27.89 kB / 440.3 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005331/0.3378, allocations: 4.348 MB / 444.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3379, allocations: 3.938 kB / 444.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003268/0.3411, allocations: 1.277 MB / 445.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002798/0.3414, allocations: 216.5 kB / 446.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.3415, allocations: 24 kB / 446.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001638/0.3432, allocations: 267.6 kB / 446.4 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001323/0.3445, allocations: 0.5655 MB / 446.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-05/0.3446, allocations: 31.95 kB / 447 MB, free: 10.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006594/0.3453, allocations: 0.667 MB / 447.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3453, allocations: 0 / 447.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007436/0.346, allocations: 184 kB / 447.8 MB, free: 9.68 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.0009623/0.347, allocations: 393.6 kB / 448.2 MB, free: 9.402 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002378/0.3494, allocations: 0.9716 MB / 449.2 MB, free: 8.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3494, allocations: 0 / 449.2 MB, free: 8.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.3508, allocations: 0.6577 MB / 449.8 MB, free: 7.727 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005915/0.3514, allocations: 85.12 kB / 449.9 MB, free: 7.645 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004065/0.3554, allocations: 1.912 MB / 451.8 MB, free: 5.695 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005482/0.356, allocations: 0.9259 MB / 452.8 MB, free: 4.746 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000208/0.3562, allocations: 51.25 kB / 452.8 MB, free: 4.699 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.3563, allocations: 43.42 kB / 452.9 MB, free: 4.656 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3564, allocations: 0 / 452.9 MB, free: 4.656 MB / 366.1 MB Notification: Performance of Templates: time 0.02303/0.3794, allocations: 15.87 MB / 468.7 MB, free: 4.812 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches