Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002039/0.002039, allocations: 178.8 kB / 8.363 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.149/2.149, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 92.7 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.549e-05/2.547e-05, allocations: 0 / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3389, allocations: 47.56 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1239/0.4629, allocations: 76.77 MB / 439.1 MB, free: 9.551 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.4632, allocations: 67.97 kB / 439.2 MB, free: 9.484 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02791/0.4911, allocations: 5.52 MB / 444.7 MB, free: 3.992 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4912, allocations: 0.75 kB / 444.7 MB, free: 3.992 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.146e-05/0.4912, allocations: 7.984 kB / 444.7 MB, free: 3.984 MB / 331.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.001919/0.4932, allocations: 0.5947 MB / 445.3 MB, free: 3.348 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.4932, allocations: 8.031 kB / 445.3 MB, free: 3.34 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001827/0.4934, allocations: 35.53 kB / 445.3 MB, free: 3.305 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005364/0.494, allocations: 267.5 kB / 445.6 MB, free: 3.004 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.494, allocations: 8 kB / 445.6 MB, free: 2.996 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.4942, allocations: 23.86 kB / 445.6 MB, free: 2.973 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009928/0.4952, allocations: 327 kB / 445.9 MB, free: 2.652 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008921/0.4961, allocations: 307.6 kB / 446.2 MB, free: 2.344 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.4961, allocations: 7.938 kB / 446.2 MB, free: 2.336 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.656e-05/0.4962, allocations: 3.984 kB / 446.2 MB, free: 2.332 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.4962, allocations: 8 kB / 446.3 MB, free: 2.324 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003567/0.4998, allocations: 1.051 MB / 447.3 MB, free: 1.211 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006717/0.5005, allocations: 271.1 kB / 447.6 MB, free: 0.9297 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004225/0.501, allocations: 164.8 kB / 447.7 MB, free: 0.7656 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.442e-05/0.5011, allocations: 11.98 kB / 447.7 MB, free: 0.7539 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.5011, allocations: 38.52 kB / 447.8 MB, free: 0.707 MB / 331.1 MB Notification: Performance of pre-optimization done (n=41): time 3.266e-06/0.5011, allocations: 0 / 447.8 MB, free: 0.707 MB / 331.1 MB Notification: Performance of matching and sorting (n=47): time 0.004941/0.5061, allocations: 1.363 MB / 449.1 MB, free: 15.25 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.5062, allocations: 55.84 kB / 449.2 MB, free: 15.18 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.5065, allocations: 176.3 kB / 449.4 MB, free: 15 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.5066, allocations: 29.7 kB / 449.4 MB, free: 14.97 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.5068, allocations: 211.2 kB / 449.6 MB, free: 14.76 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002177/0.507, allocations: 153.9 kB / 449.8 MB, free: 14.61 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.5071, allocations: 0 / 449.8 MB, free: 14.61 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.5072, allocations: 330.8 kB / 450.1 MB, free: 14.28 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004833/0.5077, allocations: 165.1 kB / 450.2 MB, free: 14.12 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000568/0.5083, allocations: 235.8 kB / 450.5 MB, free: 13.86 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006228/0.509, allocations: 149.8 kB / 450.6 MB, free: 13.71 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.509, allocations: 0 / 450.6 MB, free: 13.71 MB / 347.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002381/0.5114, allocations: 0.5831 MB / 451.2 MB, free: 13.12 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.5115, allocations: 9.25 kB / 451.2 MB, free: 13.11 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.936e-05/0.5115, allocations: 4 kB / 451.2 MB, free: 13.11 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001187/0.5127, allocations: 373.6 kB / 451.6 MB, free: 12.73 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005411/0.5133, allocations: 75.84 kB / 451.7 MB, free: 12.66 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/0.5154, allocations: 1.36 MB / 453 MB, free: 11.25 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009102/0.5163, allocations: 87.95 kB / 453.1 MB, free: 11.16 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-05/0.5165, allocations: 23.98 kB / 453.1 MB, free: 11.14 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002911/0.5168, allocations: 119.4 kB / 453.2 MB, free: 11.02 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.5169, allocations: 31.62 kB / 453.3 MB, free: 10.99 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/0.5193, allocations: 0.6108 MB / 453.9 MB, free: 10.36 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.5194, allocations: 4 kB / 453.9 MB, free: 10.36 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.5194, allocations: 0 / 453.9 MB, free: 10.36 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.5194, allocations: 3.984 kB / 453.9 MB, free: 10.36 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004521/0.5239, allocations: 1.215 MB / 455.1 MB, free: 9.078 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.524, allocations: 0 / 455.1 MB, free: 9.078 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005799/0.5246, allocations: 63.91 kB / 455.2 MB, free: 9.016 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001053/0.5257, allocations: 337.6 kB / 455.5 MB, free: 8.68 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.963e-05/0.5258, allocations: 23.92 kB / 455.5 MB, free: 8.656 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001904/0.5277, allocations: 1.306 MB / 456.8 MB, free: 7.305 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.5278, allocations: 0 / 456.8 MB, free: 7.305 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002821/0.5306, allocations: 0.8698 MB / 457.7 MB, free: 6.367 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003286/0.531, allocations: 144.8 kB / 457.8 MB, free: 6.207 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.5311, allocations: 11.98 kB / 457.8 MB, free: 6.195 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005604/0.5317, allocations: 43.97 kB / 457.9 MB, free: 6.152 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003424/0.5321, allocations: 103.7 kB / 458 MB, free: 6.051 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.171e-05/0.5322, allocations: 19.98 kB / 458 MB, free: 6.031 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002069/0.5324, allocations: 148.4 kB / 458.2 MB, free: 5.883 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5324, allocations: 0 / 458.2 MB, free: 5.883 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007164/0.5331, allocations: 95.88 kB / 458.3 MB, free: 5.789 MB / 347.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003472/0.5335, allocations: 140.1 kB / 458.4 MB, free: 5.648 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.5349, allocations: 485.5 kB / 458.9 MB, free: 5.164 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 5.371e-06/0.535, allocations: 5.062 kB / 458.9 MB, free: 5.16 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008177/0.5358, allocations: 252.4 kB / 459.1 MB, free: 4.914 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006449/0.5365, allocations: 30.91 kB / 459.1 MB, free: 4.887 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003502/0.54, allocations: 0.855 MB / 460 MB, free: 3.996 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004937/0.5406, allocations: 0.7878 MB / 460.8 MB, free: 3.18 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.5408, allocations: 35.42 kB / 460.8 MB, free: 3.145 MB / 347.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5408, allocations: 0 / 460.8 MB, free: 3.145 MB / 347.1 MB Notification: Performance of Templates: time 0.01573/0.5565, allocations: 6.353 MB / 467.2 MB, free: 12.82 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches