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.001302/0.001302, allocations: 106.9 kB / 19.8 MB, free: 2.5 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.001476/0.001476, allocations: 219.4 kB / 23 MB, free: 5.574 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.474/1.474, allocations: 230.2 MB / 256.2 MB, free: 8.539 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.001915/0.001915, allocations: 63.89 kB / 376.5 MB, free: 3.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2625, allocations: 53.33 MB / 429.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003946/0.2665, allocations: 2.589 MB / 432.4 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.2675, allocations: 0.5889 MB / 433 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.962e-05/0.2676, allocations: 3.938 kB / 433 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002619/0.2679, allocations: 71.38 kB / 433 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.2682, allocations: 131.1 kB / 433.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003019/0.2685, allocations: 171.7 kB / 433.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005505/0.269, allocations: 0.5069 MB / 433.8 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.2692, allocations: 51.55 kB / 433.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002647/0.2694, allocations: 227.4 kB / 434.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003371/0.2698, allocations: 259 kB / 434.4 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.491e-05/0.2698, allocations: 43.94 kB / 434.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.27, allocations: 95.97 kB / 434.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.2701, allocations: 111.6 kB / 434.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002004/0.2703, allocations: 199.1 kB / 434.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005841/0.2709, allocations: 0.4994 MB / 435.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.2e-05/0.2709, allocations: 4 kB / 435.3 MB, free: 1.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2709, allocations: 0 / 435.3 MB, free: 1.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.271, allocations: 3.938 kB / 435.3 MB, free: 1.973 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.001326/0.2723, allocations: 0.7127 MB / 436 MB, free: 1.207 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.2723, allocations: 16.02 kB / 436 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.582e-05/0.2724, allocations: 36.7 kB / 436.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004391/0.2729, allocations: 295.7 kB / 436.4 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.658e-05/0.2729, allocations: 29.02 kB / 436.4 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-05/0.273, allocations: 36.36 kB / 436.4 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007207/0.2737, allocations: 374.5 kB / 436.8 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.2737, allocations: 4.141 kB / 436.8 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.562e-05/0.2738, allocations: 15.94 kB / 436.8 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.2738, allocations: 8 kB / 436.8 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008171/0.2746, allocations: 386.5 kB / 437.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002041/0.2766, allocations: 1.135 MB / 438.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006205/0.2772, allocations: 318.6 kB / 438.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003613/0.2776, allocations: 176.8 kB / 438.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.343e-05/0.2776, allocations: 4 kB / 438.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.2777, allocations: 38.56 kB / 438.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.533e-06/0.2777, allocations: 0 / 438.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004833/0.2825, allocations: 2.004 MB / 440.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.2826, allocations: 55.84 kB / 440.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003107/0.2829, allocations: 257 kB / 441.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.419e-05/0.2829, allocations: 45.69 kB / 441.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.2831, allocations: 157 kB / 441.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/0.2832, allocations: 174.6 kB / 441.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.2834, allocations: 94.19 kB / 441.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.2836, allocations: 338.8 kB / 442 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004012/0.284, allocations: 197 kB / 442.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004635/0.2844, allocations: 264.8 kB / 442.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006585/0.2851, allocations: 361.6 kB / 442.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2851, allocations: 3.938 kB / 442.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001233/0.2863, allocations: 0.6068 MB / 443.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.2863, allocations: 4 kB / 443.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.2863, allocations: 4 kB / 443.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007583/0.2871, allocations: 345.6 kB / 443.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.2874, allocations: 71.97 kB / 443.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001427/0.2888, allocations: 1.366 MB / 445.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004138/0.2892, allocations: 67.91 kB / 445.2 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.2893, allocations: 20.12 kB / 445.2 MB, free: 7.547 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.0002097/0.2895, allocations: 165.7 kB / 445.4 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.843e-05/0.2896, allocations: 35.75 kB / 445.4 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.2897, allocations: 51.62 kB / 445.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.2897, allocations: 7.984 kB / 445.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.2897, allocations: 0 / 445.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.2897, allocations: 0 / 445.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002864/0.2926, allocations: 1.331 MB / 446.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2926, allocations: 0 / 446.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002809/0.2929, allocations: 64.06 kB / 446.9 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006309/0.2935, allocations: 301.5 kB / 447.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.798e-05/0.2935, allocations: 23.97 kB / 447.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/0.2949, allocations: 1.323 MB / 448.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2949, allocations: 192 / 448.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001817/0.2967, allocations: 0.9103 MB / 449.4 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001924/0.2969, allocations: 160.8 kB / 449.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.056e-05/0.297, allocations: 16 kB / 449.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003061/0.2973, allocations: 43.95 kB / 449.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002065/0.2975, allocations: 95.73 kB / 449.8 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.475e-05/0.2975, allocations: 19.97 kB / 449.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002019/0.2977, allocations: 184.5 kB / 450 MB, free: 2.637 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2977, allocations: 0 / 450 MB, free: 2.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004295/0.2981, allocations: 92 kB / 450 MB, free: 2.547 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.001322/0.2995, allocations: 384.3 kB / 450.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.3006, allocations: 477.2 kB / 450.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3006, allocations: 7.938 kB / 450.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006094/0.3012, allocations: 267.8 kB / 451.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005221/0.3017, allocations: 64.33 kB / 451.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00246/0.3042, allocations: 1.061 MB / 452.3 MB, free: 388 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004463/0.3046, allocations: 0.7878 MB / 453.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.3047, allocations: 30.97 kB / 453.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.657e-05/0.3048, allocations: 35.42 kB / 453.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of SimCode: time 5.3e-07/0.3048, allocations: 0 / 453.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of Templates: time 0.0155/0.3203, allocations: 9.005 MB / 462.1 MB, free: 6.539 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.709537203423679]