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.001414/0.001414, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001471/0.001471, allocations: 195 kB / 23.71 MB, free: 4.406 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.509/1.509, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.002621/0.002621, allocations: 47.92 kB / 370.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2834, allocations: 52.18 MB / 423 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003713/0.2871, allocations: 2.305 MB / 425.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009947/0.2881, allocations: 0.4914 MB / 425.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.2882, allocations: 7.938 kB / 425.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.2884, allocations: 51.5 kB / 425.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001561/0.2886, allocations: 79.34 kB / 426 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000466/0.289, allocations: 203.6 kB / 426.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005021/0.2895, allocations: 491 kB / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.2897, allocations: 40.72 kB / 426.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002496/0.2899, allocations: 223.4 kB / 426.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002972/0.2902, allocations: 223.2 kB / 427.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.028e-05/0.2903, allocations: 44 kB / 427.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.2904, allocations: 83.95 kB / 427.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.2906, allocations: 99.66 kB / 427.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.2907, allocations: 155.3 kB / 427.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005328/0.2913, allocations: 472.7 kB / 428 MB, free: 9.535 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.2913, allocations: 0 / 428 MB, free: 9.535 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.2913, allocations: 0 / 428 MB, free: 9.535 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.2913, allocations: 0 / 428 MB, free: 9.535 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.001144/0.2924, allocations: 0.591 MB / 428.6 MB, free: 8.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.2925, allocations: 12.03 kB / 428.6 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.993e-05/0.2925, allocations: 36.7 kB / 428.6 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003843/0.2929, allocations: 230.9 kB / 428.8 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.19e-05/0.293, allocations: 21.03 kB / 428.9 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.942e-05/0.293, allocations: 32.38 kB / 428.9 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006801/0.2937, allocations: 378.4 kB / 429.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.2937, allocations: 4.188 kB / 429.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.2938, allocations: 11.94 kB / 429.3 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.2938, allocations: 8 kB / 429.3 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007708/0.2945, allocations: 406.3 kB / 429.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.2964, allocations: 0.9519 MB / 430.6 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005227/0.2969, allocations: 276 kB / 430.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000356/0.2972, allocations: 189.7 kB / 431.1 MB, free: 6.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.41e-05/0.2973, allocations: 8 kB / 431.1 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.2973, allocations: 42.5 kB / 431.1 MB, free: 6.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.573e-06/0.2973, allocations: 0 / 431.1 MB, free: 6.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004352/0.3017, allocations: 1.727 MB / 432.9 MB, free: 4.445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/0.3017, allocations: 59.39 kB / 432.9 MB, free: 4.375 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.3019, allocations: 232.9 kB / 433.1 MB, free: 4.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.171e-05/0.302, allocations: 37.7 kB / 433.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.3021, allocations: 153 kB / 433.3 MB, free: 3.941 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.3022, allocations: 158.7 kB / 433.5 MB, free: 3.785 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.3024, allocations: 102.1 kB / 433.6 MB, free: 3.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3026, allocations: 338.8 kB / 433.9 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004228/0.303, allocations: 208.9 kB / 434.1 MB, free: 3.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004663/0.3034, allocations: 284.2 kB / 434.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006521/0.3041, allocations: 377.6 kB / 434.8 MB, free: 2.441 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3041, allocations: 0 / 434.8 MB, free: 2.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001469/0.3056, allocations: 0.6964 MB / 435.5 MB, free: 1.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.3056, allocations: 8 kB / 435.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3056, allocations: 0 / 435.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008664/0.3065, allocations: 497.5 kB / 436 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.3067, allocations: 71.84 kB / 436 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.3082, allocations: 1.398 MB / 437.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004073/0.3086, allocations: 67.86 kB / 437.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.282e-05/0.3086, allocations: 19.98 kB / 437.5 MB, free: 15.62 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.0002033/0.3088, allocations: 155.1 kB / 437.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.99e-05/0.3089, allocations: 39.75 kB / 437.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001168/0.309, allocations: 47.3 kB / 437.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.309, allocations: 4 kB / 437.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.309, allocations: 0 / 437.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.309, allocations: 4 kB / 437.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.3117, allocations: 1.206 MB / 439 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3117, allocations: 4.156 kB / 439 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002653/0.312, allocations: 59.91 kB / 439 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007382/0.3127, allocations: 473.4 kB / 439.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.84e-05/0.3128, allocations: 11.98 kB / 439.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/0.314, allocations: 1.347 MB / 440.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.314, allocations: 4.031 kB / 440.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.3159, allocations: 0.9485 MB / 441.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001886/0.316, allocations: 79.86 kB / 441.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.457e-05/0.3161, allocations: 16 kB / 441.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002995/0.3164, allocations: 35.95 kB / 441.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/0.3166, allocations: 91.77 kB / 442 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.374e-05/0.3167, allocations: 27.97 kB / 442 MB, free: 10.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001554/0.3168, allocations: 160.5 kB / 442.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3168, allocations: 0 / 442.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004538/0.3173, allocations: 104 kB / 442.3 MB, free: 10.67 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.0002146/0.3175, allocations: 135.1 kB / 442.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.3185, allocations: 494.4 kB / 442.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3185, allocations: 0 / 442.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005992/0.3191, allocations: 284 kB / 443.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004732/0.3196, allocations: 43.75 kB / 443.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/0.3218, allocations: 0.9894 MB / 444.2 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001724/0.322, allocations: 173.8 kB / 444.4 MB, free: 8.504 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001325/0.3221, allocations: 30.97 kB / 444.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.726e-05/0.3222, allocations: 35.42 kB / 444.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3222, allocations: 0 / 444.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of Templates: time 0.01311/0.3353, allocations: 7.594 MB / 452.1 MB, free: 0.9258 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/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: 4.784507283940911]