Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.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.001573/0.001573, allocations: 110.4 kB / 21.23 MB, free: 0.5312 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.002086/0.002086, allocations: 214.8 kB / 24.54 MB, free: 3.922 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.469/1.469, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake") [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.002154/0.002154, allocations: 72.7 kB / 379 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2862, allocations: 53.36 MB / 432.4 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.005258/0.2915, allocations: 2.601 MB / 435 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.2932, allocations: 0.5966 MB / 435.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003486/0.2936, allocations: 7.938 kB / 435.6 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004607/0.294, allocations: 67.42 kB / 435.7 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005977/0.2946, allocations: 131.1 kB / 435.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005282/0.2951, allocations: 167.7 kB / 436 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008573/0.296, allocations: 0.5109 MB / 436.5 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.2962, allocations: 44.92 kB / 436.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004316/0.2966, allocations: 239.3 kB / 436.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000504/0.2971, allocations: 255.1 kB / 437 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001145/0.2972, allocations: 40 kB / 437 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002739/0.2975, allocations: 99.91 kB / 437.1 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001877/0.2977, allocations: 111.7 kB / 437.2 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002822/0.298, allocations: 195.1 kB / 437.4 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008479/0.2988, allocations: 0.5071 MB / 437.9 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2988, allocations: 0 / 437.9 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2988, allocations: 0 / 437.9 MB, free: 1.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.944e-05/0.2989, allocations: 0 / 437.9 MB, free: 1.434 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001685/0.3005, allocations: 0.6476 MB / 438.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3006, allocations: 12.03 kB / 438.6 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.3007, allocations: 40.7 kB / 438.6 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005356/0.3013, allocations: 229.9 kB / 438.9 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.165e-05/0.3013, allocations: 32.97 kB / 438.9 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.522e-05/0.3014, allocations: 28.36 kB / 438.9 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007936/0.3022, allocations: 374.5 kB / 439.3 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.3022, allocations: 8.141 kB / 439.3 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.875e-05/0.3022, allocations: 11.94 kB / 439.3 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.038e-05/0.3023, allocations: 8.047 kB / 439.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008588/0.3031, allocations: 394.3 kB / 439.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002259/0.3054, allocations: 1.103 MB / 440.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006763/0.3061, allocations: 310.6 kB / 441.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003833/0.3064, allocations: 176.8 kB / 441.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.673e-05/0.3065, allocations: 8 kB / 441.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.3065, allocations: 34.56 kB / 441.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.563e-06/0.3065, allocations: 0 / 441.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.00486/0.3114, allocations: 1.708 MB / 443 MB, free: 12.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.3114, allocations: 63.77 kB / 443.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003311/0.3118, allocations: 253 kB / 443.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.038e-05/0.3118, allocations: 45.69 kB / 443.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.312, allocations: 161 kB / 443.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/0.3121, allocations: 174.6 kB / 443.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/0.3123, allocations: 98.28 kB / 443.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.3125, allocations: 338.8 kB / 444.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004166/0.3129, allocations: 189.2 kB / 444.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000485/0.3134, allocations: 269.8 kB / 444.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000665/0.3141, allocations: 357.6 kB / 444.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.3141, allocations: 4 kB / 444.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001285/0.3153, allocations: 0.6029 MB / 445.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.3154, allocations: 8 kB / 445.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.3154, allocations: 0 / 445.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007765/0.3161, allocations: 349.6 kB / 445.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.3164, allocations: 67.91 kB / 446 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.3179, allocations: 1.362 MB / 447.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004332/0.3183, allocations: 72.06 kB / 447.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-05/0.3184, allocations: 16 kB / 447.4 MB, free: 7.586 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002255/0.3186, allocations: 165.9 kB / 447.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.853e-05/0.3187, allocations: 47.7 kB / 447.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001166/0.3188, allocations: 51.55 kB / 447.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.3188, allocations: 8 kB / 447.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.3188, allocations: 0 / 447.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3188, allocations: 7.922 kB / 447.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002949/0.3218, allocations: 1.293 MB / 449 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.3218, allocations: 3.984 kB / 449 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.3221, allocations: 55.92 kB / 449 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000634/0.3227, allocations: 305.7 kB / 449.3 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.908e-05/0.3228, allocations: 23.98 kB / 449.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/0.3241, allocations: 1.308 MB / 450.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3241, allocations: 0 / 450.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.326, allocations: 0.922 MB / 451.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001997/0.3262, allocations: 83.73 kB / 451.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.139e-05/0.3263, allocations: 16 kB / 451.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003214/0.3266, allocations: 39.95 kB / 451.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000216/0.3268, allocations: 87.75 kB / 451.8 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.794e-05/0.3269, allocations: 31.92 kB / 451.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000206/0.3271, allocations: 180.5 kB / 452 MB, free: 2.793 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3271, allocations: 0 / 452 MB, free: 2.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004685/0.3276, allocations: 103.9 kB / 452.1 MB, free: 2.691 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00136/0.3289, allocations: 386 kB / 452.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.3301, allocations: 465.2 kB / 452.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.3301, allocations: 4 kB / 452.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006454/0.3307, allocations: 280 kB / 453.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005368/0.3312, allocations: 60.2 kB / 453.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.3338, allocations: 1.04 MB / 454.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004654/0.3343, allocations: 0.7918 MB / 455.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001571/0.3344, allocations: 42.95 kB / 455.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.555e-05/0.3345, allocations: 31.42 kB / 455.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3345, allocations: 0 / 455.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of Templates: time 0.01722/0.3517, allocations: 9.136 MB / 464.3 MB, free: 6.586 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.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: 4.724132476374507]