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.008463/0.008463, allocations: 109.4 kB / 21.98 MB, free: 5.18 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.002239/0.002239, allocations: 220.2 kB / 25.29 MB, free: 3.203 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.457/1.457, allocations: 230.6 MB / 259 MB, free: 8.004 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.002002/0.002002, allocations: 71.88 kB / 379.8 MB, free: 2.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2824, allocations: 53.36 MB / 433.2 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00429/0.2867, allocations: 2.608 MB / 435.8 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.2879, allocations: 0.5926 MB / 436.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.288, allocations: 8 kB / 436.4 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003106/0.2883, allocations: 67.44 kB / 436.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000309/0.2886, allocations: 135 kB / 436.6 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.2889, allocations: 167.8 kB / 436.7 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005991/0.2895, allocations: 0.5109 MB / 437.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.2897, allocations: 44.92 kB / 437.3 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000286/0.29, allocations: 239.3 kB / 437.5 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003814/0.2903, allocations: 255.2 kB / 437.8 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.265e-05/0.2904, allocations: 44 kB / 437.8 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001777/0.2906, allocations: 87.98 kB / 437.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.2907, allocations: 119.6 kB / 438 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002132/0.291, allocations: 191.1 kB / 438.2 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000635/0.2916, allocations: 0.5072 MB / 438.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2916, allocations: 4 kB / 438.7 MB, free: 1.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.2916, allocations: 3.938 kB / 438.7 MB, free: 1.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2916, allocations: 0 / 438.7 MB, free: 1.398 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.001349/0.293, allocations: 0.6336 MB / 439.3 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.293, allocations: 12.03 kB / 439.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.2931, allocations: 40.69 kB / 439.4 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004593/0.2936, allocations: 241.9 kB / 439.6 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.1e-05/0.2936, allocations: 21.03 kB / 439.6 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.199e-05/0.2937, allocations: 32.38 kB / 439.7 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007783/0.2944, allocations: 374.5 kB / 440 MB, free: 16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.2945, allocations: 16.06 kB / 440.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.287e-05/0.2945, allocations: 15.94 kB / 440.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.2945, allocations: 11.94 kB / 440.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008606/0.2954, allocations: 382.4 kB / 440.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.2975, allocations: 1.099 MB / 441.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006668/0.2982, allocations: 315.2 kB / 441.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003795/0.2986, allocations: 172.8 kB / 442 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.57e-05/0.2986, allocations: 8 kB / 442 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.391e-05/0.2987, allocations: 46.53 kB / 442.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.663e-06/0.2987, allocations: 0 / 442.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004696/0.3034, allocations: 1.704 MB / 443.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.3034, allocations: 59.84 kB / 443.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.3038, allocations: 257 kB / 444.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.496e-05/0.3038, allocations: 41.7 kB / 444.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.3039, allocations: 157 kB / 444.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.3041, allocations: 170.6 kB / 444.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/0.3043, allocations: 98.28 kB / 444.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.3044, allocations: 338.8 kB / 444.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004213/0.3049, allocations: 197.2 kB / 445.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004838/0.3053, allocations: 273.7 kB / 445.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006927/0.306, allocations: 357.6 kB / 445.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.306, allocations: 0 / 445.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001278/0.3073, allocations: 0.599 MB / 446.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.3073, allocations: 8.156 kB / 446.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.3074, allocations: 8.047 kB / 446.3 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007538/0.3081, allocations: 341.5 kB / 446.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/0.3084, allocations: 67.84 kB / 446.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.3098, allocations: 1.37 MB / 448.1 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004176/0.3102, allocations: 63.92 kB / 448.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.219e-05/0.3103, allocations: 19.98 kB / 448.2 MB, free: 7.559 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.0002248/0.3105, allocations: 169.8 kB / 448.3 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.061e-05/0.3106, allocations: 39.7 kB / 448.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00013/0.3107, allocations: 55.61 kB / 448.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.3107, allocations: 4 kB / 448.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3107, allocations: 0 / 448.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3107, allocations: 3.984 kB / 448.4 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002891/0.3136, allocations: 1.293 MB / 449.7 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3136, allocations: 0 / 449.7 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002722/0.3139, allocations: 63.91 kB / 449.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000622/0.3145, allocations: 305.6 kB / 450.1 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.242e-05/0.3146, allocations: 23.91 kB / 450.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/0.316, allocations: 1.315 MB / 451.4 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.316, allocations: 8.156 kB / 451.4 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.318, allocations: 0.9102 MB / 452.3 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.3182, allocations: 79.72 kB / 452.4 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.874e-05/0.3182, allocations: 16 kB / 452.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003082/0.3185, allocations: 43.95 kB / 452.5 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.3187, allocations: 91.86 kB / 452.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-05/0.3188, allocations: 27.95 kB / 452.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002122/0.319, allocations: 180.5 kB / 452.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.319, allocations: 0 / 452.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004559/0.3195, allocations: 99.94 kB / 452.9 MB, free: 2.668 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.001344/0.3208, allocations: 380.4 kB / 453.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.3219, allocations: 473.5 kB / 453.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3219, allocations: 0 / 453.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006228/0.3226, allocations: 275.7 kB / 454 MB, free: 1.691 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005472/0.3231, allocations: 68.16 kB / 454 MB, free: 1.629 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002649/0.3258, allocations: 1.081 MB / 455.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.3262, allocations: 0.7879 MB / 455.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.3264, allocations: 35.42 kB / 455.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3264, allocations: 0 / 455.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of Templates: time 0.01135/0.3377, allocations: 7.129 MB / 463.1 MB, free: 8.523 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/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: 8.309698607074097]