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.001337/0.001337, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00149/0.00149, allocations: 209.2 kB / 23.73 MB, free: 4.523 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.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.00155/0.00155, allocations: 51.92 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.2383, allocations: 53.37 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.005223/0.2435, allocations: 2.419 MB / 434 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.2448, allocations: 0.5732 MB / 434.6 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.2449, allocations: 7.938 kB / 434.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002824/0.2452, allocations: 71.42 kB / 434.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003115/0.2455, allocations: 135.1 kB / 434.8 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003195/0.2458, allocations: 167.7 kB / 434.9 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005262/0.2463, allocations: 0.5109 MB / 435.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.2465, allocations: 52.91 kB / 435.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002699/0.2467, allocations: 235.3 kB / 435.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003661/0.2471, allocations: 263 kB / 436 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.562e-05/0.2472, allocations: 40 kB / 436 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.2474, allocations: 87.98 kB / 436.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001707/0.2476, allocations: 115.7 kB / 436.2 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.2477, allocations: 171.3 kB / 436.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006418/0.2484, allocations: 0.5042 MB / 436.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.2484, allocations: 0 / 436.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2484, allocations: 0 / 436.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.2484, allocations: 4 kB / 436.9 MB, free: 1.383 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.001397/0.2498, allocations: 0.6413 MB / 437.5 MB, free: 0.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.2498, allocations: 12.03 kB / 437.5 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.724e-05/0.2499, allocations: 40.7 kB / 437.6 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004826/0.2504, allocations: 233.9 kB / 437.8 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/0.2505, allocations: 32.95 kB / 437.8 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.989e-05/0.2505, allocations: 28.38 kB / 437.9 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007145/0.2512, allocations: 374.5 kB / 438.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.2513, allocations: 4.141 kB / 438.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.133e-05/0.2513, allocations: 19.94 kB / 438.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.2513, allocations: 8 kB / 438.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007881/0.2521, allocations: 382.4 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.2542, allocations: 0.9633 MB / 439.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006391/0.2548, allocations: 320.6 kB / 439.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003599/0.2552, allocations: 180.8 kB / 440.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.958e-05/0.2552, allocations: 7.938 kB / 440.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.2553, allocations: 34.56 kB / 440.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.774e-06/0.2553, allocations: 0 / 440.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004481/0.2598, allocations: 1.705 MB / 441.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.2598, allocations: 59.78 kB / 441.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002794/0.2601, allocations: 244.9 kB / 442.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.342e-05/0.2601, allocations: 45.69 kB / 442.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.2603, allocations: 153 kB / 442.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.2604, allocations: 182.5 kB / 442.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.2606, allocations: 98.28 kB / 442.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.2607, allocations: 338.8 kB / 442.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003839/0.2611, allocations: 189.2 kB / 443.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004637/0.2616, allocations: 269.8 kB / 443.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006866/0.2623, allocations: 357.6 kB / 443.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2623, allocations: 0 / 443.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001198/0.2635, allocations: 0.6106 MB / 444.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.2635, allocations: 8 kB / 444.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.2635, allocations: 0 / 444.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000732/0.2642, allocations: 345.6 kB / 444.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/0.2645, allocations: 67.91 kB / 444.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/0.2659, allocations: 1.362 MB / 446.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004275/0.2663, allocations: 71.95 kB / 446.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.888e-05/0.2663, allocations: 24.06 kB / 446.2 MB, free: 7.691 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.0002091/0.2666, allocations: 160.6 kB / 446.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-05/0.2666, allocations: 35.75 kB / 446.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001252/0.2668, allocations: 55.61 kB / 446.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2668, allocations: 4 kB / 446.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2668, allocations: 3.938 kB / 446.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.2668, allocations: 48 / 446.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00274/0.2695, allocations: 1.192 MB / 447.7 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.2695, allocations: 4 kB / 447.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002702/0.2698, allocations: 59.91 kB / 447.7 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006013/0.2704, allocations: 301.7 kB / 448 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.363e-05/0.2704, allocations: 19.97 kB / 448 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001253/0.2717, allocations: 1.319 MB / 449.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2717, allocations: 0 / 449.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.2734, allocations: 0.9064 MB / 450.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.2736, allocations: 83.77 kB / 450.3 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.543e-05/0.2737, allocations: 16 kB / 450.4 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000359/0.274, allocations: 39.95 kB / 450.4 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.2742, allocations: 91.7 kB / 450.5 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.977e-05/0.2743, allocations: 32.03 kB / 450.5 MB, free: 3.219 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001823/0.2745, allocations: 172.5 kB / 450.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2745, allocations: 0 / 450.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004485/0.2749, allocations: 96 kB / 450.8 MB, free: 2.957 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.001503/0.2764, allocations: 409.4 kB / 451.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.2775, allocations: 469.2 kB / 451.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2775, allocations: 4 kB / 451.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005886/0.2781, allocations: 279.6 kB / 451.9 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005045/0.2786, allocations: 72.59 kB / 452 MB, free: 1.906 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.2809, allocations: 1.044 MB / 453 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001877/0.2811, allocations: 181.8 kB / 453.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.2812, allocations: 34.97 kB / 453.2 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.2e-05/0.2813, allocations: 39.42 kB / 453.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2813, allocations: 3.938 kB / 453.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of Templates: time 0.01345/0.2948, allocations: 7.806 MB / 461.1 MB, free: 8.801 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.801857488229871]