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") [: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 4.0.0+maint.om/package.mo): time 0.001546/0.001546, allocations: 182 kB / 8.136 MB, free: 2.207 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.335/1.335, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.000987/0.0009869, allocations: 101.7 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.061e-06/6.081e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.1994, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08921/0.2887, allocations: 81.58 MB / 468.5 MB, free: 5.215 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/0.2889, allocations: 75.89 kB / 468.6 MB, free: 5.141 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04149/0.3304, allocations: 13.82 MB / 482.4 MB, free: 7.316 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.016e-05/0.3305, allocations: 23.98 kB / 482.4 MB, free: 7.293 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.002651/0.3332, allocations: 1.122 MB / 483.5 MB, free: 6.125 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.3332, allocations: 8.031 kB / 483.5 MB, free: 6.117 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001799/0.3334, allocations: 79.8 kB / 483.6 MB, free: 6.039 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007222/0.3341, allocations: 0.4949 MB / 484.1 MB, free: 5.504 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.3342, allocations: 16 kB / 484.1 MB, free: 5.488 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.3343, allocations: 20 kB / 484.1 MB, free: 5.469 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001718/0.336, allocations: 1.075 MB / 485.2 MB, free: 4.395 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.3374, allocations: 0.8522 MB / 486.1 MB, free: 3.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.3374, allocations: 3.906 kB / 486.1 MB, free: 3.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.449e-05/0.3375, allocations: 4 kB / 486.1 MB, free: 3.516 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.3375, allocations: 9.031 kB / 486.1 MB, free: 3.508 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005201/0.3427, allocations: 2.426 MB / 488.5 MB, free: 1.012 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008485/0.3436, allocations: 0.5972 MB / 489.1 MB, free: 412 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007711/0.3444, allocations: 0.5215 MB / 489.6 MB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.512e-05/0.3445, allocations: 11.91 kB / 489.6 MB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001045/0.3455, allocations: 0.7551 MB / 490.4 MB, free: 15.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.033e-06/0.3455, allocations: 0 / 490.4 MB, free: 15.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=51): time 0.006387/0.3519, allocations: 3.426 MB / 493.8 MB, free: 11.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.352, allocations: 89.05 kB / 493.9 MB, free: 11.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005932/0.3526, allocations: 0.4915 MB / 494.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.3527, allocations: 45.69 kB / 494.4 MB, free: 10.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.3528, allocations: 204.4 kB / 494.6 MB, free: 10.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.353, allocations: 161.8 kB / 494.8 MB, free: 10.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.168e-05/0.3531, allocations: 0 / 494.8 MB, free: 10.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3532, allocations: 378.8 kB / 495.2 MB, free: 10.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008178/0.3541, allocations: 0.5401 MB / 495.7 MB, free: 9.633 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008442/0.3549, allocations: 0.611 MB / 496.3 MB, free: 8.988 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007628/0.3557, allocations: 476.7 kB / 496.8 MB, free: 8.527 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3557, allocations: 4 kB / 496.8 MB, free: 8.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003197/0.3589, allocations: 1.697 MB / 498.5 MB, free: 6.812 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.359, allocations: 7.984 kB / 498.5 MB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.964e-05/0.359, allocations: 12 kB / 498.5 MB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004994/0.364, allocations: 3.97 MB / 0.4907 GB, free: 2.809 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005762/0.3646, allocations: 123.9 kB / 0.4908 GB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1075/0.4721, allocations: 4.884 MB / 0.4956 GB, free: 137.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/0.4737, allocations: 320.2 kB / 0.4959 GB, free: 137.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.4738, allocations: 104.8 kB / 0.496 GB, free: 137.1 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.0003252/0.4742, allocations: 139.9 kB / 0.4961 GB, free: 137 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.4743, allocations: 67.62 kB / 0.4962 GB, free: 137 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002769/0.4771, allocations: 1.624 MB / 0.4978 GB, free: 137 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.4771, allocations: 6.25 kB / 0.4978 GB, free: 137 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.4771, allocations: 0 / 0.4978 GB, free: 137 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.4771, allocations: 2.531 kB / 0.4978 GB, free: 137 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003937/0.4811, allocations: 2.537 MB / 0.5003 GB, free: 136.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.4811, allocations: 0 / 0.5003 GB, free: 136.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005017/0.4816, allocations: 112.2 kB / 0.5004 GB, free: 136.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004411/0.486, allocations: 3.985 MB / 0.5043 GB, free: 136.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001227/0.4861, allocations: 30.61 kB / 0.5043 GB, free: 136.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005146/0.4913, allocations: 4.818 MB / 0.509 GB, free: 133.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.4913, allocations: 1.406 kB / 0.509 GB, free: 133.8 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004231/0.4956, allocations: 2.33 MB / 0.5113 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006336/0.4962, allocations: 315.1 kB / 0.5116 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001929/0.4964, allocations: 15.69 kB / 0.5116 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/0.4981, allocations: 342.1 kB / 0.5119 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004771/0.4986, allocations: 215.3 kB / 0.5121 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001676/0.4988, allocations: 90.14 kB / 0.5122 GB, free: 133.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006276/0.4994, allocations: 499.8 kB / 0.5127 GB, free: 133.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008836/0.5003, allocations: 200 kB / 0.5129 GB, free: 133.2 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.0003392/0.5007, allocations: 154.5 kB / 0.513 GB, free: 133.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002215/0.5029, allocations: 1.337 MB / 0.5143 GB, free: 132.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.5029, allocations: 7.344 kB / 0.5143 GB, free: 132.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001294/0.5042, allocations: 0.7667 MB / 0.5151 GB, free: 132.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004996/0.5047, allocations: 42.97 kB / 0.5151 GB, free: 132.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003622/0.5084, allocations: 1.565 MB / 0.5167 GB, free: 132.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005369/0.5089, allocations: 0.9618 MB / 0.5176 GB, free: 131.5 MB / 378.7 MB Notification: Performance of SimCode: time 7.42e-07/0.5089, allocations: 0 / 0.5176 GB, free: 131.5 MB / 378.7 MB Notification: Performance of Templates: time 0.02247/0.5314, allocations: 18.02 MB / 0.5352 GB, free: 116.1 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/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