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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 80.62 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 146 kB / 25.59 MB, free: 8.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9699/0.9699, allocations: 173.4 MB / 202.2 MB, free: 8.277 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.704e-06/1.704e-06, allocations: 0 / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.451e-05/2.621e-05, allocations: 4.703 kB / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.01326/0.01328, allocations: 2.952 MB / 272.1 MB, free: 6.84 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002315/0.0156, allocations: 1.137 MB / 273.3 MB, free: 5.707 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00538/0.02098, allocations: 7.938 kB / 273.3 MB, free: 5.699 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000463/0.02144, allocations: 83.97 kB / 273.4 MB, free: 5.617 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002708/0.02171, allocations: 125.3 kB / 273.5 MB, free: 5.496 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008434/0.02256, allocations: 421.8 kB / 273.9 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007089/0.02327, allocations: 0.8188 MB / 274.7 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.02342, allocations: 69.69 kB / 274.8 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004678/0.02809, allocations: 487.2 kB / 275.2 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00128/0.02937, allocations: 1.299 MB / 276.5 MB, free: 2.41 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.02948, allocations: 68 kB / 276.6 MB, free: 2.344 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001994/0.02968, allocations: 112 kB / 276.7 MB, free: 2.234 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003012/0.02998, allocations: 231.8 kB / 276.9 MB, free: 2.008 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.03019, allocations: 243.3 kB / 277.2 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003918/0.03411, allocations: 0.7009 MB / 277.9 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.03412, allocations: 0 / 277.9 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.03412, allocations: 0 / 277.9 MB, free: 1.066 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.772e-05/0.03414, allocations: 3.938 kB / 277.9 MB, free: 1.062 MB / 250.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.00266/0.0368, allocations: 1.409 MB / 279.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.03684, allocations: 12.03 kB / 279.3 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/0.03708, allocations: 108.4 kB / 279.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005529/0.03764, allocations: 376.3 kB / 279.8 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.031e-05/0.03769, allocations: 29.38 kB / 279.8 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.0378, allocations: 40.38 kB / 279.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.03907, allocations: 0.707 MB / 280.6 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.03909, allocations: 8.141 kB / 280.6 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.522e-05/0.03916, allocations: 20.11 kB / 280.6 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.03917, allocations: 12 kB / 280.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.04027, allocations: 0.7677 MB / 281.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002843/0.04311, allocations: 2.061 MB / 283.4 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005164/0.04363, allocations: 481.7 kB / 283.9 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002557/0.04388, allocations: 319.2 kB / 284.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.53e-05/0.04393, allocations: 8 kB / 284.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004374/0.04437, allocations: 0.5023 MB / 284.7 MB, free: 10.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 1.433e-06/0.04437, allocations: 0 / 284.7 MB, free: 10.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.003473/0.04784, allocations: 2.748 MB / 287.5 MB, free: 7.195 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.04788, allocations: 89 kB / 287.6 MB, free: 7.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004418/0.04832, allocations: 0.7609 MB / 288.3 MB, free: 6.312 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.04837, allocations: 49.69 kB / 288.4 MB, free: 6.258 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004586/0.04883, allocations: 371.3 kB / 288.7 MB, free: 5.887 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.04894, allocations: 174.6 kB / 288.9 MB, free: 5.715 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.04908, allocations: 123.9 kB / 289 MB, free: 5.586 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.04923, allocations: 0.5858 MB / 289.6 MB, free: 4.988 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003609/0.04959, allocations: 389.1 kB / 290 MB, free: 4.605 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003394/0.04993, allocations: 499.1 kB / 290.5 MB, free: 4.082 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004967/0.05043, allocations: 0.7035 MB / 291.2 MB, free: 3.336 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.05044, allocations: 0 / 291.2 MB, free: 3.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001189/0.05163, allocations: 1.303 MB / 292.5 MB, free: 2.016 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.05164, allocations: 4 kB / 292.5 MB, free: 2.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.05165, allocations: 4 kB / 292.5 MB, free: 2.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/0.05266, allocations: 1.44 MB / 293.9 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.05288, allocations: 107.8 kB / 294 MB, free: 460 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003751/0.05663, allocations: 6.461 MB / 300.5 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003895/0.05702, allocations: 151.7 kB / 300.6 MB, free: 9.582 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.436e-05/0.05705, allocations: 19.98 kB / 300.7 MB, free: 9.562 MB / 282.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 (stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,supportFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,5), (1,6), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001629/0.05722, allocations: 199.1 kB / 300.9 MB, free: 9.359 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.933e-05/0.05732, allocations: 91.52 kB / 300.9 MB, free: 9.27 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.395e-05/0.0574, allocations: 90.36 kB / 301 MB, free: 9.18 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.0574, allocations: 4 kB / 301 MB, free: 9.176 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.05741, allocations: 12 kB / 301 MB, free: 9.164 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.05741, allocations: 3.938 kB / 301.1 MB, free: 9.16 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/0.05901, allocations: 1.907 MB / 303 MB, free: 7.203 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.05901, allocations: 0 / 303 MB, free: 7.203 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004695/0.05948, allocations: 75.89 kB / 303 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.0605, allocations: 1.436 MB / 304.5 MB, free: 5.68 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.711e-05/0.06054, allocations: 19.97 kB / 304.5 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003487/0.06403, allocations: 6.013 MB / 310.5 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.06403, allocations: 0 / 310.5 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.06553, allocations: 1.81 MB / 312.3 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.0657, allocations: 139.3 kB / 312.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.356e-05/0.06576, allocations: 20 kB / 312.5 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004673/0.06623, allocations: 171.8 kB / 312.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006802/0.06691, allocations: 0.5107 MB / 313.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.921e-05/0.06695, allocations: 24.2 kB / 313.2 MB, free: 12.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002344/0.06719, allocations: 462.8 kB / 313.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.06719, allocations: 0 / 313.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004526/0.06764, allocations: 188 kB / 313.8 MB, free: 12.04 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002155/0.06785, allocations: 159.1 kB / 314 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000924/0.06878, allocations: 1.162 MB / 315.1 MB, free: 10.67 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.06878, allocations: 0 / 315.1 MB, free: 10.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000538/0.06932, allocations: 0.7505 MB / 315.9 MB, free: 9.883 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.06968, allocations: 106.8 kB / 316 MB, free: 9.781 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002264/0.07194, allocations: 1.538 MB / 317.5 MB, free: 8.195 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.923e-05/0.07204, allocations: 161.9 kB / 317.7 MB, free: 8.02 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000119/0.07216, allocations: 39.27 kB / 317.7 MB, free: 7.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/0.07235, allocations: 150.2 kB / 317.9 MB, free: 7.832 MB / 298.7 MB Notification: Performance of SimCode: time 7.62e-07/0.07235, allocations: 0 / 317.9 MB, free: 7.832 MB / 298.7 MB Notification: Performance of Templates: time 0.02163/0.09398, allocations: 21.06 MB / 338.9 MB, free: 2.762 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.537088773213327]