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.001184/0.001183, allocations: 106.6 kB / 17.71 MB, free: 5.363 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.001078/0.001078, allocations: 184.8 kB / 18.63 MB, free: 4.445 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.306/1.306, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 44.08 kB / 351.9 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3074, allocations: 49.44 MB / 401.3 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004163/0.3116, allocations: 2.994 MB / 404.3 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0021/0.3137, allocations: 1.157 MB / 405.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.3139, allocations: 11.94 kB / 405.5 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004139/0.3144, allocations: 79.28 kB / 405.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002048/0.3146, allocations: 118.9 kB / 405.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007963/0.3154, allocations: 412.5 kB / 406.1 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006956/0.3161, allocations: 0.7997 MB / 406.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.3163, allocations: 93.59 kB / 407 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004148/0.3167, allocations: 363 kB / 407.4 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001405/0.3181, allocations: 1.342 MB / 408.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001055/0.3182, allocations: 68 kB / 408.8 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002122/0.3185, allocations: 119.9 kB / 408.9 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001999/0.3187, allocations: 227.8 kB / 409.1 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002945/0.319, allocations: 346.1 kB / 409.4 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008546/0.3198, allocations: 0.8694 MB / 410.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3198, allocations: 0 / 410.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3199, allocations: 0 / 410.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.3199, allocations: 4 kB / 410.3 MB, free: 15.88 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.003628/0.3235, allocations: 1.332 MB / 411.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3236, allocations: 8.031 kB / 411.7 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.3237, allocations: 80 kB / 411.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005347/0.3243, allocations: 431.5 kB / 412.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.656e-05/0.3243, allocations: 29.38 kB / 412.2 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.446e-05/0.3244, allocations: 36.38 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.3262, allocations: 1.154 MB / 413.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.3262, allocations: 0 / 413.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-05/0.3263, allocations: 20 kB / 413.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/0.3263, allocations: 8 kB / 413.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002488/0.3288, allocations: 1.752 MB / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003971/0.3328, allocations: 2.471 MB / 417.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/0.3344, allocations: 0.903 MB / 418.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.3355, allocations: 0.7162 MB / 419.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.311e-05/0.3356, allocations: 8.5 kB / 419.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001366/0.3369, allocations: 0.9082 MB / 420.2 MB, free: 5.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 1.863e-06/0.337, allocations: 0 / 420.2 MB, free: 5.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01078/0.3477, allocations: 5.773 MB / 425.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.3478, allocations: 93.05 kB / 426 MB, free: 15.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/0.3489, allocations: 0.9141 MB / 426.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.703e-05/0.349, allocations: 49.69 kB / 427 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000211/0.3492, allocations: 296.3 kB / 427.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.3494, allocations: 165.9 kB / 427.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000208/0.3496, allocations: 114.2 kB / 427.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3497, allocations: 382.8 kB / 427.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.3509, allocations: 0.8486 MB / 428.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001224/0.3522, allocations: 0.9324 MB / 429.7 MB, free: 12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002001/0.3542, allocations: 1.472 MB / 431.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3542, allocations: 4 kB / 431.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003564/0.3578, allocations: 2.482 MB / 433.7 MB, free: 8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.3578, allocations: 7.938 kB / 433.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.3578, allocations: 7.984 kB / 433.7 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001904/0.3598, allocations: 1.896 MB / 435.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004967/0.3603, allocations: 111.8 kB / 435.7 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007392/0.3677, allocations: 6.713 MB / 442.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/0.3691, allocations: 227.7 kB / 442.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.15e-05/0.3692, allocations: 27.98 kB / 442.6 MB, free: 14.7 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.0004551/0.3696, allocations: 251.9 kB / 442.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.3698, allocations: 71.25 kB / 443 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002083/0.37, allocations: 102.2 kB / 443.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.37, allocations: 4 kB / 443.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.37, allocations: 4.188 kB / 443.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.37, allocations: 8.016 kB / 443.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004058/0.3741, allocations: 3.091 MB / 446.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.3741, allocations: 0 / 446.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004856/0.3746, allocations: 91.92 kB / 446.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00178/0.3764, allocations: 1.857 MB / 448.1 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.269e-05/0.3765, allocations: 31.95 kB / 448.1 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006987/0.3835, allocations: 6.33 MB / 454.5 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3835, allocations: 4.031 kB / 454.5 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004642/0.3882, allocations: 3.231 MB / 457.7 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003243/0.3885, allocations: 204.2 kB / 457.9 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/0.3886, allocations: 20 kB / 457.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/0.3903, allocations: 271.6 kB / 458.2 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001338/0.3917, allocations: 0.5655 MB / 458.8 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.229e-05/0.3918, allocations: 27.97 kB / 458.8 MB, free: 14.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007246/0.3925, allocations: 0.6787 MB / 459.5 MB, free: 13.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3925, allocations: 0 / 459.5 MB, free: 13.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008695/0.3934, allocations: 188 kB / 459.6 MB, free: 13.25 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.0003338/0.3937, allocations: 157.9 kB / 459.8 MB, free: 13.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003065/0.3968, allocations: 1.921 MB / 461.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.3968, allocations: 4 kB / 461.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001603/0.3984, allocations: 1.04 MB / 462.8 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006615/0.3991, allocations: 81.97 kB / 462.8 MB, free: 9.988 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004197/0.4033, allocations: 1.999 MB / 464.8 MB, free: 7.945 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004944/0.4038, allocations: 0.926 MB / 465.8 MB, free: 6.996 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.404, allocations: 43.42 kB / 465.8 MB, free: 6.953 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.404, allocations: 0 / 465.8 MB, free: 6.953 MB / 382.1 MB Notification: Performance of Templates: time 0.01731/0.4213, allocations: 13.7 MB / 479.5 MB, free: 9.258 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