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.0011/0.0011, allocations: 111.8 kB / 17.74 MB, free: 5.359 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.001043/0.001043, allocations: 181.5 kB / 18.66 MB, free: 4.449 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.365/1.365, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 43.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2853, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004802/0.2901, allocations: 2.998 MB / 404.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.2924, allocations: 1.157 MB / 405.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001928/0.2926, allocations: 7.938 kB / 405.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004736/0.2931, allocations: 83.23 kB / 405.6 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002216/0.2934, allocations: 118.9 kB / 405.8 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009774/0.2944, allocations: 411.7 kB / 406.2 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008004/0.2952, allocations: 0.7958 MB / 407 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.2954, allocations: 93.59 kB / 407 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004904/0.2959, allocations: 359.1 kB / 407.4 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.2975, allocations: 1.342 MB / 408.7 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.2977, allocations: 68 kB / 408.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002743/0.298, allocations: 120 kB / 408.9 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002516/0.2982, allocations: 223.8 kB / 409.1 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003507/0.2986, allocations: 358 kB / 409.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.2997, allocations: 0.8733 MB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.2997, allocations: 3.938 kB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.2997, allocations: 0 / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.2998, allocations: 0 / 410.4 MB, free: 15.87 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.00384/0.3036, allocations: 1.324 MB / 411.7 MB, free: 14.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.01e-05/0.3037, allocations: 12.03 kB / 411.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.3039, allocations: 76 kB / 411.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007059/0.3046, allocations: 431.5 kB / 412.2 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.562e-05/0.3047, allocations: 25.38 kB / 412.2 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.3048, allocations: 40.38 kB / 412.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002048/0.3068, allocations: 1.158 MB / 413.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.502e-05/0.3069, allocations: 3.984 kB / 413.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.759e-05/0.307, allocations: 16 kB / 413.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.307, allocations: 11.94 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002785/0.3098, allocations: 1.744 MB / 415.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004112/0.3139, allocations: 2.475 MB / 417.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.3155, allocations: 0.9055 MB / 418.6 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/0.3166, allocations: 0.7201 MB / 419.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.955e-05/0.3167, allocations: 8.484 kB / 419.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001433/0.3182, allocations: 0.9083 MB / 420.2 MB, free: 5.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.415e-06/0.3182, allocations: 0 / 420.2 MB, free: 5.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01103/0.3292, allocations: 5.781 MB / 426 MB, free: 15.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.3293, allocations: 81.11 kB / 426.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.3304, allocations: 0.918 MB / 427 MB, free: 14.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.83e-05/0.3305, allocations: 49.69 kB / 427 MB, free: 14.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002108/0.3307, allocations: 296.3 kB / 427.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.3308, allocations: 161.9 kB / 427.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/0.3311, allocations: 118.2 kB / 427.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3312, allocations: 382.7 kB / 428 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.3325, allocations: 0.8486 MB / 428.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.3337, allocations: 0.9324 MB / 429.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001985/0.3357, allocations: 1.468 MB / 431.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3357, allocations: 3.938 kB / 431.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003766/0.3395, allocations: 2.484 MB / 433.7 MB, free: 7.984 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.3395, allocations: 8 kB / 433.7 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.3396, allocations: 0 / 433.7 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001955/0.3415, allocations: 1.904 MB / 435.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/0.342, allocations: 111.9 kB / 435.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007893/0.3499, allocations: 6.715 MB / 442.4 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.3515, allocations: 231.7 kB / 442.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.02e-05/0.3515, allocations: 23.98 kB / 442.7 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.000472/0.352, allocations: 256.2 kB / 442.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.3522, allocations: 63.25 kB / 443 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002665/0.3524, allocations: 102.2 kB / 443.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.3524, allocations: 7.938 kB / 443.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.3525, allocations: 8 kB / 443.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.3525, allocations: 3.984 kB / 443.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004106/0.3566, allocations: 3.087 MB / 446.2 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3566, allocations: 4 kB / 446.2 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004707/0.3571, allocations: 87.94 kB / 446.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001855/0.3589, allocations: 1.861 MB / 448.2 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.103e-05/0.359, allocations: 23.97 kB / 448.2 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007258/0.3663, allocations: 6.33 MB / 454.5 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3663, allocations: 3.938 kB / 454.5 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00499/0.3713, allocations: 3.239 MB / 457.8 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004123/0.3718, allocations: 200.2 kB / 458 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.3719, allocations: 24 kB / 458 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/0.3735, allocations: 267.6 kB / 458.2 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00131/0.3748, allocations: 0.5655 MB / 458.8 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.519e-05/0.3749, allocations: 27.97 kB / 458.8 MB, free: 14.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007147/0.3756, allocations: 0.667 MB / 459.5 MB, free: 13.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3756, allocations: 4 kB / 459.5 MB, free: 13.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00082/0.3765, allocations: 196 kB / 459.7 MB, free: 13.23 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.0003019/0.3768, allocations: 148.9 kB / 459.8 MB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002992/0.3798, allocations: 1.928 MB / 461.8 MB, free: 11.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.3798, allocations: 7.938 kB / 461.8 MB, free: 11.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001593/0.3814, allocations: 1.036 MB / 462.8 MB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006192/0.382, allocations: 78.89 kB / 462.9 MB, free: 9.973 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004433/0.3865, allocations: 2.005 MB / 464.9 MB, free: 7.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000604/0.3871, allocations: 0.9299 MB / 465.8 MB, free: 6.977 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.3873, allocations: 43.42 kB / 465.9 MB, free: 6.934 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3873, allocations: 0 / 465.9 MB, free: 6.934 MB / 382.1 MB Notification: Performance of Templates: time 0.01949/0.4068, allocations: 13.73 MB / 479.6 MB, free: 9.203 MB / 398.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/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_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches