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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=4000,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=4000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 112.2 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 196 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001063/0.001063, allocations: 47.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2833, allocations: 49.42 MB / 400.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003346/0.2867, allocations: 2.444 MB / 403.1 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008973/0.2876, allocations: 0.4914 MB / 403.6 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.2877, allocations: 7.938 kB / 403.6 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002/0.2879, allocations: 51.56 kB / 403.7 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001467/0.2881, allocations: 83.27 kB / 403.8 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004204/0.2885, allocations: 195.6 kB / 404 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004323/0.289, allocations: 495.1 kB / 404.4 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.2891, allocations: 68.66 kB / 404.5 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002113/0.2894, allocations: 211.4 kB / 404.7 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002868/0.2896, allocations: 239.2 kB / 405 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.28e-05/0.2897, allocations: 36 kB / 405 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.2899, allocations: 87.94 kB / 405.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.29, allocations: 95.72 kB / 405.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001636/0.2902, allocations: 183.1 kB / 405.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004842/0.2907, allocations: 478.2 kB / 405.8 MB, free: 3.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2907, allocations: 4 kB / 405.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2907, allocations: 0 / 405.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2907, allocations: 0 / 405.8 MB, free: 3.883 MB / 318.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.001185/0.2919, allocations: 0.6662 MB / 406.5 MB, free: 3.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.292, allocations: 8.031 kB / 406.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.543e-05/0.292, allocations: 36.7 kB / 406.5 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.2924, allocations: 292.7 kB / 406.8 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.06e-05/0.2925, allocations: 20.94 kB / 406.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.887e-05/0.2925, allocations: 24.38 kB / 406.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006856/0.2932, allocations: 377.2 kB / 407.2 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.2932, allocations: 8.188 kB / 407.2 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.012e-05/0.2933, allocations: 15.94 kB / 407.3 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.2933, allocations: 4 kB / 407.3 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007463/0.2941, allocations: 402 kB / 407.6 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.2958, allocations: 1.116 MB / 408.8 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005347/0.2964, allocations: 295.6 kB / 409.1 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003466/0.2967, allocations: 205.8 kB / 409.3 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.286e-05/0.2968, allocations: 7.984 kB / 409.3 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.2968, allocations: 38.5 kB / 409.3 MB, free: 216 kB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.613e-06/0.2968, allocations: 0 / 409.3 MB, free: 216 kB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004439/0.3013, allocations: 2.026 MB / 411.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.3013, allocations: 59.34 kB / 411.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.3016, allocations: 241 kB / 411.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.3016, allocations: 37.7 kB / 411.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.3018, allocations: 157 kB / 411.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.3019, allocations: 162.7 kB / 412 MB, free: 13.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.3021, allocations: 98.19 kB / 412.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3022, allocations: 342.8 kB / 412.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003852/0.3026, allocations: 209 kB / 412.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004341/0.3031, allocations: 288.8 kB / 412.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006389/0.3037, allocations: 381.7 kB / 413.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3037, allocations: 0 / 413.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001375/0.3051, allocations: 0.6966 MB / 414 MB, free: 11.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.3051, allocations: 15.92 kB / 414 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.3051, allocations: 0 / 414 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007921/0.3059, allocations: 489.4 kB / 414.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.3062, allocations: 75.89 kB / 414.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001276/0.3075, allocations: 1.39 MB / 415.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004143/0.3079, allocations: 63.92 kB / 416 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.225e-05/0.308, allocations: 19.98 kB / 416 MB, free: 9.211 MB / 334.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.0001756/0.3082, allocations: 166.3 kB / 416.2 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.517e-05/0.3083, allocations: 35.75 kB / 416.2 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.3084, allocations: 51.3 kB / 416.2 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3084, allocations: 4 kB / 416.2 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.3084, allocations: 0 / 416.2 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.3084, allocations: 7.969 kB / 416.3 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002598/0.311, allocations: 1.345 MB / 417.6 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.311, allocations: 0 / 417.6 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.3113, allocations: 63.91 kB / 417.7 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007438/0.3121, allocations: 461.5 kB / 418.1 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.183e-05/0.3121, allocations: 19.97 kB / 418.1 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.3133, allocations: 1.343 MB / 419.5 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.3134, allocations: 3.938 kB / 419.5 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.3151, allocations: 0.9405 MB / 420.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001699/0.3153, allocations: 160.8 kB / 420.6 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.281e-05/0.3154, allocations: 15.94 kB / 420.6 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002948/0.3157, allocations: 43.89 kB / 420.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/0.3158, allocations: 79.86 kB / 420.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.815e-05/0.3159, allocations: 19.98 kB / 420.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001587/0.3161, allocations: 172.5 kB / 420.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3161, allocations: 4 kB / 420.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004177/0.3165, allocations: 107.9 kB / 421 MB, free: 3.992 MB / 334.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.0002066/0.3167, allocations: 130.6 kB / 421.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.3177, allocations: 0.5148 MB / 421.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3178, allocations: 0 / 421.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005883/0.3183, allocations: 295.7 kB / 421.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004777/0.3188, allocations: 63.55 kB / 422 MB, free: 2.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.3209, allocations: 0.9809 MB / 423 MB, free: 1.973 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.3213, allocations: 0.7761 MB / 423.8 MB, free: 1.172 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.3214, allocations: 38.95 kB / 423.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.647e-05/0.3215, allocations: 31.42 kB / 423.8 MB, free: 1.102 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3215, allocations: 0 / 423.8 MB, free: 1.102 MB / 334.1 MB Notification: Performance of Templates: time 0.01311/0.3346, allocations: 8.788 MB / 432.6 MB, free: 8.344 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile (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) 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) Reference file matches