Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001852/0.001852, allocations: 172.8 kB / 14.1 MB, free: 1.223 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.777/1.777, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0009638/0.000964, allocations: 86.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.853e-05/2.856e-05, allocations: 7.984 kB / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 47.58 MB / 370 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3471/0.453, allocations: 77.41 MB / 447.4 MB, free: 15.85 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001731/0.4532, allocations: 69.34 kB / 447.5 MB, free: 15.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01563/0.4688, allocations: 5.568 MB / 453.1 MB, free: 10.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4689, allocations: 0 / 453.1 MB, free: 10.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.4689, allocations: 4 kB / 453.1 MB, free: 10.93 MB / 330.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.001023/0.4699, allocations: 0.5866 MB / 453.7 MB, free: 10.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.47, allocations: 12.03 kB / 453.7 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.947e-05/0.4701, allocations: 39.52 kB / 453.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002925/0.4704, allocations: 264.8 kB / 454 MB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.15e-05/0.4704, allocations: 18.75 kB / 454 MB, free: 9.977 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.788e-05/0.4705, allocations: 37.73 kB / 454 MB, free: 9.949 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005675/0.4711, allocations: 347.5 kB / 454.4 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.4711, allocations: 0 / 454.4 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.164e-05/0.4711, allocations: 14.88 kB / 454.4 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.188e-06/0.4711, allocations: 4 kB / 454.4 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005611/0.4717, allocations: 338.9 kB / 454.7 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.4736, allocations: 1.124 MB / 455.8 MB, free: 8.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004101/0.4741, allocations: 286.4 kB / 456.1 MB, free: 8.277 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002498/0.4743, allocations: 173.3 kB / 456.3 MB, free: 8.176 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.187e-05/0.4744, allocations: 7.953 kB / 456.3 MB, free: 8.168 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.4744, allocations: 42.48 kB / 456.3 MB, free: 8.121 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 3.226e-06/0.4744, allocations: 3.984 kB / 456.3 MB, free: 8.117 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.002496/0.477, allocations: 1.416 MB / 457.8 MB, free: 6.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.477, allocations: 59.84 kB / 457.8 MB, free: 6.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.4772, allocations: 188.9 kB / 458 MB, free: 6.582 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.133e-05/0.4772, allocations: 41.7 kB / 458 MB, free: 6.535 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/0.4773, allocations: 148.8 kB / 458.2 MB, free: 6.383 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.4775, allocations: 153.9 kB / 458.3 MB, free: 6.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.048e-05/0.4775, allocations: 15.94 kB / 458.4 MB, free: 6.215 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.4777, allocations: 338.8 kB / 458.7 MB, free: 5.875 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002897/0.478, allocations: 173.1 kB / 458.9 MB, free: 5.707 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003345/0.4783, allocations: 256.8 kB / 459.1 MB, free: 5.426 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.4785, allocations: 137.6 kB / 459.2 MB, free: 5.293 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4786, allocations: 0 / 459.2 MB, free: 5.293 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001275/0.4798, allocations: 0.6298 MB / 459.9 MB, free: 4.648 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.4799, allocations: 4 kB / 459.9 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.4799, allocations: 8.062 kB / 459.9 MB, free: 4.637 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007015/0.4806, allocations: 377.7 kB / 460.3 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002629/0.4809, allocations: 71.83 kB / 460.3 MB, free: 4.191 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.4821, allocations: 1.316 MB / 461.6 MB, free: 2.824 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004648/0.4825, allocations: 92.16 kB / 461.7 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-05/0.4826, allocations: 27.92 kB / 461.8 MB, free: 2.707 MB / 330.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 () * 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.0001744/0.4828, allocations: 136.8 kB / 461.9 MB, free: 2.566 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.702e-05/0.4829, allocations: 31.62 kB / 461.9 MB, free: 2.535 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00138/0.4843, allocations: 0.6248 MB / 462.5 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.4843, allocations: 4 kB / 462.5 MB, free: 1.891 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4843, allocations: 0 / 462.5 MB, free: 1.891 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.4843, allocations: 3.984 kB / 462.6 MB, free: 1.887 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002501/0.4868, allocations: 1.294 MB / 463.8 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4869, allocations: 0 / 463.8 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/0.4871, allocations: 60.08 kB / 463.9 MB, free: 468 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005841/0.4877, allocations: 349.4 kB / 464.2 MB, free: 112 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.058e-05/0.4878, allocations: 19.98 kB / 464.3 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.4889, allocations: 1.269 MB / 465.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.4889, allocations: 0 / 465.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.4904, allocations: 0.8971 MB / 466.4 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002034/0.4906, allocations: 148.7 kB / 466.6 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.995e-05/0.4907, allocations: 16 kB / 466.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003059/0.491, allocations: 55.95 kB / 466.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002146/0.4913, allocations: 99.73 kB / 466.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.184e-05/0.4913, allocations: 27.97 kB / 466.8 MB, free: 13.45 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001682/0.4915, allocations: 157.4 kB / 466.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4915, allocations: 4 kB / 466.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005524/0.4921, allocations: 107.9 kB / 467 MB, free: 13.18 MB / 346.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) * 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.0003186/0.4924, allocations: 148.9 kB / 467.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009034/0.4933, allocations: 0.5014 MB / 467.7 MB, free: 12.51 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.4933, allocations: 4.312 kB / 467.7 MB, free: 12.51 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005003/0.4938, allocations: 267.7 kB / 467.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000343/0.4942, allocations: 45.59 kB / 468 MB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.4961, allocations: 0.8525 MB / 468.8 MB, free: 11.31 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.4965, allocations: 0.7917 MB / 469.6 MB, free: 10.49 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000127/0.4967, allocations: 26.97 kB / 469.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.713e-05/0.4967, allocations: 23.44 kB / 469.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4968, allocations: 0 / 469.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of Templates: time 0.01166/0.5084, allocations: 7.388 MB / 477.1 MB, free: 3.051 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches