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.001383/0.001383, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001485/0.001485, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.62/1.62, allocations: 230.6 MB / 258.2 MB, free: 7.738 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.00165/0.00165, allocations: 51.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2542, allocations: 53.36 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004044/0.2583, allocations: 2.43 MB / 434.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.2595, allocations: 0.5771 MB / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.2596, allocations: 4 kB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002846/0.2599, allocations: 67.42 kB / 435.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003311/0.2602, allocations: 143 kB / 435.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003332/0.2605, allocations: 167.8 kB / 435.7 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005673/0.2611, allocations: 0.507 MB / 436.2 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.2613, allocations: 47.86 kB / 436.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002909/0.2615, allocations: 231.3 kB / 436.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000362/0.2619, allocations: 235.2 kB / 436.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.73e-05/0.262, allocations: 44 kB / 436.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.2622, allocations: 91.98 kB / 436.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001753/0.2624, allocations: 119.6 kB / 437 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.2625, allocations: 171.3 kB / 437.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006213/0.2632, allocations: 0.5056 MB / 437.6 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2632, allocations: 4 kB / 437.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2632, allocations: 0 / 437.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.2632, allocations: 0 / 437.6 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.001387/0.2646, allocations: 0.6413 MB / 438.3 MB, free: 0.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.2646, allocations: 8.031 kB / 438.3 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.2647, allocations: 40.7 kB / 438.3 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000497/0.2652, allocations: 241.9 kB / 438.6 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.2652, allocations: 25.03 kB / 438.6 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.586e-05/0.2653, allocations: 32.38 kB / 438.6 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007596/0.2661, allocations: 370.5 kB / 439 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.57e-05/0.2661, allocations: 16.08 kB / 439 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.032e-05/0.2661, allocations: 11.94 kB / 439 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.2662, allocations: 8 kB / 439 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008223/0.267, allocations: 378.4 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002082/0.2691, allocations: 0.9711 MB / 440.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006284/0.2697, allocations: 311.1 kB / 440.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003667/0.2701, allocations: 176.8 kB / 440.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.434e-05/0.2701, allocations: 8 kB / 440.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.2701, allocations: 38.56 kB / 440.9 MB, free: 14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.034e-06/0.2701, allocations: 3.938 kB / 440.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004736/0.2749, allocations: 1.701 MB / 442.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.2749, allocations: 59.83 kB / 442.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/0.2752, allocations: 244.9 kB / 442.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.844e-05/0.2753, allocations: 45.7 kB / 442.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.2754, allocations: 153 kB / 443.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.2756, allocations: 170.6 kB / 443.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001687/0.2757, allocations: 102.3 kB / 443.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.2759, allocations: 342.8 kB / 443.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004082/0.2763, allocations: 193.2 kB / 443.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004773/0.2768, allocations: 269.7 kB / 444.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006573/0.2774, allocations: 349.7 kB / 444.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2774, allocations: 7.938 kB / 444.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001263/0.2787, allocations: 0.6068 MB / 445.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.2787, allocations: 7.938 kB / 445.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.2787, allocations: 4 kB / 445.1 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007582/0.2795, allocations: 345.6 kB / 445.4 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002843/0.2798, allocations: 71.84 kB / 445.5 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.2812, allocations: 1.366 MB / 446.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004533/0.2816, allocations: 71.86 kB / 446.9 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.117e-05/0.2817, allocations: 16 kB / 446.9 MB, free: 7.695 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.00024/0.2819, allocations: 166.5 kB / 447.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.123e-05/0.282, allocations: 35.75 kB / 447.1 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.2821, allocations: 47.62 kB / 447.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.2821, allocations: 4 kB / 447.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.2822, allocations: 0 / 447.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.2822, allocations: 3.984 kB / 447.2 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.285, allocations: 1.192 MB / 448.4 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.285, allocations: 0 / 448.4 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.2853, allocations: 59.97 kB / 448.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006384/0.2859, allocations: 305.6 kB / 448.8 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.194e-05/0.286, allocations: 15.98 kB / 448.8 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/0.2873, allocations: 1.316 MB / 450.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.2873, allocations: 12.09 kB / 450.1 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001836/0.2891, allocations: 0.9063 MB / 451 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002484/0.2894, allocations: 75.78 kB / 451.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.2895, allocations: 19.94 kB / 451.1 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003675/0.2898, allocations: 44.14 kB / 451.1 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/0.2901, allocations: 95.75 kB / 451.2 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.175e-05/0.2901, allocations: 23.98 kB / 451.3 MB, free: 3.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002068/0.2903, allocations: 176.5 kB / 451.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2903, allocations: 4 kB / 451.4 MB, free: 3.047 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000507/0.2909, allocations: 96 kB / 451.5 MB, free: 2.953 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.001533/0.2924, allocations: 406 kB / 451.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.2936, allocations: 473.5 kB / 452.4 MB, free: 2.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/0.2936, allocations: 4 kB / 452.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006754/0.2943, allocations: 271.7 kB / 452.7 MB, free: 1.977 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005603/0.2948, allocations: 58.02 kB / 452.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002651/0.2975, allocations: 1.081 MB / 453.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.2977, allocations: 181.8 kB / 454 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.2978, allocations: 39.42 kB / 454 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2978, allocations: 0 / 454 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of Templates: time 0.01207/0.3099, allocations: 7.227 MB / 461.2 MB, free: 9.332 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/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: 8.529797554016113]