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.001243/0.001248, allocations: 114.9 kB / 17.75 MB, free: 5.312 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.001574/0.001574, allocations: 188.4 kB / 18.67 MB, free: 4.395 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.437/1.437, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 47.91 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3101, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003569/0.3137, allocations: 2.448 MB / 403.8 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009841/0.3147, allocations: 499.2 kB / 404.3 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.3149, allocations: 4 kB / 404.3 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002267/0.3151, allocations: 55.52 kB / 404.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.3153, allocations: 75.33 kB / 404.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004525/0.3157, allocations: 195.6 kB / 404.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004425/0.3162, allocations: 495.1 kB / 405.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.3164, allocations: 68.7 kB / 405.2 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.3166, allocations: 211.4 kB / 405.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002906/0.3169, allocations: 239.2 kB / 405.6 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.515e-05/0.317, allocations: 36 kB / 405.7 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001667/0.3171, allocations: 95.95 kB / 405.8 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.3173, allocations: 95.7 kB / 405.9 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.3174, allocations: 183.1 kB / 406 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004544/0.3179, allocations: 471.6 kB / 406.5 MB, free: 3.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3179, allocations: 0 / 406.5 MB, free: 3.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3179, allocations: 0 / 406.5 MB, free: 3.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.3179, allocations: 0 / 406.5 MB, free: 3.734 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.3192, allocations: 0.6588 MB / 407.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3192, allocations: 8.031 kB / 407.2 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.19e-05/0.3193, allocations: 40.47 kB / 407.2 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000419/0.3198, allocations: 288.6 kB / 407.5 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.702e-05/0.3198, allocations: 20.94 kB / 407.5 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.352e-05/0.3199, allocations: 32.38 kB / 407.5 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006839/0.3206, allocations: 377.2 kB / 407.9 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.3206, allocations: 4.094 kB / 407.9 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.516e-05/0.3206, allocations: 15.94 kB / 407.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.3207, allocations: 11.98 kB / 407.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007115/0.3214, allocations: 413.8 kB / 408.3 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001829/0.3232, allocations: 1.092 MB / 409.4 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004941/0.3237, allocations: 299.6 kB / 409.7 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003301/0.3241, allocations: 197.8 kB / 409.9 MB, free: 132 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.083e-05/0.3241, allocations: 4 kB / 409.9 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.3242, allocations: 38.5 kB / 410 MB, free: 80 kB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.693e-06/0.3242, allocations: 0 / 410 MB, free: 80 kB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.00433/0.3285, allocations: 2.033 MB / 412 MB, free: 13.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.113e-05/0.3286, allocations: 63.41 kB / 412.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.3288, allocations: 229 kB / 412.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.938e-05/0.3288, allocations: 49.69 kB / 412.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.479e-05/0.3289, allocations: 148.7 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.3291, allocations: 150 kB / 412.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.3292, allocations: 98.08 kB / 412.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3294, allocations: 342.8 kB / 413 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003654/0.3297, allocations: 217 kB / 413.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000413/0.3301, allocations: 284.8 kB / 413.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006173/0.3308, allocations: 381.7 kB / 413.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3308, allocations: 4 kB / 413.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001348/0.3321, allocations: 0.6885 MB / 414.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.3322, allocations: 4 kB / 414.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3322, allocations: 4 kB / 414.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007917/0.333, allocations: 497.5 kB / 415.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000281/0.3333, allocations: 71.91 kB / 415.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/0.3345, allocations: 1.393 MB / 416.6 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004204/0.3349, allocations: 72.03 kB / 416.6 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.884e-05/0.3349, allocations: 19.94 kB / 416.7 MB, free: 9.078 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.0002094/0.3352, allocations: 163.9 kB / 416.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.958e-05/0.3352, allocations: 39.55 kB / 416.9 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.3354, allocations: 43.31 kB / 416.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3354, allocations: 4 kB / 416.9 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3354, allocations: 0 / 416.9 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3354, allocations: 7.984 kB / 416.9 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002575/0.338, allocations: 1.338 MB / 418.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.338, allocations: 160 / 418.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002735/0.3383, allocations: 67.91 kB / 418.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006756/0.339, allocations: 465.2 kB / 418.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.088e-05/0.339, allocations: 23.97 kB / 418.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001098/0.3401, allocations: 1.339 MB / 420.1 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3401, allocations: 7.969 kB / 420.1 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.3418, allocations: 0.9401 MB / 421.1 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/0.342, allocations: 152.8 kB / 421.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.707e-05/0.3421, allocations: 19.94 kB / 421.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002978/0.3424, allocations: 39.95 kB / 421.3 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.3426, allocations: 83.86 kB / 421.4 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.206e-05/0.3426, allocations: 19.98 kB / 421.4 MB, free: 4.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001802/0.3428, allocations: 172.5 kB / 421.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3428, allocations: 0 / 421.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005021/0.3433, allocations: 108 kB / 421.7 MB, free: 3.871 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.0002571/0.3436, allocations: 135.5 kB / 421.8 MB, free: 3.73 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.3447, allocations: 0.5183 MB / 422.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3447, allocations: 0 / 422.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005681/0.3453, allocations: 296.3 kB / 422.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005235/0.3458, allocations: 48.55 kB / 422.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.3481, allocations: 0.9976 MB / 423.6 MB, free: 1.828 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.3484, allocations: 0.7761 MB / 424.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.401e-05/0.3485, allocations: 35.42 kB / 424.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3485, allocations: 0 / 424.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of Templates: time 0.008667/0.3572, allocations: 6.667 MB / 431.1 MB, free: 10.32 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