Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00188/0.00188, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002216/0.002216, allocations: 214.9 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.696/1.696, allocations: 230.6 MB / 258.3 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 51.91 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3858/0.3874, allocations: 53.36 MB / 432.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.006003/0.3934, allocations: 2.893 MB / 435.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003176/0.3966, allocations: 1.282 MB / 436.5 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003087/0.3969, allocations: 8 kB / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006674/0.3976, allocations: 103.1 kB / 436.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003524/0.3979, allocations: 122.9 kB / 436.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00136/0.3993, allocations: 445.1 kB / 437.2 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.4005, allocations: 0.8115 MB / 438 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00029/0.4008, allocations: 81.3 kB / 438 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000813/0.4016, allocations: 383.1 kB / 438.4 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00241/0.404, allocations: 1.475 MB / 439.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001812/0.4042, allocations: 72 kB / 440 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004344/0.4046, allocations: 132 kB / 440.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00038/0.405, allocations: 239.7 kB / 440.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004029/0.4054, allocations: 294.5 kB / 440.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001728/0.4071, allocations: 0.9213 MB / 441.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4071, allocations: 0 / 441.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4072, allocations: 3.938 kB / 441.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.4072, allocations: 4 kB / 441.5 MB, free: 13.5 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.004717/0.4119, allocations: 1.437 MB / 443 MB, free: 12.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.916e-05/0.412, allocations: 8.031 kB / 443 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006769/0.4126, allocations: 112.3 kB / 443.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009844/0.4136, allocations: 374.2 kB / 443.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.407e-05/0.4137, allocations: 29.38 kB / 443.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.4138, allocations: 40.36 kB / 443.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/0.4156, allocations: 0.638 MB / 444.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.666e-05/0.4156, allocations: 3.953 kB / 444.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.223e-05/0.4157, allocations: 16 kB / 444.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.4157, allocations: 16 kB / 444.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002089/0.4178, allocations: 0.6818 MB / 444.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004102/0.4219, allocations: 1.437 MB / 446.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.4234, allocations: 488.8 kB / 446.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008783/0.4243, allocations: 285.6 kB / 447.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.189e-05/0.4244, allocations: 4 kB / 447.1 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001308/0.4257, allocations: 494.8 kB / 447.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.925e-06/0.4257, allocations: 0 / 447.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009796/0.4355, allocations: 2.435 MB / 450 MB, free: 4.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.4356, allocations: 89.05 kB / 450.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.4369, allocations: 0.9102 MB / 451 MB, free: 3.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.437, allocations: 49.69 kB / 451.1 MB, free: 3.719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003086/0.4373, allocations: 296.6 kB / 451.3 MB, free: 3.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002194/0.4375, allocations: 178.7 kB / 451.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000298/0.4378, allocations: 118.3 kB / 451.6 MB, free: 3.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002506/0.4381, allocations: 382.7 kB / 452 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009646/0.439, allocations: 329.1 kB / 452.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.44, allocations: 415 kB / 452.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.4416, allocations: 0.5133 MB / 453.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.4416, allocations: 0 / 453.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003231/0.4448, allocations: 0.9832 MB / 454.2 MB, free: 460 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.4448, allocations: 7.938 kB / 454.2 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.4449, allocations: 4 kB / 454.2 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001258/0.4461, allocations: 0.549 MB / 454.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005904/0.4467, allocations: 119.8 kB / 454.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007618/0.4543, allocations: 4.451 MB / 459.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.456, allocations: 235.7 kB / 459.6 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.4561, allocations: 27.98 kB / 459.6 MB, free: 10.82 MB / 366.1 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 (supportFriction.free,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,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0006689/0.4568, allocations: 254.5 kB / 459.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/0.457, allocations: 79.53 kB / 459.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002394/0.4572, allocations: 106.1 kB / 460 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.4573, allocations: 8 kB / 460.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.4573, allocations: 0 / 460.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.4573, allocations: 3.984 kB / 460.1 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003566/0.4608, allocations: 1.212 MB / 461.3 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.4608, allocations: 7.984 kB / 461.3 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005383/0.4614, allocations: 87.94 kB / 461.4 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.4625, allocations: 0.506 MB / 461.9 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-05/0.4626, allocations: 35.91 kB / 461.9 MB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006519/0.4691, allocations: 4.075 MB / 466 MB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.4691, allocations: 3.984 kB / 466 MB, free: 4.152 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004102/0.4732, allocations: 1.253 MB / 467.2 MB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000547/0.4738, allocations: 147.3 kB / 467.4 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.4739, allocations: 20 kB / 467.4 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001832/0.4757, allocations: 271.6 kB / 467.7 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001633/0.4774, allocations: 0.5693 MB / 468.2 MB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.4775, allocations: 35.95 kB / 468.3 MB, free: 1.824 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009334/0.4784, allocations: 0.6631 MB / 468.9 MB, free: 1.168 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4784, allocations: 0 / 468.9 MB, free: 1.168 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001011/0.4794, allocations: 180 kB / 469.1 MB, free: 0.9922 MB / 366.1 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001801/0.4812, allocations: 436.3 kB / 469.5 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002677/0.4839, allocations: 0.9178 MB / 470.4 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.4839, allocations: 0 / 470.4 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001563/0.4855, allocations: 0.6467 MB / 471.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007603/0.4862, allocations: 78.84 kB / 471.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004624/0.4909, allocations: 1.919 MB / 473.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004406/0.4913, allocations: 330.7 kB / 473.4 MB, free: 12.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002486/0.4915, allocations: 43.28 kB / 473.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.4917, allocations: 47.41 kB / 473.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of SimCode: time 1.038e-05/0.4917, allocations: 4 kB / 473.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of Templates: time 0.02635/0.5181, allocations: 14.91 MB / 488.4 MB, free: 13.77 MB / 398.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.124477656005183]