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.0008752/0.0008797, allocations: 176.4 kB / 17.4 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 223.3 MB / 241.4 MB, free: 9.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008086/0.0008088, allocations: 98.66 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003338/0.0003339, allocations: 19.92 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2307, allocations: 50.4 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09554/0.3263, allocations: 82.45 MB / 485.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001918/0.3265, allocations: 71.95 kB / 485.3 MB, free: 13.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03801/0.3646, allocations: 13.89 MB / 499.1 MB, free: 15.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3646, allocations: 0 / 499.1 MB, free: 15.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.048e-05/0.3646, allocations: 16.19 kB / 499.2 MB, free: 15.86 MB / 378.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.002708/0.3674, allocations: 1.168 MB / 0.4886 GB, free: 14.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.3674, allocations: 12.03 kB / 0.4886 GB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.3676, allocations: 76 kB / 0.4887 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007513/0.3684, allocations: 0.5112 MB / 0.4892 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.948e-05/0.3684, allocations: 29.38 kB / 0.4892 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.3686, allocations: 40.28 kB / 0.4893 GB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/0.3704, allocations: 0.9664 MB / 0.4902 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.3704, allocations: 4.172 kB / 0.4902 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.3705, allocations: 19.94 kB / 0.4902 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.3706, allocations: 15.94 kB / 0.4902 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002492/0.3731, allocations: 1.197 MB / 0.4914 GB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004691/0.3778, allocations: 2.4 MB / 0.4937 GB, free: 9.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.3793, allocations: 0.7624 MB / 0.4945 GB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001138/0.3805, allocations: 0.5803 MB / 0.4951 GB, free: 7.863 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.906e-05/0.3806, allocations: 15.86 kB / 0.4951 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001479/0.382, allocations: 0.83 MB / 0.4959 GB, free: 7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.184e-06/0.3821, allocations: 0 / 0.4959 GB, free: 7 MB / 378.7 MB Notification: Performance of matching and sorting (n=51): time 0.0118/0.3939, allocations: 5.133 MB / 0.5009 GB, free: 1.711 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.3939, allocations: 81.11 kB / 0.501 GB, free: 1.613 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007158/0.3947, allocations: 0.6018 MB / 0.5016 GB, free: 1.004 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.3948, allocations: 57.69 kB / 0.5016 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/0.395, allocations: 292.4 kB / 0.5019 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/0.3952, allocations: 169.8 kB / 0.5021 GB, free: 496 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.692e-05/0.3953, allocations: 12 kB / 0.5021 GB, free: 484 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.3955, allocations: 378.8 kB / 0.5024 GB, free: 96 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1762/0.5717, allocations: 0.5855 MB / 0.503 GB, free: 99.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.5731, allocations: 0.6908 MB / 0.5037 GB, free: 99.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002233/0.5754, allocations: 1.065 MB / 0.5047 GB, free: 99.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.5754, allocations: 1 kB / 0.5047 GB, free: 99.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00388/0.5793, allocations: 1.856 MB / 0.5065 GB, free: 99.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.5793, allocations: 5.75 kB / 0.5065 GB, free: 99.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.069e-05/0.5793, allocations: 13.27 kB / 0.5065 GB, free: 99.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00409/0.5834, allocations: 4.184 MB / 0.5106 GB, free: 99.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004378/0.5839, allocations: 117.8 kB / 0.5107 GB, free: 99.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00564/0.5895, allocations: 5.415 MB / 0.516 GB, free: 95.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.5907, allocations: 296 kB / 0.5163 GB, free: 95.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.5909, allocations: 110.4 kB / 0.5164 GB, free: 95.32 MB / 378.7 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): 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.0003954/0.5913, allocations: 246 kB / 0.5167 GB, free: 95.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.5914, allocations: 72.09 kB / 0.5167 GB, free: 95.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002722/0.5941, allocations: 1.585 MB / 0.5183 GB, free: 94.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.5941, allocations: 4 kB / 0.5183 GB, free: 94.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.5941, allocations: 0 / 0.5183 GB, free: 94.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.5942, allocations: 4 kB / 0.5183 GB, free: 94.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003944/0.5981, allocations: 2.61 MB / 0.5208 GB, free: 92.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.5981, allocations: 2.375 kB / 0.5208 GB, free: 92.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004265/0.5986, allocations: 100.8 kB / 0.5209 GB, free: 91.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004026/0.6026, allocations: 4.202 MB / 0.525 GB, free: 87.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.836e-05/0.6027, allocations: 39.97 kB / 0.5251 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005072/0.6078, allocations: 5.111 MB / 0.5301 GB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.6078, allocations: 3.938 kB / 0.5301 GB, free: 82.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004231/0.612, allocations: 2.456 MB / 0.5325 GB, free: 79.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004583/0.6125, allocations: 312.8 kB / 0.5328 GB, free: 79.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.6126, allocations: 23.94 kB / 0.5328 GB, free: 79.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.6139, allocations: 303.7 kB / 0.5331 GB, free: 79.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001199/0.6151, allocations: 0.6588 MB / 0.5337 GB, free: 78.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.6152, allocations: 95.95 kB / 0.5338 GB, free: 78.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004861/0.6157, allocations: 0.5185 MB / 0.5343 GB, free: 77.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6157, allocations: 0 / 0.5343 GB, free: 77.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007728/0.6165, allocations: 231.8 kB / 0.5345 GB, free: 77.69 MB / 378.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) * Number of clocked states: 0 () * 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.0002477/0.6167, allocations: 169.2 kB / 0.5347 GB, free: 77.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002439/0.6192, allocations: 1.519 MB / 0.5362 GB, free: 75.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.6192, allocations: 0 / 0.5362 GB, free: 75.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.6207, allocations: 0.924 MB / 0.5371 GB, free: 75.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006446/0.6213, allocations: 71.44 kB / 0.5372 GB, free: 74.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00338/0.6247, allocations: 2.225 MB / 0.5393 GB, free: 72.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/0.625, allocations: 0.9279 MB / 0.5402 GB, free: 71.76 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000204/0.6252, allocations: 43.27 kB / 0.5403 GB, free: 71.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.6253, allocations: 31.42 kB / 0.5403 GB, free: 71.68 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.6253, allocations: 0 / 0.5403 GB, free: 71.68 MB / 378.7 MB Notification: Performance of Templates: time 0.02256/0.6479, allocations: 20.74 MB / 0.5606 GB, free: 50.91 MB / 378.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/jenkins1/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