Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="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_4.0.0_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_4.0.0_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.001032/0.001033, allocations: 108.6 kB / 17.06 MB, free: 6.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.001012/0.001012, allocations: 200.1 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 47.92 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2752, allocations: 49.44 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003834/0.2791, allocations: 3.01 MB / 403.7 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001785/0.2809, allocations: 1.154 MB / 404.9 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001476/0.2811, allocations: 11.94 kB / 404.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003507/0.2814, allocations: 67.31 kB / 405 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002028/0.2817, allocations: 130.8 kB / 405.1 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007528/0.2824, allocations: 414.4 kB / 405.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006502/0.2831, allocations: 0.7997 MB / 406.3 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.2833, allocations: 93.61 kB / 406.4 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003927/0.2837, allocations: 363.1 kB / 406.7 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001312/0.285, allocations: 1.335 MB / 408.1 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.2851, allocations: 68 kB / 408.1 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.2853, allocations: 123.9 kB / 408.3 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001981/0.2855, allocations: 223.8 kB / 408.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003104/0.2858, allocations: 346.1 kB / 408.8 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008054/0.2866, allocations: 0.8771 MB / 409.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2866, allocations: 0 / 409.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2867, allocations: 0 / 409.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.2867, allocations: 0 / 409.7 MB, free: 15.86 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003359/0.29, allocations: 1.332 MB / 411 MB, free: 14.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.2901, allocations: 8.031 kB / 411 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.2902, allocations: 80 kB / 411.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005199/0.2908, allocations: 435.4 kB / 411.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.986e-05/0.2908, allocations: 25.38 kB / 411.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.351e-05/0.2909, allocations: 36.38 kB / 411.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/0.2927, allocations: 1.158 MB / 412.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.2927, allocations: 3.984 kB / 412.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.751e-05/0.2928, allocations: 19.94 kB / 412.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.2928, allocations: 8 kB / 412.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002529/0.2953, allocations: 1.748 MB / 414.5 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003935/0.2993, allocations: 2.463 MB / 417 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.3009, allocations: 0.9108 MB / 417.9 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.3019, allocations: 0.7162 MB / 418.6 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.138e-05/0.302, allocations: 4.5 kB / 418.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.3034, allocations: 0.9122 MB / 419.5 MB, free: 5.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 1.693e-06/0.3034, allocations: 0 / 419.5 MB, free: 5.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01048/0.3139, allocations: 5.783 MB / 425.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/0.314, allocations: 81.11 kB / 425.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.315, allocations: 0.9102 MB / 426.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.37e-05/0.3151, allocations: 53.69 kB / 426.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/0.3153, allocations: 300.3 kB / 426.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.3155, allocations: 165.9 kB / 426.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002361/0.3157, allocations: 122.2 kB / 426.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3159, allocations: 378.8 kB / 427.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.3171, allocations: 0.8446 MB / 428.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/0.3184, allocations: 0.9402 MB / 429.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002046/0.3204, allocations: 1.468 MB / 430.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3204, allocations: 0 / 430.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003589/0.324, allocations: 2.48 MB / 433 MB, free: 7.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.324, allocations: 8 kB / 433 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.3241, allocations: 4 kB / 433 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002032/0.3261, allocations: 1.9 MB / 434.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005082/0.3266, allocations: 111.9 kB / 435.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007433/0.3341, allocations: 6.707 MB / 441.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.3354, allocations: 231.7 kB / 442 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.289e-05/0.3354, allocations: 20 kB / 442 MB, free: 14.68 MB / 366.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.0003576/0.3358, allocations: 255.9 kB / 442.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.3359, allocations: 63.25 kB / 442.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001963/0.3361, allocations: 114.1 kB / 442.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3361, allocations: 4 kB / 442.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3362, allocations: 0 / 442.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3362, allocations: 11.94 kB / 442.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003891/0.3401, allocations: 3.087 MB / 445.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.3401, allocations: 4.125 kB / 445.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004599/0.3406, allocations: 87.94 kB / 445.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001959/0.3425, allocations: 1.865 MB / 447.5 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.765e-05/0.3426, allocations: 19.97 kB / 447.5 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006641/0.3492, allocations: 6.342 MB / 453.9 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.3493, allocations: 0 / 453.9 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004574/0.3538, allocations: 3.225 MB / 457.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002687/0.3541, allocations: 212.2 kB / 457.3 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.3542, allocations: 20 kB / 457.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/0.3558, allocations: 267.6 kB / 457.6 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001413/0.3572, allocations: 0.5616 MB / 458.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.297e-05/0.3573, allocations: 31.95 kB / 458.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006337/0.3579, allocations: 0.6748 MB / 458.8 MB, free: 13.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3579, allocations: 4 kB / 458.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007244/0.3587, allocations: 184 kB / 459 MB, free: 13.22 MB / 382.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.0002496/0.3589, allocations: 153.9 kB / 459.2 MB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002917/0.3619, allocations: 1.929 MB / 461.1 MB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.3619, allocations: 3.984 kB / 461.1 MB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/0.3636, allocations: 1.085 MB / 462.2 MB, free: 10 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005762/0.3642, allocations: 71.28 kB / 462.3 MB, free: 9.926 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003979/0.3682, allocations: 1.961 MB / 464.2 MB, free: 7.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.3687, allocations: 0.9221 MB / 465.1 MB, free: 6.984 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000241/0.3689, allocations: 43.22 kB / 465.2 MB, free: 6.945 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.3691, allocations: 43.42 kB / 465.2 MB, free: 6.902 MB / 382.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3691, allocations: 0 / 465.2 MB, free: 6.902 MB / 382.1 MB Notification: Performance of Templates: time 0.03557/0.4047, allocations: 24.38 MB / 489.6 MB, free: 14.54 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches