Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.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.001715/0.001715, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002329/0.002329, allocations: 215.3 kB / 23.75 MB, free: 4.668 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.501/1.501, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.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_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_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00213/0.00213, allocations: 51.92 kB / 378.2 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2788, allocations: 53.37 MB / 431.6 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004739/0.2836, allocations: 2.596 MB / 434.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.2847, allocations: 0.5887 MB / 434.8 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.2848, allocations: 4 kB / 434.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003177/0.2852, allocations: 71.42 kB / 434.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003199/0.2855, allocations: 139 kB / 435 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.2858, allocations: 163.7 kB / 435.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006061/0.2864, allocations: 0.5109 MB / 435.7 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.2866, allocations: 48.91 kB / 435.7 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003222/0.2869, allocations: 235.3 kB / 436 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003894/0.2873, allocations: 255.2 kB / 436.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.936e-05/0.2874, allocations: 40 kB / 436.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.2876, allocations: 99.98 kB / 436.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001854/0.2877, allocations: 119.6 kB / 436.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.2879, allocations: 195.1 kB / 436.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006608/0.2886, allocations: 0.4994 MB / 437.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2886, allocations: 0 / 437.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2886, allocations: 3.938 kB / 437.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.2886, allocations: 0 / 437.2 MB, free: 1.367 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.001478/0.2901, allocations: 0.6414 MB / 437.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.2901, allocations: 12.02 kB / 437.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.2902, allocations: 40.7 kB / 437.9 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005646/0.2908, allocations: 241.9 kB / 438.1 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.2908, allocations: 21.03 kB / 438.1 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.678e-05/0.2909, allocations: 32.38 kB / 438.1 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000747/0.2917, allocations: 374.5 kB / 438.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.2917, allocations: 12.12 kB / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.2917, allocations: 11.94 kB / 438.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.2917, allocations: 8 kB / 438.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008118/0.2926, allocations: 390.4 kB / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.2947, allocations: 1.099 MB / 440 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006606/0.2953, allocations: 314.6 kB / 440.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003784/0.2957, allocations: 176.8 kB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.766e-05/0.2957, allocations: 4 kB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.2958, allocations: 42.48 kB / 440.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.533e-06/0.2958, allocations: 0 / 440.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004697/0.3005, allocations: 1.701 MB / 442.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/0.3005, allocations: 59.84 kB / 442.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.3008, allocations: 257 kB / 442.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.257e-05/0.3009, allocations: 37.7 kB / 442.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.301, allocations: 153.1 kB / 442.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.3012, allocations: 178.6 kB / 442.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/0.3014, allocations: 98.28 kB / 443 MB, free: 11.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.3015, allocations: 342.8 kB / 443.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00042/0.3019, allocations: 201.1 kB / 443.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004575/0.3024, allocations: 269.7 kB / 443.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006629/0.3031, allocations: 361.6 kB / 444.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3031, allocations: 4 kB / 444.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001249/0.3043, allocations: 0.6029 MB / 444.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.3043, allocations: 7.984 kB / 444.8 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3043, allocations: 4 kB / 444.8 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007419/0.3051, allocations: 329.7 kB / 445.1 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.3054, allocations: 75.84 kB / 445.2 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/0.307, allocations: 1.37 MB / 446.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005452/0.3075, allocations: 72.03 kB / 446.6 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/0.3076, allocations: 23.98 kB / 446.6 MB, free: 7.508 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.0002176/0.3078, allocations: 158.3 kB / 446.8 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.9e-05/0.3079, allocations: 35.75 kB / 446.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001273/0.308, allocations: 51.61 kB / 446.9 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.308, allocations: 8.047 kB / 446.9 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.308, allocations: 12.05 kB / 446.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.308, allocations: 3.984 kB / 446.9 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002928/0.311, allocations: 1.297 MB / 448.2 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.311, allocations: 4 kB / 448.2 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002771/0.3113, allocations: 55.91 kB / 448.3 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006412/0.3119, allocations: 301.8 kB / 448.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.922e-05/0.3119, allocations: 23.91 kB / 448.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001425/0.3134, allocations: 1.315 MB / 449.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3134, allocations: 0 / 449.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/0.3153, allocations: 0.9103 MB / 450.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.3155, allocations: 87.72 kB / 450.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.43e-05/0.3156, allocations: 20 kB / 450.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.3159, allocations: 35.95 kB / 450.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/0.3161, allocations: 91.77 kB / 451 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.227e-05/0.3161, allocations: 19.97 kB / 451 MB, free: 2.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002074/0.3163, allocations: 184.5 kB / 451.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3163, allocations: 0 / 451.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004719/0.3168, allocations: 103.9 kB / 451.3 MB, free: 2.629 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.00138/0.3182, allocations: 390.7 kB / 451.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.3193, allocations: 473.2 kB / 452.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3193, allocations: 0 / 452.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006339/0.3199, allocations: 272.3 kB / 452.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005491/0.3205, allocations: 76.41 kB / 452.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.323, allocations: 1.043 MB / 453.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/0.3236, allocations: 0.7801 MB / 454.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002212/0.3238, allocations: 38.95 kB / 454.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.3239, allocations: 35.42 kB / 454.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3239, allocations: 0 / 454.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of Templates: time 0.01881/0.3427, allocations: 9.129 MB / 463.5 MB, free: 6.523 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.981718814000487]