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.001346/0.001346, allocations: 111.6 kB / 21.19 MB, free: 0.6641 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.001449/0.001449, allocations: 219.4 kB / 24.48 MB, free: 3.965 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.508/1.508, allocations: 230.5 MB / 258.1 MB, free: 7.789 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.002036/0.002036, allocations: 63.91 kB / 379 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2626, allocations: 53.41 MB / 432.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004164/0.2667, allocations: 2.426 MB / 434.8 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.268, allocations: 0.5694 MB / 435.4 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.2681, allocations: 4 kB / 435.4 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.2684, allocations: 67.42 kB / 435.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003339/0.2687, allocations: 139 kB / 435.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003321/0.2691, allocations: 167.8 kB / 435.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005471/0.2696, allocations: 0.5108 MB / 436.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.2698, allocations: 40.92 kB / 436.3 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002946/0.2701, allocations: 239.3 kB / 436.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003689/0.2704, allocations: 235.1 kB / 436.8 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.273e-05/0.2705, allocations: 40 kB / 436.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/0.2707, allocations: 103.9 kB / 436.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.2709, allocations: 111.6 kB / 437 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001948/0.2711, allocations: 167.3 kB / 437.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007581/0.2718, allocations: 0.5115 MB / 437.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2718, allocations: 0 / 437.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2718, allocations: 0 / 437.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.2719, allocations: 0 / 437.7 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.001417/0.2733, allocations: 0.6375 MB / 438.3 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.2733, allocations: 8.031 kB / 438.3 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.2734, allocations: 44.7 kB / 438.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004857/0.2739, allocations: 237.9 kB / 438.6 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.373e-05/0.2739, allocations: 21.03 kB / 438.6 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.039e-05/0.274, allocations: 36.36 kB / 438.7 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007644/0.2748, allocations: 378.4 kB / 439 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.2748, allocations: 4.141 kB / 439 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.09e-05/0.2749, allocations: 15.94 kB / 439 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.2749, allocations: 4 kB / 439.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008612/0.2757, allocations: 386.4 kB / 439.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.2778, allocations: 0.9633 MB / 440.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006368/0.2785, allocations: 322.1 kB / 440.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003837/0.2789, allocations: 176.8 kB / 440.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.429e-05/0.2789, allocations: 11.94 kB / 440.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.2789, allocations: 34.56 kB / 440.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.084e-06/0.2789, allocations: 0 / 440.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004873/0.2838, allocations: 1.703 MB / 442.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.2839, allocations: 55.84 kB / 442.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.2842, allocations: 240.9 kB / 442.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.149e-05/0.2842, allocations: 49.69 kB / 443 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.2844, allocations: 157 kB / 443.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.2845, allocations: 186.5 kB / 443.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.2847, allocations: 98.28 kB / 443.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.2849, allocations: 334.8 kB / 443.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004137/0.2853, allocations: 193.2 kB / 443.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004928/0.2858, allocations: 265.8 kB / 444.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006733/0.2865, allocations: 361.6 kB / 444.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2865, allocations: 0 / 444.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001294/0.2878, allocations: 0.6067 MB / 445.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.2878, allocations: 4 kB / 445.1 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.2878, allocations: 4 kB / 445.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007552/0.2886, allocations: 341.6 kB / 445.5 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.2888, allocations: 75.84 kB / 445.6 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.2904, allocations: 1.358 MB / 446.9 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004508/0.2908, allocations: 71.91 kB / 447 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/0.2909, allocations: 19.98 kB / 447 MB, free: 7.551 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.0002326/0.2911, allocations: 169.9 kB / 447.2 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.868e-05/0.2912, allocations: 35.75 kB / 447.2 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001266/0.2913, allocations: 47.61 kB / 447.2 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2913, allocations: 4 kB / 447.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.2913, allocations: 0 / 447.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2913, allocations: 0 / 447.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.2942, allocations: 1.201 MB / 448.5 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.2942, allocations: 0 / 448.5 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002819/0.2945, allocations: 63.91 kB / 448.5 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006523/0.2952, allocations: 297.7 kB / 448.8 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.06e-05/0.2952, allocations: 23.97 kB / 448.8 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001359/0.2966, allocations: 1.312 MB / 450.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.2966, allocations: 0 / 450.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.2984, allocations: 0.9099 MB / 451 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002076/0.2987, allocations: 79.95 kB / 451.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.755e-05/0.2987, allocations: 24.06 kB / 451.2 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003193/0.2991, allocations: 35.89 kB / 451.2 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.2993, allocations: 91.77 kB / 451.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-05/0.2993, allocations: 23.97 kB / 451.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.2995, allocations: 176.5 kB / 451.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2995, allocations: 0 / 451.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004616/0.3, allocations: 96 kB / 451.6 MB, free: 2.816 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.001481/0.3014, allocations: 405.7 kB / 452 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.3026, allocations: 481.4 kB / 452.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3026, allocations: 0 / 452.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006247/0.3032, allocations: 275.6 kB / 452.7 MB, free: 1.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005383/0.3038, allocations: 66.56 kB / 452.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.3064, allocations: 1.069 MB / 453.8 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.3067, allocations: 185.7 kB / 454 MB, free: 432 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.3068, allocations: 39.42 kB / 454.1 MB, free: 392 kB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3068, allocations: 0 / 454.1 MB, free: 392 kB / 350.1 MB Notification: Performance of Templates: time 0.01122/0.318, allocations: 7.205 MB / 461.3 MB, free: 9.172 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.440224812366068]