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.001628/0.001628, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.002099/0.002099, allocations: 213.1 kB / 24.5 MB, free: 4.148 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.538/1.538, allocations: 230.5 MB / 258.1 MB, free: 8.008 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.003045/0.003045, allocations: 63.89 kB / 379 MB, free: 2.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3039, allocations: 53.4 MB / 432.4 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004301/0.3082, allocations: 2.605 MB / 435 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.3094, allocations: 0.5927 MB / 435.6 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.3095, allocations: 4 kB / 435.6 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003252/0.3098, allocations: 75.41 kB / 435.7 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003041/0.3101, allocations: 131 kB / 435.8 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003111/0.3104, allocations: 163.8 kB / 436 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005874/0.311, allocations: 0.5148 MB / 436.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.3112, allocations: 48.91 kB / 436.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002832/0.3115, allocations: 231.3 kB / 436.8 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003875/0.3119, allocations: 255.2 kB / 437 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.449e-05/0.3119, allocations: 40 kB / 437.1 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.3121, allocations: 87.98 kB / 437.2 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.3123, allocations: 119.6 kB / 437.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002209/0.3125, allocations: 203 kB / 437.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006324/0.3131, allocations: 0.5033 MB / 438 MB, free: 1.246 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.3131, allocations: 8 kB / 438 MB, free: 1.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3131, allocations: 3.938 kB / 438 MB, free: 1.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.3132, allocations: 0 / 438 MB, free: 1.234 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.001387/0.3145, allocations: 0.6375 MB / 438.6 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.3146, allocations: 8.031 kB / 438.6 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.3147, allocations: 40.7 kB / 438.7 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004595/0.3151, allocations: 233.9 kB / 438.9 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.34e-05/0.3152, allocations: 25.03 kB / 438.9 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.062e-05/0.3153, allocations: 32.38 kB / 439 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007515/0.316, allocations: 378.4 kB / 439.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.316, allocations: 16.14 kB / 439.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.25e-05/0.3161, allocations: 11.94 kB / 439.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.3161, allocations: 8 kB / 439.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008181/0.3169, allocations: 382.4 kB / 439.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.319, allocations: 1.095 MB / 440.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006353/0.3196, allocations: 313.7 kB / 441.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003653/0.32, allocations: 176.8 kB / 441.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.046e-05/0.3201, allocations: 15.98 kB / 441.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.3201, allocations: 38.5 kB / 441.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.093e-06/0.3201, allocations: 0 / 441.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004656/0.3247, allocations: 1.7 MB / 443.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.3248, allocations: 59.84 kB / 443.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000321/0.3251, allocations: 253 kB / 443.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.927e-05/0.3252, allocations: 45.69 kB / 443.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.3253, allocations: 157 kB / 443.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.3255, allocations: 170.6 kB / 443.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.3256, allocations: 94.3 kB / 443.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.3258, allocations: 342.8 kB / 444.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003851/0.3262, allocations: 197.1 kB / 444.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004603/0.3266, allocations: 273.8 kB / 444.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000639/0.3273, allocations: 365.6 kB / 445 MB, free: 9.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3273, allocations: 4 kB / 445 MB, free: 9.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001232/0.3285, allocations: 0.5951 MB / 445.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.3285, allocations: 12.16 kB / 445.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3285, allocations: 0 / 445.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000743/0.3293, allocations: 345.5 kB / 445.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.3295, allocations: 67.84 kB / 446 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001417/0.331, allocations: 1.362 MB / 447.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004288/0.3314, allocations: 67.94 kB / 447.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.329e-05/0.3314, allocations: 20 kB / 447.4 MB, free: 7.402 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.0002357/0.3317, allocations: 169.8 kB / 447.6 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.141e-05/0.3318, allocations: 39.7 kB / 447.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.3319, allocations: 55.7 kB / 447.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.3319, allocations: 12 kB / 447.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.3319, allocations: 0 / 447.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3319, allocations: 0 / 447.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002875/0.3348, allocations: 1.297 MB / 449 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3348, allocations: 0 / 449 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002757/0.3351, allocations: 63.91 kB / 449.1 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006306/0.3357, allocations: 301.7 kB / 449.4 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.508e-05/0.3358, allocations: 23.92 kB / 449.4 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/0.3371, allocations: 1.312 MB / 450.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3371, allocations: 4.125 kB / 450.7 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00181/0.3389, allocations: 0.9099 MB / 451.6 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002139/0.3391, allocations: 79.73 kB / 451.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.232e-05/0.3392, allocations: 16.19 kB / 451.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/0.3395, allocations: 43.95 kB / 451.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.3397, allocations: 95.69 kB / 451.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.123e-05/0.3398, allocations: 19.98 kB / 451.9 MB, free: 2.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002275/0.34, allocations: 184.5 kB / 452 MB, free: 2.613 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.34, allocations: 4 kB / 452 MB, free: 2.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004834/0.3405, allocations: 95.94 kB / 452.1 MB, free: 2.516 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.001434/0.3419, allocations: 382.8 kB / 452.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001204/0.3431, allocations: 473.5 kB / 453 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.3431, allocations: 0 / 453 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006004/0.3437, allocations: 271.7 kB / 453.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005708/0.3443, allocations: 67.97 kB / 453.3 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002681/0.347, allocations: 1.088 MB / 454.4 MB, free: 336 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004885/0.3474, allocations: 0.7918 MB / 455.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.3476, allocations: 43.36 kB / 455.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3476, allocations: 0 / 455.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of Templates: time 0.01148/0.3591, allocations: 7.114 MB / 462.3 MB, free: 8.348 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/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_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: 8.438983216881752]