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.001304/0.001304, allocations: 114.4 kB / 21.17 MB, free: 0.6211 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.001403/0.001403, allocations: 206.9 kB / 24.46 MB, free: 3.891 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.533/1.533, allocations: 230.4 MB / 258.1 MB, free: 8.152 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.002011/0.002011, allocations: 67.84 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3074, allocations: 53.32 MB / 432 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004414/0.3118, allocations: 2.596 MB / 434.6 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.313, allocations: 0.5888 MB / 435.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.3131, allocations: 4 kB / 435.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003146/0.3134, allocations: 71.38 kB / 435.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003151/0.3137, allocations: 139 kB / 435.4 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003182/0.314, allocations: 163.8 kB / 435.6 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000558/0.3146, allocations: 0.5107 MB / 436.1 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.3148, allocations: 44.73 kB / 436.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002939/0.3151, allocations: 231.4 kB / 436.4 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003862/0.3155, allocations: 247.1 kB / 436.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.839e-05/0.3155, allocations: 48 kB / 436.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.3157, allocations: 103.9 kB / 436.8 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.3159, allocations: 111.6 kB / 436.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.3161, allocations: 191.1 kB / 437.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006361/0.3167, allocations: 0.5036 MB / 437.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3167, allocations: 0 / 437.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3167, allocations: 0 / 437.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.3167, allocations: 0 / 437.6 MB, free: 1.84 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.001466/0.3182, allocations: 0.7166 MB / 438.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.3182, allocations: 8.031 kB / 438.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.3183, allocations: 44.69 kB / 438.3 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005313/0.3189, allocations: 299.7 kB / 438.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.923e-05/0.3189, allocations: 29.03 kB / 438.6 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-05/0.319, allocations: 32.36 kB / 438.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007504/0.3197, allocations: 378.4 kB / 439 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.3198, allocations: 4.141 kB / 439.1 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.941e-05/0.3198, allocations: 15.94 kB / 439.1 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.3198, allocations: 4 kB / 439.1 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008063/0.3206, allocations: 390.4 kB / 439.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.3228, allocations: 1.135 MB / 440.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006111/0.3234, allocations: 310.6 kB / 440.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003614/0.3237, allocations: 176.8 kB / 441.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.249e-05/0.3238, allocations: 4 kB / 441.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.3238, allocations: 42.5 kB / 441.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 3.176e-06/0.3238, allocations: 0 / 441.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004967/0.3288, allocations: 2 MB / 443.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.3288, allocations: 59.78 kB / 443.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002986/0.3291, allocations: 253 kB / 443.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.94e-05/0.3292, allocations: 37.7 kB / 443.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.3293, allocations: 165 kB / 443.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.3295, allocations: 174.6 kB / 443.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000173/0.3297, allocations: 102.1 kB / 443.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3298, allocations: 342.8 kB / 444.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003877/0.3302, allocations: 189 kB / 444.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004587/0.3307, allocations: 264.8 kB / 444.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006485/0.3313, allocations: 361.6 kB / 445 MB, free: 9.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3313, allocations: 7.938 kB / 445 MB, free: 9.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001223/0.3325, allocations: 0.6107 MB / 445.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.3326, allocations: 4 kB / 445.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.3326, allocations: 0 / 445.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007484/0.3333, allocations: 337.7 kB / 446 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002847/0.3336, allocations: 71.84 kB / 446 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/0.335, allocations: 1.358 MB / 447.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004703/0.3355, allocations: 76.02 kB / 447.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.397e-05/0.3356, allocations: 24.06 kB / 447.5 MB, free: 7.41 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.0002643/0.3358, allocations: 163.3 kB / 447.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.948e-05/0.3359, allocations: 35.94 kB / 447.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.336, allocations: 47.62 kB / 447.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/0.3361, allocations: 15.92 kB / 447.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.3361, allocations: 4 kB / 447.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3361, allocations: 0 / 447.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002919/0.339, allocations: 1.331 MB / 449.1 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.339, allocations: 7.984 kB / 449.1 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/0.3393, allocations: 63.91 kB / 449.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006109/0.3399, allocations: 293.7 kB / 449.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.542e-05/0.3399, allocations: 19.97 kB / 449.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001282/0.3412, allocations: 1.315 MB / 450.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.3412, allocations: 4.031 kB / 450.8 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00178/0.343, allocations: 0.9064 MB / 451.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002189/0.3432, allocations: 164.8 kB / 451.8 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.297e-05/0.3433, allocations: 16 kB / 451.9 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003187/0.3436, allocations: 39.95 kB / 451.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.3438, allocations: 87.8 kB / 452 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.3439, allocations: 23.97 kB / 452 MB, free: 2.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001973/0.3441, allocations: 180.5 kB / 452.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3441, allocations: 4 kB / 452.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004722/0.3445, allocations: 96 kB / 452.3 MB, free: 2.414 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.001355/0.3459, allocations: 399.4 kB / 452.7 MB, free: 2.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.347, allocations: 477.1 kB / 453.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.347, allocations: 0 / 453.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006194/0.3477, allocations: 280.3 kB / 453.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005497/0.3482, allocations: 56.66 kB / 453.5 MB, free: 1.367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002522/0.3507, allocations: 1.054 MB / 454.5 MB, free: 276 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.3512, allocations: 0.7839 MB / 455.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.3513, allocations: 38.95 kB / 455.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.3514, allocations: 35.42 kB / 455.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3514, allocations: 0 / 455.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of Templates: time 0.01542/0.3668, allocations: 9.043 MB / 464.4 MB, free: 6.395 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.860637553036213]