Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001878/0.001878, allocations: 108.6 kB / 21.18 MB, free: 0.7734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002083/0.002083, allocations: 189.4 kB / 24.47 MB, free: 4.18 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 43.92 kB / 371.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2859, allocations: 52.19 MB / 423.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003928/0.2898, allocations: 2.476 MB / 426.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.2909, allocations: 0.4953 MB / 426.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.291, allocations: 7.938 kB / 426.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.2912, allocations: 47.56 kB / 426.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001702/0.2914, allocations: 87.27 kB / 427 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005085/0.2919, allocations: 195.7 kB / 427.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005387/0.2924, allocations: 495 kB / 427.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.2926, allocations: 48.86 kB / 427.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002789/0.2929, allocations: 219.4 kB / 427.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003567/0.2932, allocations: 239.2 kB / 428.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.227e-05/0.2933, allocations: 36 kB / 428.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.2935, allocations: 91.95 kB / 428.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.2936, allocations: 99.72 kB / 428.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001914/0.2938, allocations: 187.1 kB / 428.5 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005588/0.2944, allocations: 467.5 kB / 429 MB, free: 9.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.2944, allocations: 0 / 429 MB, free: 9.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2944, allocations: 0 / 429 MB, free: 9.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.2944, allocations: 0 / 429 MB, free: 9.5 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.00131/0.2957, allocations: 0.5949 MB / 429.6 MB, free: 8.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.2957, allocations: 12.03 kB / 429.6 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.2958, allocations: 40.69 kB / 429.6 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004291/0.2963, allocations: 222.9 kB / 429.9 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.2963, allocations: 29.03 kB / 429.9 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.997e-05/0.2964, allocations: 28.38 kB / 429.9 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007418/0.2971, allocations: 378.4 kB / 430.3 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.2971, allocations: 4.188 kB / 430.3 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.989e-05/0.2972, allocations: 11.94 kB / 430.3 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.1e-05/0.2972, allocations: 11.98 kB / 430.3 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007944/0.298, allocations: 398.4 kB / 430.7 MB, free: 7.734 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002028/0.3, allocations: 1.072 MB / 431.8 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005526/0.3006, allocations: 279.6 kB / 432.1 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003659/0.3009, allocations: 205.6 kB / 432.3 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.239e-05/0.301, allocations: 4 kB / 432.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/0.301, allocations: 38.5 kB / 432.3 MB, free: 6.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.483e-06/0.301, allocations: 0 / 432.3 MB, free: 6.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004526/0.3055, allocations: 1.719 MB / 434 MB, free: 4.273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.3056, allocations: 63.34 kB / 434.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002876/0.3059, allocations: 236.9 kB / 434.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.747e-05/0.306, allocations: 41.7 kB / 434.3 MB, free: 3.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.3061, allocations: 149 kB / 434.5 MB, free: 3.762 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.3062, allocations: 166.7 kB / 434.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.3064, allocations: 94.12 kB / 434.7 MB, free: 3.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.3066, allocations: 342.8 kB / 435.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004219/0.307, allocations: 212.9 kB / 435.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005076/0.3075, allocations: 284.2 kB / 435.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006871/0.3082, allocations: 381.7 kB / 435.9 MB, free: 2.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3082, allocations: 0 / 435.9 MB, free: 2.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001476/0.3097, allocations: 0.6886 MB / 436.6 MB, free: 1.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3097, allocations: 4 kB / 436.6 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.3097, allocations: 4 kB / 436.6 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000894/0.3106, allocations: 493.5 kB / 437.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002886/0.3109, allocations: 71.91 kB / 437.2 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/0.3123, allocations: 1.39 MB / 438.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003929/0.3127, allocations: 67.91 kB / 438.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/0.3128, allocations: 20.12 kB / 438.7 MB, free: 15.45 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 (49): * Single equations (assignments): 47 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002266/0.313, allocations: 166.9 kB / 438.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.939e-05/0.3131, allocations: 35.75 kB / 438.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.3132, allocations: 47.3 kB / 438.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3132, allocations: 4 kB / 438.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.3132, allocations: 4 kB / 438.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.3132, allocations: 0 / 438.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002746/0.316, allocations: 1.303 MB / 440.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.316, allocations: 3.984 kB / 440.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002783/0.3163, allocations: 64.06 kB / 440.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007317/0.317, allocations: 465.3 kB / 440.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.631e-05/0.317, allocations: 23.91 kB / 440.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001262/0.3183, allocations: 1.339 MB / 442.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3183, allocations: 4.125 kB / 442.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00178/0.3201, allocations: 0.9406 MB / 443.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.3203, allocations: 75.8 kB / 443.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.252e-05/0.3204, allocations: 23.92 kB / 443.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002824/0.3206, allocations: 39.91 kB / 443.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.3208, allocations: 87.77 kB / 443.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.477e-05/0.3209, allocations: 23.97 kB / 443.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001917/0.3211, allocations: 172.5 kB / 443.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3211, allocations: 0 / 443.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004667/0.3215, allocations: 103.9 kB / 443.6 MB, free: 10.38 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000263/0.3218, allocations: 142.2 kB / 443.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.3229, allocations: 494.2 kB / 444.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3229, allocations: 0 / 444.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005615/0.3234, allocations: 272.6 kB / 444.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004997/0.3239, allocations: 63.14 kB / 444.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.3263, allocations: 1.013 MB / 445.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.3268, allocations: 0.784 MB / 446.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.613e-05/0.3269, allocations: 35.42 kB / 446.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3269, allocations: 0 / 446.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of Templates: time 0.01015/0.337, allocations: 6.662 MB / 453 MB, free: 0.8438 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.829502795822918]