Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001776/0.001776, allocations: 108.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002118/0.002118, allocations: 217.3 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.541/1.541, allocations: 230.4 MB / 258.1 MB, free: 8.148 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 71.81 kB / 378.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2657, allocations: 53.3 MB / 432 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00632/0.272, allocations: 3.153 MB / 435.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003267/0.2753, allocations: 1.356 MB / 436.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002927/0.2756, allocations: 7.938 kB / 436.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005529/0.2761, allocations: 95.22 kB / 436.6 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003827/0.2765, allocations: 126.9 kB / 436.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001258/0.2777, allocations: 422.8 kB / 437.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001309/0.2791, allocations: 0.8153 MB / 438 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002576/0.2793, allocations: 69.58 kB / 438.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007952/0.2801, allocations: 379 kB / 438.4 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002463/0.2826, allocations: 1.463 MB / 439.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001967/0.2828, allocations: 75.92 kB / 440 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000406/0.2832, allocations: 135.9 kB / 440.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003678/0.2835, allocations: 235.8 kB / 440.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004872/0.284, allocations: 358 kB / 440.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001492/0.2855, allocations: 0.9121 MB / 441.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2855, allocations: 0 / 441.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2855, allocations: 0 / 441.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.2855, allocations: 0 / 441.6 MB, free: 13.8 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.00565/0.2912, allocations: 1.514 MB / 443.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.2912, allocations: 8.031 kB / 443.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007579/0.292, allocations: 104.4 kB / 443.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.293, allocations: 440 kB / 443.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.54e-05/0.2931, allocations: 29.38 kB / 443.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.2932, allocations: 44.36 kB / 443.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.2954, allocations: 0.6381 MB / 444.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/0.2955, allocations: 3.953 kB / 444.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.2956, allocations: 16 kB / 444.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.2956, allocations: 8 kB / 444.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002862/0.2985, allocations: 0.6937 MB / 445.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004094/0.3025, allocations: 1.663 MB / 446.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.304, allocations: 484.8 kB / 447.2 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008806/0.3049, allocations: 289.8 kB / 447.5 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.709e-05/0.305, allocations: 11.94 kB / 447.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00124/0.3062, allocations: 486.3 kB / 448 MB, free: 7.164 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.404e-06/0.3062, allocations: 0 / 448 MB, free: 7.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.01335/0.3195, allocations: 2.817 MB / 450.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.012e-05/0.3196, allocations: 85.05 kB / 450.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/0.3213, allocations: 0.9181 MB / 451.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000185/0.3215, allocations: 49.69 kB / 451.8 MB, free: 3.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003876/0.3218, allocations: 308.6 kB / 452.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002775/0.3221, allocations: 174.7 kB / 452.3 MB, free: 2.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003785/0.3225, allocations: 122.2 kB / 452.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003262/0.3228, allocations: 386.7 kB / 452.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001471/0.3243, allocations: 321.1 kB / 453.1 MB, free: 1.805 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001636/0.3259, allocations: 422.9 kB / 453.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002331/0.3283, allocations: 0.5073 MB / 454.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3283, allocations: 0 / 454.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.004412/0.3327, allocations: 0.9797 MB / 455 MB, free: 15.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.3327, allocations: 11.94 kB / 455 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.3327, allocations: 4 kB / 455 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001793/0.3345, allocations: 0.5412 MB / 455.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008065/0.3353, allocations: 115.8 kB / 455.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01007/0.3454, allocations: 4.737 MB / 460.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002377/0.3478, allocations: 228 kB / 460.7 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001786/0.3479, allocations: 27.98 kB / 460.7 MB, free: 9.859 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.0009269/0.3489, allocations: 260 kB / 460.9 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004295/0.3493, allocations: 75.52 kB / 461 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003275/0.3496, allocations: 102.2 kB / 461.1 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.3496, allocations: 8 kB / 461.1 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.3497, allocations: 0 / 461.1 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.3497, allocations: 3.984 kB / 461.1 MB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005112/0.3548, allocations: 1.412 MB / 462.5 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.3548, allocations: 0 / 462.5 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007388/0.3555, allocations: 79.88 kB / 462.6 MB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00155/0.3571, allocations: 0.5216 MB / 463.1 MB, free: 7.316 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.3572, allocations: 23.95 kB / 463.2 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008584/0.3658, allocations: 4.359 MB / 467.5 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.695e-06/0.3658, allocations: 7.922 kB / 467.5 MB, free: 2.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005374/0.3711, allocations: 1.257 MB / 468.8 MB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006866/0.3718, allocations: 220.5 kB / 469 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002301/0.3721, allocations: 20 kB / 469 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002627/0.3747, allocations: 271.6 kB / 469.3 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002184/0.3769, allocations: 0.5655 MB / 469.9 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/0.377, allocations: 31.95 kB / 469.9 MB, free: 212 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001218/0.3782, allocations: 0.6708 MB / 470.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3782, allocations: 0 / 470.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001382/0.3796, allocations: 184 kB / 470.7 MB, free: 15.36 MB / 382.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.002021/0.3816, allocations: 405.1 kB / 471.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003632/0.3853, allocations: 0.9178 MB / 472 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.3853, allocations: 0 / 472 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002247/0.3875, allocations: 0.6537 MB / 472.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.3886, allocations: 70.97 kB / 472.8 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005881/0.3945, allocations: 1.92 MB / 474.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007413/0.3952, allocations: 0.9373 MB / 475.6 MB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002458/0.3954, allocations: 51.25 kB / 475.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.3956, allocations: 43.42 kB / 475.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3956, allocations: 0 / 475.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of Templates: time 0.03212/0.4277, allocations: 16.39 MB / 492.1 MB, free: 10.04 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 5.506577010732144]