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.001062/0.001062, allocations: 86.58 kB / 16.31 MB, free: 6.457 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.001267/0.001267, allocations: 181 kB / 17.21 MB, free: 6.328 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.346/1.346, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002878/0.000288, allocations: 8 kB / 300.8 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09883/0.09914, allocations: 50.41 MB / 351.2 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002964/0.1022, allocations: 2.539 MB / 353.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.1041, allocations: 1.119 MB / 354.9 MB, free: 124 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.1042, allocations: 7.938 kB / 354.9 MB, free: 116 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003525/0.1046, allocations: 59.61 kB / 355 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.1048, allocations: 103.2 kB / 355.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007381/0.1055, allocations: 326.5 kB / 355.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006136/0.1061, allocations: 0.6825 MB / 356.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.1063, allocations: 77.47 kB / 356.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003623/0.1067, allocations: 315.1 kB / 356.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001432/0.1081, allocations: 1.435 MB / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.792e-05/0.1082, allocations: 39.98 kB / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001685/0.1084, allocations: 71.97 kB / 358 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.1086, allocations: 195.4 kB / 358.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.1087, allocations: 125.3 kB / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005463/0.1093, allocations: 0.6081 MB / 358.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1093, allocations: 3.938 kB / 358.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1093, allocations: 0 / 358.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.463e-06/0.1093, allocations: 0 / 358.9 MB, free: 12.08 MB / 302.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.003015/0.1123, allocations: 1.309 MB / 360.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.1124, allocations: 12.03 kB / 360.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.1125, allocations: 75.06 kB / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004583/0.113, allocations: 402.8 kB / 360.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.292e-05/0.1131, allocations: 29 kB / 360.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.4e-05/0.1131, allocations: 39.91 kB / 360.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.1148, allocations: 1.169 MB / 361.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.1148, allocations: 0 / 361.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.578e-05/0.1149, allocations: 23.94 kB / 362 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1149, allocations: 8 kB / 362 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002481/0.1174, allocations: 1.775 MB / 363.7 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003883/0.1213, allocations: 2.549 MB / 366.3 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.1228, allocations: 0.9381 MB / 367.2 MB, free: 3.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009823/0.1238, allocations: 0.7358 MB / 368 MB, free: 2.816 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.375e-05/0.1238, allocations: 4 kB / 368 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001339/0.1252, allocations: 0.9162 MB / 368.9 MB, free: 1.879 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.284e-06/0.1252, allocations: 0 / 368.9 MB, free: 1.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.2041/0.3293, allocations: 6.027 MB / 374.9 MB, free: 24.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.932e-05/0.3294, allocations: 87.42 kB / 375 MB, free: 24.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/0.3307, allocations: 0.9158 MB / 375.9 MB, free: 24.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.388e-05/0.3308, allocations: 46.78 kB / 376 MB, free: 24.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001789/0.331, allocations: 294.9 kB / 376.2 MB, free: 24.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.3311, allocations: 169.5 kB / 376.4 MB, free: 24.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.53e-05/0.3311, allocations: 10.12 kB / 376.4 MB, free: 24.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3313, allocations: 385.7 kB / 376.8 MB, free: 24.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.3325, allocations: 0.8574 MB / 377.7 MB, free: 23.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.3339, allocations: 0.957 MB / 378.6 MB, free: 23.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.335, allocations: 0.785 MB / 379.4 MB, free: 23.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.335, allocations: 0 / 379.4 MB, free: 23.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003647/0.3387, allocations: 2.486 MB / 381.9 MB, free: 22.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.3387, allocations: 7.062 kB / 381.9 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.3387, allocations: 2.312 kB / 381.9 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002055/0.3408, allocations: 1.899 MB / 383.8 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005029/0.3413, allocations: 124.7 kB / 383.9 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005995/0.3473, allocations: 6.456 MB / 390.4 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.3486, allocations: 299.7 kB / 390.7 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.643e-05/0.3486, allocations: 22.39 kB / 390.7 MB, free: 17.18 MB / 302.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,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003154/0.349, allocations: 249.9 kB / 390.9 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.216e-05/0.3491, allocations: 72.19 kB / 391 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.3493, allocations: 114.6 kB / 391.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3493, allocations: 4.047 kB / 391.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.3493, allocations: 3.984 kB / 391.1 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-06/0.3493, allocations: 2.062 kB / 391.1 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003096/0.3524, allocations: 3.137 MB / 394.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3524, allocations: 0 / 394.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004202/0.3528, allocations: 97.53 kB / 394.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001387/0.3542, allocations: 1.87 MB / 396.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.127e-05/0.3543, allocations: 19.97 kB / 396.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004817/0.3591, allocations: 6.151 MB / 402.4 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3591, allocations: 7.984 kB / 402.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003709/0.3629, allocations: 3.265 MB / 405.7 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002716/0.3631, allocations: 220.1 kB / 405.9 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001155/0.3633, allocations: 20 kB / 405.9 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/0.3646, allocations: 344.4 kB / 406.2 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001246/0.3659, allocations: 0.6471 MB / 406.9 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.482e-05/0.366, allocations: 23.97 kB / 406.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005263/0.3665, allocations: 0.6748 MB / 407.6 MB, free: 452 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3665, allocations: 0 / 407.6 MB, free: 452 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007842/0.3673, allocations: 184 kB / 407.8 MB, free: 268 kB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002445/0.3676, allocations: 163.9 kB / 407.9 MB, free: 104 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002938/0.3705, allocations: 1.947 MB / 409.9 MB, free: 14.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.3705, allocations: 5.547 kB / 409.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001679/0.3722, allocations: 1.102 MB / 411 MB, free: 13 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006063/0.3728, allocations: 70.92 kB / 411 MB, free: 12.94 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004226/0.3771, allocations: 2.292 MB / 413.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005085/0.3776, allocations: 0.92 MB / 414.3 MB, free: 9.676 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000264/0.3779, allocations: 39.28 kB / 414.3 MB, free: 9.637 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.378, allocations: 35.42 kB / 414.3 MB, free: 9.602 MB / 318.1 MB Notification: Performance of SimCode: time 8.41e-07/0.378, allocations: 4 kB / 414.3 MB, free: 9.598 MB / 318.1 MB Notification: Performance of Templates: time 0.0329/0.4109, allocations: 20.96 MB / 435.3 MB, free: 4.668 MB / 334.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