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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008951/0.0008953, allocations: 91.61 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.739e-05/1.741e-05, allocations: 0 / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09576/0.09579, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3033/0.3991, allocations: 81.66 MB / 469.1 MB, free: 13.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001997/0.3994, allocations: 71.97 kB / 469.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04048/0.4399, allocations: 13.79 MB / 483 MB, free: 15.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4399, allocations: 0 / 483 MB, free: 15.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.288e-05/0.44, allocations: 16 kB / 483 MB, free: 15.29 MB / 362.7 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.002833/0.4428, allocations: 1.084 MB / 484.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.4429, allocations: 8.031 kB / 484.1 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001948/0.4431, allocations: 75.06 kB / 484.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007982/0.4439, allocations: 0.4949 MB / 484.7 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.167e-05/0.4439, allocations: 16 kB / 484.7 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.4441, allocations: 24 kB / 484.7 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001691/0.4458, allocations: 1.017 MB / 485.7 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.4471, allocations: 0.825 MB / 486.5 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/0.4471, allocations: 3.906 kB / 486.5 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.679e-05/0.4472, allocations: 0 / 486.5 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.4472, allocations: 15.94 kB / 486.6 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004913/0.4521, allocations: 2.329 MB / 488.9 MB, free: 9.219 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000933/0.4531, allocations: 0.6274 MB / 489.5 MB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007182/0.4538, allocations: 0.4902 MB / 490 MB, free: 8.078 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.628e-05/0.4539, allocations: 12 kB / 490 MB, free: 8.066 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001042/0.4549, allocations: 0.7239 MB / 490.7 MB, free: 7.328 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.164e-06/0.455, allocations: 0 / 490.7 MB, free: 7.328 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.005942/0.4609, allocations: 3.268 MB / 494 MB, free: 3.957 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.461, allocations: 81.11 kB / 494.1 MB, free: 3.859 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005826/0.4616, allocations: 0.4955 MB / 494.6 MB, free: 3.359 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.4617, allocations: 41.69 kB / 494.6 MB, free: 3.312 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.4619, allocations: 284.4 kB / 494.9 MB, free: 3.031 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.4621, allocations: 169.8 kB / 495.1 MB, free: 2.863 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.911e-05/0.4622, allocations: 0 / 495.1 MB, free: 2.863 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4623, allocations: 378.8 kB / 495.4 MB, free: 2.484 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007189/0.4631, allocations: 0.4935 MB / 495.9 MB, free: 1.988 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007809/0.4638, allocations: 0.5962 MB / 496.5 MB, free: 1.363 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006885/0.4645, allocations: 431.5 kB / 496.9 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4646, allocations: 4 kB / 496.9 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002844/0.4674, allocations: 1.64 MB / 498.6 MB, free: 15.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.4674, allocations: 4 kB / 498.6 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.167e-05/0.4675, allocations: 11.94 kB / 498.6 MB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005009/0.4725, allocations: 4.133 MB / 0.491 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006315/0.4732, allocations: 119.8 kB / 0.4911 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007387/0.4806, allocations: 5.468 MB / 0.4964 GB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.4822, allocations: 283.7 kB / 0.4967 GB, free: 4.992 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001496/0.4824, allocations: 104 kB / 0.4968 GB, free: 4.891 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003522/0.4827, allocations: 136 kB / 0.4969 GB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.4829, allocations: 71.16 kB / 0.497 GB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002808/0.4857, allocations: 1.459 MB / 0.4984 GB, free: 3.211 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.4857, allocations: 7.984 kB / 0.4984 GB, free: 3.203 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.4857, allocations: 4 kB / 0.4984 GB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.4858, allocations: 3.984 kB / 0.4984 GB, free: 3.195 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004245/0.49, allocations: 2.459 MB / 0.5008 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.49, allocations: 4 kB / 0.5008 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005098/0.4906, allocations: 88.03 kB / 0.5009 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00528/0.4958, allocations: 4.157 MB / 0.505 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.496, allocations: 31.97 kB / 0.505 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006508/0.5025, allocations: 5.134 MB / 0.51 GB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.5025, allocations: 0 / 0.51 GB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00386/0.5064, allocations: 2.228 MB / 0.5122 GB, free: 4.699 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005543/0.507, allocations: 300.2 kB / 0.5125 GB, free: 4.387 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.5071, allocations: 12 kB / 0.5125 GB, free: 4.375 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/0.5088, allocations: 295.7 kB / 0.5128 GB, free: 4.086 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001385/0.5102, allocations: 0.6665 MB / 0.5134 GB, free: 3.418 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001412/0.5103, allocations: 95.95 kB / 0.5135 GB, free: 3.324 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006738/0.511, allocations: 487 kB / 0.514 GB, free: 2.852 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.511, allocations: 4 kB / 0.514 GB, free: 2.848 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000977/0.512, allocations: 219.9 kB / 0.5142 GB, free: 2.633 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * 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.0003364/0.5123, allocations: 143.2 kB / 0.5143 GB, free: 2.48 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002032/0.5144, allocations: 1.319 MB / 0.5156 GB, free: 1.137 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5144, allocations: 0 / 0.5156 GB, free: 1.137 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.5157, allocations: 0.8169 MB / 0.5164 GB, free: 308 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004784/0.5161, allocations: 57.73 kB / 0.5165 GB, free: 256 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004428/0.5206, allocations: 1.834 MB / 0.5183 GB, free: 14.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005012/0.5211, allocations: 0.9382 MB / 0.5192 GB, free: 13.42 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002297/0.5213, allocations: 39.27 kB / 0.5192 GB, free: 13.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.5215, allocations: 35.36 kB / 0.5192 GB, free: 13.34 MB / 410.7 MB Notification: Performance of SimCode: time 7.71e-07/0.5215, allocations: 0 / 0.5192 GB, free: 13.34 MB / 410.7 MB Notification: Performance of Templates: time 0.02529/0.5468, allocations: 18.12 MB / 0.5369 GB, free: 11.15 MB / 426.7 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","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches