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.001474/0.001474, allocations: 186.7 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.994/1.994, allocations: 205.4 MB / 222.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 96.67 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003825/0.0003826, allocations: 12 kB / 327 MB, free: 232 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3374, allocations: 47.56 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1271/0.4645, allocations: 77.52 MB / 452 MB, free: 3.273 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.4649, allocations: 71.97 kB / 452.1 MB, free: 3.203 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0266/0.4915, allocations: 5.562 MB / 457.7 MB, free: 13.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4915, allocations: 0 / 457.7 MB, free: 13.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.434e-05/0.4916, allocations: 8 kB / 457.7 MB, free: 13.61 MB / 346.7 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.001821/0.4934, allocations: 0.6119 MB / 458.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.4935, allocations: 8.031 kB / 458.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.4936, allocations: 39.53 kB / 458.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.4941, allocations: 271.5 kB / 458.6 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.646e-05/0.4942, allocations: 20.56 kB / 458.6 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.4943, allocations: 39.94 kB / 458.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001132/0.4954, allocations: 352.6 kB / 459 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.4955, allocations: 4 kB / 459 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.296e-05/0.4955, allocations: 12 kB / 459 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.4956, allocations: 8 kB / 459 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.497, allocations: 366 kB / 459.4 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003831/0.5009, allocations: 1.116 MB / 460.5 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009239/0.5018, allocations: 291.8 kB / 460.8 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001051/0.502, allocations: 19.94 kB / 460.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.502, allocations: 34.5 kB / 460.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 4.048e-06/0.502, allocations: 0 / 460.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.007645/0.5097, allocations: 2.02 MB / 462.9 MB, free: 8.102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.5098, allocations: 55.84 kB / 462.9 MB, free: 8.035 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.5101, allocations: 188.2 kB / 463.1 MB, free: 7.844 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.786e-05/0.5102, allocations: 45.7 kB / 463.2 MB, free: 7.793 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.5103, allocations: 207.2 kB / 463.4 MB, free: 7.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.5106, allocations: 153.9 kB / 463.5 MB, free: 7.438 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.458e-05/0.5106, allocations: 15.94 kB / 463.5 MB, free: 7.422 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.5108, allocations: 334.8 kB / 463.8 MB, free: 7.086 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006639/0.5115, allocations: 185 kB / 464 MB, free: 6.906 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007397/0.5122, allocations: 256.8 kB / 464.3 MB, free: 6.629 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005586/0.5128, allocations: 152.7 kB / 464.4 MB, free: 6.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.5128, allocations: 0 / 464.4 MB, free: 6.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002553/0.5154, allocations: 0.6533 MB / 465.1 MB, free: 5.812 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.5154, allocations: 4.938 kB / 465.1 MB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.597e-05/0.5155, allocations: 7.984 kB / 465.1 MB, free: 5.801 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/0.5167, allocations: 385.6 kB / 465.5 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000496/0.5172, allocations: 71.91 kB / 465.5 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001744/0.519, allocations: 1.32 MB / 466.9 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008468/0.5199, allocations: 92.05 kB / 466.9 MB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.539e-05/0.52, allocations: 23.98 kB / 467 MB, free: 3.863 MB / 346.7 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 (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 () * Number of clocked 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.0003127/0.5203, allocations: 169.6 kB / 467.1 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.5204, allocations: 27.62 kB / 467.2 MB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002538/0.523, allocations: 0.6446 MB / 467.8 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.523, allocations: 8 kB / 467.8 MB, free: 2.988 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.523, allocations: 0 / 467.8 MB, free: 2.988 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.523, allocations: 3.984 kB / 467.8 MB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004497/0.5275, allocations: 1.32 MB / 469.1 MB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.5276, allocations: 7.953 kB / 469.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005289/0.5281, allocations: 59.91 kB / 469.2 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.5292, allocations: 361.5 kB / 469.6 MB, free: 1.164 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.411e-05/0.5293, allocations: 19.97 kB / 469.6 MB, free: 1.145 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/0.531, allocations: 1.273 MB / 470.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.772e-06/0.531, allocations: 7.969 kB / 470.9 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003056/0.5341, allocations: 0.9216 MB / 471.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002855/0.5344, allocations: 148.7 kB / 471.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.5345, allocations: 19.98 kB / 471.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005408/0.5351, allocations: 47.97 kB / 472 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003146/0.5354, allocations: 111.7 kB / 472.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.349e-05/0.5355, allocations: 19.98 kB / 472.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000248/0.5358, allocations: 156.5 kB / 472.3 MB, free: 14.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.5358, allocations: 0 / 472.3 MB, free: 14.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006461/0.5364, allocations: 108 kB / 472.4 MB, free: 14.2 MB / 362.7 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 (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.0003128/0.5368, allocations: 145.9 kB / 472.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.5385, allocations: 0.5247 MB / 473 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.5385, allocations: 0 / 473 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009451/0.5395, allocations: 280 kB / 473.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005629/0.5401, allocations: 40.53 kB / 473.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003771/0.5439, allocations: 1.195 MB / 474.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/0.5443, allocations: 0.7917 MB / 475.3 MB, free: 11.15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.5445, allocations: 23.44 kB / 475.4 MB, free: 11.12 MB / 362.7 MB Notification: Performance of SimCode: time 1.372e-06/0.5445, allocations: 0 / 475.4 MB, free: 11.12 MB / 362.7 MB Notification: Performance of Templates: time 0.01357/0.5581, allocations: 6.399 MB / 481.8 MB, free: 4.723 MB / 362.7 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