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.001324/0.001324, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001442/0.001442, allocations: 215.4 kB / 24.48 MB, free: 3.941 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.478/1.478, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.001559/0.001559, allocations: 59.89 kB / 379 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2294, allocations: 53.37 MB / 432.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004013/0.2334, allocations: 2.422 MB / 434.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.2345, allocations: 0.5733 MB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.2346, allocations: 4 kB / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002764/0.2349, allocations: 71.44 kB / 435.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003117/0.2352, allocations: 135 kB / 435.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003233/0.2355, allocations: 171.8 kB / 435.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005428/0.2361, allocations: 0.5148 MB / 436.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.2362, allocations: 44.58 kB / 436.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000287/0.2365, allocations: 239.4 kB / 436.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000367/0.2369, allocations: 255.1 kB / 436.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.166e-05/0.237, allocations: 44 kB / 436.8 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000192/0.2372, allocations: 91.97 kB / 436.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001636/0.2373, allocations: 119.6 kB / 437 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.2375, allocations: 167.3 kB / 437.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006135/0.2381, allocations: 0.5011 MB / 437.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.2381, allocations: 0 / 437.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2381, allocations: 0 / 437.6 MB, free: 1.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.2381, allocations: 4 kB / 437.6 MB, free: 1.355 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.001416/0.2395, allocations: 0.6375 MB / 438.3 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2396, allocations: 19.97 kB / 438.3 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.2397, allocations: 36.7 kB / 438.3 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004602/0.2402, allocations: 237.9 kB / 438.6 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.405e-05/0.2402, allocations: 25.03 kB / 438.6 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.573e-05/0.2403, allocations: 28.38 kB / 438.6 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008197/0.2411, allocations: 382.4 kB / 439 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.2411, allocations: 4.141 kB / 439 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.9e-05/0.2412, allocations: 19.88 kB / 439 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.2412, allocations: 8 kB / 439 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008697/0.242, allocations: 386.3 kB / 439.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.2441, allocations: 0.9556 MB / 440.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006582/0.2448, allocations: 311.1 kB / 440.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003937/0.2452, allocations: 181.5 kB / 440.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.458e-05/0.2452, allocations: 11.89 kB / 440.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.2453, allocations: 42.5 kB / 440.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.185e-06/0.2453, allocations: 0 / 440.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004957/0.2502, allocations: 1.704 MB / 442.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.2503, allocations: 55.84 kB / 442.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003054/0.2506, allocations: 248.9 kB / 442.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.476e-05/0.2506, allocations: 41.7 kB / 442.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.2508, allocations: 161 kB / 443.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/0.2509, allocations: 174.6 kB / 443.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.2511, allocations: 94.28 kB / 443.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.2513, allocations: 346.8 kB / 443.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004356/0.2517, allocations: 189.2 kB / 443.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004978/0.2522, allocations: 273.8 kB / 444.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007273/0.253, allocations: 357.6 kB / 444.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.253, allocations: 0 / 444.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001344/0.2543, allocations: 0.6067 MB / 445.1 MB, free: 9.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.2543, allocations: 8 kB / 445.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.2543, allocations: 0 / 445.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007972/0.2551, allocations: 337.7 kB / 445.4 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.2554, allocations: 75.83 kB / 445.5 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/0.2569, allocations: 1.362 MB / 446.9 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004753/0.2574, allocations: 76.02 kB / 447 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.818e-05/0.2575, allocations: 20 kB / 447 MB, free: 7.664 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.0002312/0.2577, allocations: 154.4 kB / 447.1 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.2578, allocations: 43.67 kB / 447.2 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001413/0.2579, allocations: 51.66 kB / 447.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.258, allocations: 8 kB / 447.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.258, allocations: 0 / 447.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.258, allocations: 3.984 kB / 447.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003004/0.261, allocations: 1.184 MB / 448.4 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.261, allocations: 7.984 kB / 448.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002957/0.2613, allocations: 51.92 kB / 448.5 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006767/0.2619, allocations: 309.7 kB / 448.8 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.048e-05/0.262, allocations: 23.98 kB / 448.8 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001403/0.2634, allocations: 1.308 MB / 450.1 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2634, allocations: 4.031 kB / 450.1 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.2654, allocations: 0.9177 MB / 451 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002163/0.2656, allocations: 75.78 kB / 451.1 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.445e-05/0.2657, allocations: 20 kB / 451.1 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003461/0.266, allocations: 35.95 kB / 451.2 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.2662, allocations: 95.75 kB / 451.3 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.2663, allocations: 19.98 kB / 451.3 MB, free: 3.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001988/0.2665, allocations: 176.5 kB / 451.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2665, allocations: 0 / 451.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004878/0.267, allocations: 104 kB / 451.5 MB, free: 2.926 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.00151/0.2685, allocations: 406.8 kB / 451.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.2696, allocations: 473.2 kB / 452.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2697, allocations: 0 / 452.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009722/0.2706, allocations: 279.7 kB / 452.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007992/0.2714, allocations: 68.97 kB / 452.7 MB, free: 1.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003474/0.2749, allocations: 1.04 MB / 453.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001909/0.2751, allocations: 181.8 kB / 454 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002199/0.2753, allocations: 50.89 kB / 454 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.2754, allocations: 35.42 kB / 454 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2754, allocations: 0 / 454 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of Templates: time 0.0145/0.2899, allocations: 7.804 MB / 461.8 MB, free: 8.777 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 -s gbode -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/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_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.590890609004418]