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") [: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.001485/0.001485, allocations: 173.7 kB / 8.479 MB, free: 1.871 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.684/1.684, allocations: 205.2 MB / 214.1 MB, free: 5.09 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.001055/0.001055, allocations: 82.33 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.015e-06/8.376e-06, allocations: 0 / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09978/0.09981, allocations: 47.57 MB / 362.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3229/0.4228, allocations: 79.93 MB / 442.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003305/0.4232, allocations: 68.67 kB / 442.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.0394/0.4626, allocations: 13.66 MB / 456.2 MB, free: 6.547 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.499e-05/0.4627, allocations: 11.88 kB / 456.2 MB, free: 6.547 MB / 314.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.003678/0.4664, allocations: 1.128 MB / 457.3 MB, free: 5.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.4665, allocations: 9.844 kB / 457.3 MB, free: 5.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003499/0.4668, allocations: 76.12 kB / 457.4 MB, free: 5.781 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008423/0.4677, allocations: 498 kB / 457.9 MB, free: 5.457 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.343e-05/0.4677, allocations: 16.5 kB / 457.9 MB, free: 5.457 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.4679, allocations: 19.22 kB / 457.9 MB, free: 5.457 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00199/0.4699, allocations: 1.075 MB / 459 MB, free: 5.309 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.4713, allocations: 0.8554 MB / 459.9 MB, free: 5.035 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.307e-05/0.4713, allocations: 6 kB / 459.9 MB, free: 5.031 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.901e-05/0.4714, allocations: 4.953 kB / 459.9 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.916e-05/0.4715, allocations: 8.438 kB / 459.9 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005603/0.4771, allocations: 2.426 MB / 462.3 MB, free: 3.988 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009436/0.478, allocations: 0.5957 MB / 462.9 MB, free: 3.898 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008159/0.4789, allocations: 0.5227 MB / 463.4 MB, free: 3.828 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.863e-05/0.4789, allocations: 12.2 kB / 463.4 MB, free: 3.824 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001144/0.4801, allocations: 0.759 MB / 464.2 MB, free: 3.578 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.366e-06/0.4801, allocations: 1.125 kB / 464.2 MB, free: 3.578 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.006798/0.4869, allocations: 3.422 MB / 467.6 MB, free: 2.492 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.487, allocations: 85.83 kB / 467.7 MB, free: 2.398 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006648/0.4876, allocations: 0.4934 MB / 468.2 MB, free: 2.223 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001149/0.4878, allocations: 42.56 kB / 468.2 MB, free: 2.188 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.4879, allocations: 198.7 kB / 468.4 MB, free: 2.039 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.4881, allocations: 169.9 kB / 468.6 MB, free: 1.922 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.548e-05/0.4881, allocations: 1.188 kB / 468.6 MB, free: 1.922 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4883, allocations: 380.7 kB / 469 MB, free: 1.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008363/0.4891, allocations: 0.5268 MB / 469.5 MB, free: 1.539 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009104/0.49, allocations: 0.6212 MB / 470.1 MB, free: 1.391 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007232/0.4908, allocations: 465.3 kB / 470.6 MB, free: 1.262 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.4908, allocations: 7.938 kB / 470.6 MB, free: 1.254 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002811/0.4936, allocations: 1.717 MB / 472.3 MB, free: 15.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.4936, allocations: 4 kB / 472.3 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.652e-05/0.4937, allocations: 12 kB / 472.3 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004845/0.4985, allocations: 3.959 MB / 476.3 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005773/0.4991, allocations: 127.7 kB / 476.4 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005348/0.5045, allocations: 4.886 MB / 481.3 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.5061, allocations: 327.5 kB / 481.6 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/0.5063, allocations: 107.8 kB / 481.7 MB, free: 7.277 MB / 330.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.0004246/0.5067, allocations: 132.7 kB / 481.8 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.5069, allocations: 75.14 kB / 481.9 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003238/0.5102, allocations: 1.621 MB / 483.5 MB, free: 5.746 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.5102, allocations: 7.938 kB / 483.6 MB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.5102, allocations: 8 kB / 483.6 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.5102, allocations: 0 / 483.6 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004741/0.515, allocations: 2.529 MB / 486.1 MB, free: 3.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.515, allocations: 4.094 kB / 486.1 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005404/0.5155, allocations: 103.3 kB / 486.2 MB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005128/0.5207, allocations: 3.998 MB / 490.2 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.5208, allocations: 27.09 kB / 490.2 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005763/0.5266, allocations: 4.812 MB / 495 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.238e-06/0.5266, allocations: 4 kB / 495 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004473/0.5311, allocations: 2.328 MB / 497.4 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007728/0.5319, allocations: 316 kB / 497.7 MB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002583/0.5322, allocations: 12.38 kB / 497.7 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001708/0.5339, allocations: 339.7 kB / 498 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000498/0.5344, allocations: 219.5 kB / 498.2 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001844/0.5346, allocations: 91.97 kB / 498.3 MB, free: 8.473 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.000774/0.5354, allocations: 495.1 kB / 498.8 MB, free: 7.992 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00104/0.5364, allocations: 200 kB / 499 MB, free: 7.797 MB / 346.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.0004165/0.5368, allocations: 155 kB / 499.1 MB, free: 7.637 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002226/0.5391, allocations: 1.324 MB / 0.4887 GB, free: 6.289 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.5391, allocations: 0 / 0.4887 GB, free: 6.289 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.5404, allocations: 0.7811 MB / 0.4895 GB, free: 5.488 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005892/0.541, allocations: 58.25 kB / 0.4896 GB, free: 5.438 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004117/0.5452, allocations: 1.553 MB / 0.4911 GB, free: 3.836 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007198/0.5459, allocations: 0.9666 MB / 0.492 GB, free: 2.848 MB / 346.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5459, allocations: 0 / 0.492 GB, free: 2.848 MB / 346.7 MB Notification: Performance of Templates: time 0.03082/0.5767, allocations: 18.03 MB / 0.5096 GB, free: 0.7266 MB / 362.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