Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001988/0.001988, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.00258/0.00258, allocations: 205.2 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.576/1.576, allocations: 230.5 MB / 257.4 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 67.89 kB / 378.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2822, allocations: 53.41 MB / 431.6 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004588/0.2868, allocations: 2.419 MB / 434 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.2881, allocations: 0.5771 MB / 434.6 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.2882, allocations: 4 kB / 434.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.2885, allocations: 75.42 kB / 434.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003274/0.2888, allocations: 131 kB / 434.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000357/0.2891, allocations: 167.8 kB / 435 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005615/0.2897, allocations: 0.5109 MB / 435.5 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.2899, allocations: 48.91 kB / 435.6 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002815/0.2901, allocations: 231.3 kB / 435.8 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003457/0.2905, allocations: 239.1 kB / 436 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.55e-05/0.2906, allocations: 40 kB / 436 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.2908, allocations: 91.98 kB / 436.1 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001657/0.2909, allocations: 115.6 kB / 436.3 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000213/0.2911, allocations: 167.3 kB / 436.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006533/0.2918, allocations: 0.512 MB / 436.9 MB, free: 1.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2918, allocations: 0 / 436.9 MB, free: 1.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2918, allocations: 0 / 436.9 MB, free: 1.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.2918, allocations: 0 / 436.9 MB, free: 1.207 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.001402/0.2932, allocations: 0.6375 MB / 437.6 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.2932, allocations: 8.031 kB / 437.6 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.2933, allocations: 44.7 kB / 437.6 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004946/0.2938, allocations: 233.9 kB / 437.8 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/0.2939, allocations: 25.03 kB / 437.9 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.373e-05/0.294, allocations: 32.36 kB / 437.9 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007439/0.2947, allocations: 378.4 kB / 438.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.441e-05/0.2947, allocations: 4.141 kB / 438.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/0.2948, allocations: 15.94 kB / 438.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.2948, allocations: 4 kB / 438.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008976/0.2957, allocations: 390.4 kB / 438.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.2978, allocations: 0.9633 MB / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007046/0.2985, allocations: 318.1 kB / 439.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003773/0.2989, allocations: 180.8 kB / 440.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.2989, allocations: 4 kB / 440.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.299, allocations: 38.5 kB / 440.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.723e-06/0.299, allocations: 0 / 440.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004807/0.3038, allocations: 1.707 MB / 441.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.3038, allocations: 59.78 kB / 441.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002938/0.3041, allocations: 244.9 kB / 442.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.688e-05/0.3042, allocations: 49.69 kB / 442.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.3043, allocations: 153 kB / 442.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000166/0.3044, allocations: 182.5 kB / 442.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.3046, allocations: 90.3 kB / 442.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.3048, allocations: 350.7 kB / 443 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003979/0.3052, allocations: 185.2 kB / 443.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004934/0.3057, allocations: 269.8 kB / 443.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006675/0.3063, allocations: 361.6 kB / 443.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3063, allocations: 0 / 443.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001292/0.3076, allocations: 0.6067 MB / 444.4 MB, free: 9.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.3076, allocations: 4 kB / 444.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.3077, allocations: 4 kB / 444.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007255/0.3084, allocations: 337.7 kB / 444.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/0.3087, allocations: 75.84 kB / 444.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.3101, allocations: 1.358 MB / 446.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004348/0.3105, allocations: 71.86 kB / 446.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-05/0.3106, allocations: 20.12 kB / 446.2 MB, free: 7.523 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.000221/0.3108, allocations: 161.8 kB / 446.4 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.801e-05/0.3109, allocations: 35.94 kB / 446.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.311, allocations: 51.61 kB / 446.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.311, allocations: 7.984 kB / 446.5 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.311, allocations: 3.984 kB / 446.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.311, allocations: 4 kB / 446.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002747/0.3138, allocations: 1.197 MB / 447.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.3138, allocations: 4 kB / 447.7 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/0.314, allocations: 59.91 kB / 447.8 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006054/0.3146, allocations: 305.7 kB / 448.1 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.175e-05/0.3147, allocations: 23.97 kB / 448.1 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001286/0.316, allocations: 1.312 MB / 449.4 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.316, allocations: 0 / 449.4 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/0.3178, allocations: 0.91 MB / 450.3 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.318, allocations: 79.77 kB / 450.4 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.98e-05/0.318, allocations: 20 kB / 450.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002945/0.3183, allocations: 31.95 kB / 450.4 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.3185, allocations: 91.77 kB / 450.5 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-05/0.3186, allocations: 23.97 kB / 450.5 MB, free: 3.051 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001936/0.3188, allocations: 180.5 kB / 450.7 MB, free: 2.875 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3188, allocations: 0 / 450.7 MB, free: 2.875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004506/0.3192, allocations: 92 kB / 450.8 MB, free: 2.785 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.001407/0.3206, allocations: 402.8 kB / 451.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.3217, allocations: 481.1 kB / 451.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3217, allocations: 0 / 451.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005997/0.3223, allocations: 279.6 kB / 451.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.3228, allocations: 72.52 kB / 452 MB, free: 1.707 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.3253, allocations: 1.039 MB / 453.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.3255, allocations: 185.8 kB / 453.2 MB, free: 432 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.3256, allocations: 38.95 kB / 453.3 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.46e-05/0.3257, allocations: 39.42 kB / 453.3 MB, free: 352 kB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3257, allocations: 0 / 453.3 MB, free: 352 kB / 350.1 MB Notification: Performance of Templates: time 0.01373/0.3394, allocations: 7.693 MB / 461 MB, free: 8.711 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.859715828672051]