Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001578/0.001578, allocations: 176.9 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008901/0.00089, allocations: 84.12 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.95e-05/1.951e-05, allocations: 4 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09917/0.0992, allocations: 47.58 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.327/0.4262, allocations: 80.26 MB / 443.3 MB, free: 15.42 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.4265, allocations: 64.16 kB / 443.4 MB, free: 15.39 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04095/0.4675, allocations: 13.62 MB / 457 MB, free: 3.516 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4675, allocations: 0 / 457 MB, free: 3.516 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.042e-05/0.4676, allocations: 12 kB / 457 MB, free: 3.504 MB / 330.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.002704/0.4703, allocations: 1.08 MB / 458.1 MB, free: 2.422 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.4703, allocations: 8.031 kB / 458.1 MB, free: 2.414 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001846/0.4705, allocations: 79.06 kB / 458.2 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007522/0.4713, allocations: 0.4909 MB / 458.7 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.679e-05/0.4713, allocations: 16 kB / 458.7 MB, free: 1.836 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.4714, allocations: 20 kB / 458.7 MB, free: 1.816 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001549/0.473, allocations: 1.025 MB / 459.7 MB, free: 1.078 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.4743, allocations: 0.8174 MB / 460.6 MB, free: 452 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.4743, allocations: 11.72 kB / 460.6 MB, free: 444 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-05/0.4744, allocations: 3.938 kB / 460.6 MB, free: 440 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.988e-05/0.4744, allocations: 8 kB / 460.6 MB, free: 432 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004764/0.4792, allocations: 2.337 MB / 462.9 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008422/0.4801, allocations: 0.6196 MB / 463.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006573/0.4807, allocations: 498.2 kB / 464 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.692e-05/0.4808, allocations: 15.92 kB / 464 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.4818, allocations: 0.7265 MB / 464.8 MB, free: 13.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.795e-06/0.4818, allocations: 0 / 464.8 MB, free: 13.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.005819/0.4877, allocations: 3.263 MB / 468 MB, free: 10.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.12e-05/0.4878, allocations: 86.11 kB / 468.1 MB, free: 10.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000615/0.4884, allocations: 0.4964 MB / 468.6 MB, free: 9.781 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.4885, allocations: 44.52 kB / 468.7 MB, free: 9.738 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001984/0.4887, allocations: 283.1 kB / 468.9 MB, free: 9.551 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.4889, allocations: 165.8 kB / 469.1 MB, free: 9.414 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.823e-05/0.489, allocations: 0 / 469.1 MB, free: 9.414 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4891, allocations: 382 kB / 469.5 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000689/0.4898, allocations: 0.4994 MB / 470 MB, free: 8.723 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007473/0.4906, allocations: 0.5842 MB / 470.6 MB, free: 8.281 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007105/0.4913, allocations: 440.1 kB / 471 MB, free: 7.961 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4913, allocations: 4 kB / 471 MB, free: 7.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002793/0.4941, allocations: 1.628 MB / 472.6 MB, free: 6.691 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.4942, allocations: 8 kB / 472.6 MB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.454e-05/0.4942, allocations: 8 kB / 472.6 MB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004955/0.4992, allocations: 4.128 MB / 476.8 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000588/0.4998, allocations: 115 kB / 476.9 MB, free: 2.781 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007239/0.507, allocations: 5.478 MB / 482.4 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.5087, allocations: 287.7 kB / 482.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001556/0.5089, allocations: 99.98 kB / 482.7 MB, free: 13.37 MB / 362.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.0004049/0.5093, allocations: 151.3 kB / 482.9 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.5095, allocations: 67.16 kB / 482.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003096/0.5126, allocations: 1.455 MB / 484.4 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.5126, allocations: 8 kB / 484.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.5126, allocations: 0 / 484.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.5126, allocations: 3.984 kB / 484.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004575/0.5172, allocations: 2.452 MB / 486.9 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.5173, allocations: 0 / 486.9 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005166/0.5178, allocations: 99.95 kB / 487 MB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005187/0.523, allocations: 4.141 MB / 491.1 MB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001443/0.5232, allocations: 43.89 kB / 491.1 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006412/0.5296, allocations: 5.138 MB / 496.3 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.5296, allocations: 4.031 kB / 496.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003958/0.5336, allocations: 2.227 MB / 498.5 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005983/0.5342, allocations: 308.2 kB / 498.8 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001495/0.5344, allocations: 15.98 kB / 498.8 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/0.536, allocations: 291.7 kB / 499.1 MB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001353/0.5373, allocations: 0.6626 MB / 499.8 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/0.5375, allocations: 91.97 kB / 499.9 MB, free: 11.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005988/0.5381, allocations: 491.1 kB / 0.4886 GB, free: 11.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5381, allocations: 0 / 0.4886 GB, free: 11.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009345/0.5391, allocations: 219.9 kB / 0.4888 GB, free: 11.11 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) * 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.0003262/0.5394, allocations: 147.2 kB / 0.489 GB, free: 10.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002028/0.5414, allocations: 1.304 MB / 0.4902 GB, free: 9.621 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.5414, allocations: 3.938 kB / 0.4902 GB, free: 9.617 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001309/0.5428, allocations: 0.8233 MB / 0.4911 GB, free: 8.773 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005196/0.5433, allocations: 47.84 kB / 0.4911 GB, free: 8.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004534/0.5478, allocations: 1.831 MB / 0.4929 GB, free: 6.855 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005751/0.5484, allocations: 0.938 MB / 0.4938 GB, free: 5.891 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002722/0.5487, allocations: 43.27 kB / 0.4938 GB, free: 5.844 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.5488, allocations: 31.42 kB / 0.4939 GB, free: 5.812 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5488, allocations: 0 / 0.4939 GB, free: 5.812 MB / 378.7 MB Notification: Performance of Templates: time 0.02795/0.5768, allocations: 18.13 MB / 0.5116 GB, free: 3.574 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches