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.001107/0.001107, allocations: 110.9 kB / 17.74 MB, free: 5.359 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.001295/0.001296, allocations: 192.5 kB / 18.67 MB, free: 4.434 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.442/1.442, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.00113, allocations: 47.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3014, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003959/0.3054, allocations: 2.445 MB / 403.8 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.3067, allocations: 495.3 kB / 404.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001668/0.3069, allocations: 7.938 kB / 404.3 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002222/0.3071, allocations: 47.58 kB / 404.4 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.3073, allocations: 75.28 kB / 404.4 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004905/0.3078, allocations: 203.6 kB / 404.6 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004504/0.3083, allocations: 495.1 kB / 405.1 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.3085, allocations: 64.72 kB / 405.2 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002281/0.3087, allocations: 211.4 kB / 405.4 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002873/0.309, allocations: 239.2 kB / 405.6 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.64e-05/0.3091, allocations: 36 kB / 405.7 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001777/0.3093, allocations: 87.95 kB / 405.7 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.3094, allocations: 99.7 kB / 405.8 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001676/0.3096, allocations: 175.2 kB / 406 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004881/0.3101, allocations: 479.5 kB / 406.5 MB, free: 3.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.3101, allocations: 0 / 406.5 MB, free: 3.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3101, allocations: 4 kB / 406.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.3101, allocations: 3.938 kB / 406.5 MB, free: 3.746 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.00125/0.3113, allocations: 0.6652 MB / 407.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3114, allocations: 8.031 kB / 407.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.06e-05/0.3115, allocations: 40.47 kB / 407.2 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.3119, allocations: 280.6 kB / 407.5 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.964e-05/0.3119, allocations: 20.94 kB / 407.5 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.116e-05/0.312, allocations: 32.38 kB / 407.5 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006782/0.3127, allocations: 377.2 kB / 407.9 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.3127, allocations: 4.094 kB / 407.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.408e-05/0.3128, allocations: 19.94 kB / 407.9 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.3128, allocations: 8 kB / 407.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007189/0.3135, allocations: 405.9 kB / 408.3 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001821/0.3153, allocations: 1.104 MB / 409.4 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004894/0.3158, allocations: 291.6 kB / 409.7 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000339/0.3162, allocations: 197.8 kB / 409.9 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.3162, allocations: 4 kB / 409.9 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.3163, allocations: 42.5 kB / 410 MB, free: 96 kB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.894e-06/0.3163, allocations: 0 / 410 MB, free: 96 kB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004453/0.3207, allocations: 2.029 MB / 412 MB, free: 13.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.3208, allocations: 63.41 kB / 412 MB, free: 13.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002453/0.3211, allocations: 232.9 kB / 412.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.034e-05/0.3211, allocations: 41.7 kB / 412.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.3212, allocations: 160.7 kB / 412.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.3214, allocations: 150 kB / 412.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.3216, allocations: 98.08 kB / 412.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3217, allocations: 346.7 kB / 413.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003929/0.3221, allocations: 209 kB / 413.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004187/0.3225, allocations: 284.8 kB / 413.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006155/0.3232, allocations: 377.7 kB / 413.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3232, allocations: 0 / 413.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001405/0.3246, allocations: 0.6885 MB / 414.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.3246, allocations: 8.156 kB / 414.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.3246, allocations: 4.062 kB / 414.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008179/0.3255, allocations: 497.4 kB / 415.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.3258, allocations: 71.91 kB / 415.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.327, allocations: 1.397 MB / 416.6 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004418/0.3275, allocations: 67.91 kB / 416.6 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/0.3275, allocations: 16 kB / 416.6 MB, free: 9.102 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.000226/0.3278, allocations: 171.9 kB / 416.8 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.294e-05/0.3279, allocations: 43.5 kB / 416.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.328, allocations: 47.3 kB / 416.9 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.328, allocations: 4 kB / 416.9 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.328, allocations: 0 / 416.9 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.328, allocations: 0 / 416.9 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002743/0.3308, allocations: 1.341 MB / 418.2 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.3308, allocations: 0 / 418.2 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000291/0.3311, allocations: 63.91 kB / 418.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006893/0.3318, allocations: 465.5 kB / 418.8 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.582e-05/0.3318, allocations: 15.98 kB / 418.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.333, allocations: 1.343 MB / 420.1 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.333, allocations: 3.938 kB / 420.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.3347, allocations: 0.9441 MB / 421.1 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002018/0.3349, allocations: 152.8 kB / 421.2 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.187e-05/0.335, allocations: 19.94 kB / 421.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003001/0.3353, allocations: 35.95 kB / 421.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.3355, allocations: 79.86 kB / 421.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.151e-05/0.3356, allocations: 32.09 kB / 421.4 MB, free: 4.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001539/0.3357, allocations: 172.5 kB / 421.5 MB, free: 3.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3357, allocations: 0 / 421.5 MB, free: 3.992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004812/0.3362, allocations: 108 kB / 421.6 MB, free: 3.887 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.0002536/0.3365, allocations: 131.5 kB / 421.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.3376, allocations: 0.5225 MB / 422.3 MB, free: 3.227 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3376, allocations: 0 / 422.3 MB, free: 3.227 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000556/0.3381, allocations: 291.7 kB / 422.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004974/0.3386, allocations: 52.34 kB / 422.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.3409, allocations: 1 MB / 423.6 MB, free: 1.844 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.3413, allocations: 0.7761 MB / 424.4 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.443e-05/0.3414, allocations: 35.44 kB / 424.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3414, allocations: 0 / 424.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of Templates: time 0.009861/0.3512, allocations: 6.698 MB / 431.1 MB, free: 10.3 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/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) Reference file matches