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.001507/0.001507, allocations: 108.9 kB / 17.06 MB, free: 6.137 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.001783/0.001783, allocations: 192 kB / 18 MB, free: 5.219 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.374/1.374, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009583/0.0009583, allocations: 47.92 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2924, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004207/0.2966, allocations: 2.997 MB / 403.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002411/0.2991, allocations: 1.161 MB / 404.9 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002694/0.2994, allocations: 4 kB / 404.9 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004937/0.2999, allocations: 83.17 kB / 405 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002402/0.3002, allocations: 119 kB / 405.1 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008562/0.301, allocations: 411.7 kB / 405.5 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006833/0.3017, allocations: 0.8035 MB / 406.3 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.3019, allocations: 93.61 kB / 406.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004002/0.3023, allocations: 359.1 kB / 406.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.3037, allocations: 1.331 MB / 408.1 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.3038, allocations: 71.94 kB / 408.1 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002024/0.304, allocations: 127.9 kB / 408.2 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002249/0.3042, allocations: 219.8 kB / 408.5 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003054/0.3045, allocations: 358 kB / 408.8 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008327/0.3054, allocations: 0.8694 MB / 409.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3054, allocations: 0 / 409.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3054, allocations: 0 / 409.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.3054, allocations: 0 / 409.7 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.003579/0.309, allocations: 1.331 MB / 411 MB, free: 14.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.309, allocations: 8.031 kB / 411 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001517/0.3092, allocations: 80 kB / 411.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005631/0.3098, allocations: 431.4 kB / 411.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.3098, allocations: 25.38 kB / 411.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.945e-05/0.3099, allocations: 44.36 kB / 411.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001798/0.3117, allocations: 1.154 MB / 412.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.3118, allocations: 7.984 kB / 412.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.104e-05/0.3118, allocations: 16 kB / 412.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.3119, allocations: 8 kB / 412.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002623/0.3145, allocations: 1.744 MB / 414.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004136/0.3186, allocations: 2.471 MB / 417 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.3202, allocations: 0.9068 MB / 417.9 MB, free: 7.461 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.3213, allocations: 0.724 MB / 418.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.409e-05/0.3214, allocations: 8.484 kB / 418.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001413/0.3228, allocations: 0.9005 MB / 419.5 MB, free: 5.801 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 1.984e-06/0.3228, allocations: 3.938 kB / 419.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01103/0.3339, allocations: 5.781 MB / 425.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.334, allocations: 81.11 kB / 425.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/0.3351, allocations: 0.9141 MB / 426.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.007e-05/0.3352, allocations: 53.62 kB / 426.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/0.3354, allocations: 296.3 kB / 426.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.3356, allocations: 165.9 kB / 426.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002279/0.3358, allocations: 122.2 kB / 426.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.336, allocations: 378.7 kB / 427.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.3372, allocations: 0.8524 MB / 428.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.3385, allocations: 0.9363 MB / 429.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001993/0.3405, allocations: 1.468 MB / 430.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3405, allocations: 0 / 430.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003565/0.3441, allocations: 2.484 MB / 433 MB, free: 7.992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.3441, allocations: 8 kB / 433 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3441, allocations: 4 kB / 433 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001889/0.346, allocations: 1.896 MB / 434.9 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006043/0.3467, allocations: 115.8 kB / 435.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008724/0.3554, allocations: 6.71 MB / 441.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.3569, allocations: 227.7 kB / 442 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.697e-05/0.357, allocations: 24.23 kB / 442 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.0004422/0.3574, allocations: 267.9 kB / 442.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.3576, allocations: 63.25 kB / 442.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002085/0.3578, allocations: 102.2 kB / 442.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.3578, allocations: 4 kB / 442.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3578, allocations: 0 / 442.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.3578, allocations: 7.984 kB / 442.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004371/0.3622, allocations: 3.095 MB / 445.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.3622, allocations: 0 / 445.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004842/0.3627, allocations: 83.88 kB / 445.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002031/0.3648, allocations: 1.869 MB / 447.5 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.065e-05/0.3648, allocations: 23.95 kB / 447.5 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007428/0.3723, allocations: 6.326 MB / 453.8 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3723, allocations: 3.938 kB / 453.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005076/0.3774, allocations: 3.233 MB / 457.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003416/0.3777, allocations: 204.2 kB / 457.3 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.3779, allocations: 20 kB / 457.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/0.3797, allocations: 275.6 kB / 457.6 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001419/0.3811, allocations: 0.5616 MB / 458.1 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.477e-05/0.3812, allocations: 28.28 kB / 458.2 MB, free: 14.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009466/0.3822, allocations: 0.6748 MB / 458.8 MB, free: 13.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3822, allocations: 7.938 kB / 458.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008937/0.3831, allocations: 184 kB / 459 MB, free: 13.24 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.0003645/0.3835, allocations: 155.1 kB / 459.2 MB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003445/0.3869, allocations: 1.928 MB / 461.1 MB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.3869, allocations: 4.062 kB / 461.1 MB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/0.3888, allocations: 1.071 MB / 462.2 MB, free: 10.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000673/0.3895, allocations: 75.02 kB / 462.2 MB, free: 9.953 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004386/0.3939, allocations: 1.966 MB / 464.2 MB, free: 7.949 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005516/0.3944, allocations: 0.9221 MB / 465.1 MB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000227/0.3947, allocations: 39.28 kB / 465.2 MB, free: 6.969 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.3948, allocations: 43.42 kB / 465.2 MB, free: 6.926 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3948, allocations: 0 / 465.2 MB, free: 6.926 MB / 382.1 MB Notification: Performance of Templates: time 0.03628/0.4311, allocations: 24.38 MB / 489.6 MB, free: 14.56 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