Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.Friction") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002501/0.002506, allocations: 179.9 kB / 8.152 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.734/1.734, allocations: 205.2 MB / 213.7 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001279/0.001278, allocations: 95.11 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.195e-06/8.275e-06, allocations: 0 / 314.3 MB, free: 9.074 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.242, allocations: 47.55 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1265/0.3685, allocations: 79.94 MB / 441.8 MB, free: 6.141 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.3689, allocations: 75.95 kB / 441.8 MB, free: 6.066 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.07767/0.4466, allocations: 13.65 MB / 455.5 MB, free: 8.449 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.211e-05/0.4467, allocations: 12 kB / 455.5 MB, free: 8.438 MB / 346.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.005542/0.4522, allocations: 1.125 MB / 456.6 MB, free: 7.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.4523, allocations: 12.03 kB / 456.6 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004545/0.4528, allocations: 83.06 kB / 456.7 MB, free: 7.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/0.4541, allocations: 0.4949 MB / 457.2 MB, free: 6.641 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.477e-05/0.4542, allocations: 16 kB / 457.2 MB, free: 6.625 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002057/0.4544, allocations: 20 kB / 457.2 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003516/0.4579, allocations: 1.071 MB / 458.3 MB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002698/0.4607, allocations: 0.8561 MB / 459.2 MB, free: 4.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.658e-05/0.4608, allocations: 4.844 kB / 459.2 MB, free: 4.656 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000164/0.4609, allocations: 4 kB / 459.2 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.461, allocations: 12 kB / 459.2 MB, free: 4.641 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01043/0.4714, allocations: 2.426 MB / 461.6 MB, free: 2.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/0.4733, allocations: 0.5969 MB / 462.2 MB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.4749, allocations: 0.5171 MB / 462.7 MB, free: 1.012 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001292/0.4751, allocations: 11.94 kB / 462.7 MB, free: 1 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002137/0.4772, allocations: 0.7593 MB / 463.5 MB, free: 228 kB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.018e-06/0.4773, allocations: 2.719 kB / 463.5 MB, free: 228 kB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.01208/0.4894, allocations: 3.426 MB / 466.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/0.4895, allocations: 85.11 kB / 467 MB, free: 12.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009839/0.4905, allocations: 0.4965 MB / 467.5 MB, free: 12.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003362/0.4908, allocations: 37.69 kB / 467.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.491, allocations: 218.9 kB / 467.8 MB, free: 11.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003072/0.4913, allocations: 173.8 kB / 467.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.4914, allocations: 4 kB / 467.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.4916, allocations: 334.8 kB / 468.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/0.4932, allocations: 0.5284 MB / 468.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/0.4948, allocations: 0.6109 MB / 469.4 MB, free: 10.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/0.4963, allocations: 470.4 kB / 469.9 MB, free: 9.691 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.4963, allocations: 0 / 469.9 MB, free: 9.691 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00591/0.5023, allocations: 1.668 MB / 471.5 MB, free: 8.008 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.5023, allocations: 7.969 kB / 471.5 MB, free: 8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-05/0.5024, allocations: 19.28 kB / 471.6 MB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009925/0.5123, allocations: 3.966 MB / 475.5 MB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.5135, allocations: 127.8 kB / 475.6 MB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009013/0.5226, allocations: 4.849 MB / 480.5 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003243/0.5259, allocations: 331.6 kB / 480.8 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003603/0.5263, allocations: 104 kB / 480.9 MB, free: 14.34 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.0004816/0.5268, allocations: 52.91 kB / 481 MB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002946/0.5271, allocations: 71.16 kB / 481 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005914/0.533, allocations: 1.618 MB / 482.7 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/0.5331, allocations: 7.906 kB / 482.7 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.5331, allocations: 128 / 482.7 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.769e-05/0.5331, allocations: 11.98 kB / 482.7 MB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008646/0.5418, allocations: 2.537 MB / 485.2 MB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/0.5418, allocations: 1.5 kB / 485.2 MB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.5429, allocations: 104 kB / 485.3 MB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008945/0.5519, allocations: 3.985 MB / 489.3 MB, free: 5.859 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002641/0.5522, allocations: 39.95 kB / 489.3 MB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008967/0.5612, allocations: 4.806 MB / 494.2 MB, free: 0.7617 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.5613, allocations: 0 / 494.2 MB, free: 0.7617 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007864/0.5691, allocations: 2.333 MB / 496.5 MB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.5703, allocations: 308.1 kB / 496.8 MB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003253/0.5706, allocations: 15.94 kB / 496.8 MB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003513/0.5741, allocations: 339.7 kB / 497.1 MB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009424/0.5751, allocations: 223.5 kB / 497.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002661/0.5754, allocations: 87.97 kB / 497.4 MB, free: 13.39 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001012/0.5765, allocations: 491.1 kB / 497.9 MB, free: 12.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001291/0.5778, allocations: 200 kB / 498.1 MB, free: 12.72 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.0004904/0.5783, allocations: 160.7 kB / 498.3 MB, free: 12.56 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004014/0.5823, allocations: 1.328 MB / 499.6 MB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/0.5824, allocations: 2.719 kB / 499.6 MB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002233/0.5846, allocations: 0.7415 MB / 0.4886 GB, free: 10.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009656/0.5857, allocations: 58.77 kB / 0.4887 GB, free: 10.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007172/0.5929, allocations: 1.609 MB / 0.4902 GB, free: 8.734 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000966/0.5939, allocations: 0.9783 MB / 0.4912 GB, free: 7.734 MB / 394.7 MB Notification: Performance of SimCode: time 1.704e-06/0.5939, allocations: 0 / 0.4912 GB, free: 7.734 MB / 394.7 MB Notification: Performance of Templates: time 0.1497/0.7436, allocations: 15.67 MB / 0.5065 GB, free: 167.7 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches