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.00104/0.00104, allocations: 181.4 kB / 17.01 MB, free: 5.125 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.482/1.482, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0009349/0.0009349, allocations: 82.67 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003085/0.0003086, allocations: 8 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.276, allocations: 47.56 MB / 375.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3798, allocations: 77.53 MB / 453.3 MB, free: 3.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.3801, allocations: 67.97 kB / 453.4 MB, free: 3.094 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01568/0.3958, allocations: 5.562 MB / 459 MB, free: 13.51 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3959, allocations: 4 kB / 459 MB, free: 13.51 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.549e-05/0.3959, allocations: 4 kB / 459 MB, free: 13.5 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.001185/0.3971, allocations: 0.6197 MB / 459.6 MB, free: 12.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.3971, allocations: 8.031 kB / 459.6 MB, free: 12.83 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.093e-05/0.3972, allocations: 35.53 kB / 459.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003427/0.3976, allocations: 267.5 kB / 459.9 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.269e-05/0.3976, allocations: 24.56 kB / 459.9 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.665e-05/0.3977, allocations: 27.95 kB / 459.9 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006858/0.3984, allocations: 360.6 kB / 460.3 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.3984, allocations: 8 kB / 460.3 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.658e-05/0.3985, allocations: 15.98 kB / 460.3 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.3985, allocations: 8 kB / 460.3 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006995/0.3992, allocations: 358 kB / 460.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.4013, allocations: 1.116 MB / 461.8 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005517/0.4019, allocations: 295.8 kB / 462.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.68e-05/0.402, allocations: 7.953 kB / 462.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.402, allocations: 42.5 kB / 462.1 MB, free: 10.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 2.315e-06/0.402, allocations: 0 / 462.1 MB, free: 10.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.004497/0.4065, allocations: 2.024 MB / 464.1 MB, free: 7.988 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.4066, allocations: 55.84 kB / 464.2 MB, free: 7.922 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002188/0.4068, allocations: 188.2 kB / 464.4 MB, free: 7.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.241e-05/0.4069, allocations: 45.7 kB / 464.4 MB, free: 7.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.407, allocations: 148.8 kB / 464.6 MB, free: 7.531 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.4072, allocations: 153.9 kB / 464.7 MB, free: 7.379 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.861e-05/0.4072, allocations: 12 kB / 464.7 MB, free: 7.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4074, allocations: 338.8 kB / 465.1 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003668/0.4077, allocations: 189 kB / 465.3 MB, free: 6.844 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004281/0.4082, allocations: 260.8 kB / 465.5 MB, free: 6.562 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003226/0.4085, allocations: 148.7 kB / 465.7 MB, free: 6.418 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4085, allocations: 0 / 465.7 MB, free: 6.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001456/0.41, allocations: 0.6572 MB / 466.3 MB, free: 5.746 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/0.41, allocations: 8 kB / 466.3 MB, free: 5.738 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.485e-05/0.4101, allocations: 4 kB / 466.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008234/0.4109, allocations: 393.5 kB / 466.7 MB, free: 5.344 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.4112, allocations: 75.89 kB / 466.8 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.4125, allocations: 1.312 MB / 468.1 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004353/0.4129, allocations: 96.05 kB / 468.2 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.426e-05/0.413, allocations: 23.98 kB / 468.2 MB, free: 3.789 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.0002414/0.4132, allocations: 157.6 kB / 468.4 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.893e-05/0.4133, allocations: 31.62 kB / 468.4 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/0.4148, allocations: 0.6446 MB / 469 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.4148, allocations: 7.984 kB / 469 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4148, allocations: 4 kB / 469.1 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.4149, allocations: 4 kB / 469.1 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/0.4175, allocations: 1.32 MB / 470.4 MB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.4176, allocations: 3.953 kB / 470.4 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002784/0.4178, allocations: 55.92 kB / 470.4 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006203/0.4185, allocations: 365.6 kB / 470.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.466e-05/0.4185, allocations: 23.92 kB / 470.8 MB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/0.4196, allocations: 1.265 MB / 472.1 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.4197, allocations: 4.094 kB / 472.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001721/0.4214, allocations: 0.9256 MB / 473 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001985/0.4216, allocations: 148.7 kB / 473.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.129e-05/0.4217, allocations: 20 kB / 473.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002941/0.422, allocations: 51.95 kB / 473.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/0.4222, allocations: 107.8 kB / 473.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.006e-05/0.4222, allocations: 27.98 kB / 473.4 MB, free: 14.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001465/0.4224, allocations: 156.5 kB / 473.5 MB, free: 14.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4224, allocations: 3.938 kB / 473.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004947/0.4229, allocations: 112 kB / 473.6 MB, free: 14.12 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.0002438/0.4232, allocations: 136 kB / 473.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.4242, allocations: 0.5287 MB / 474.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4242, allocations: 0 / 474.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000552/0.4248, allocations: 279.7 kB / 474.6 MB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.4252, allocations: 51.14 kB / 474.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.4276, allocations: 1.148 MB / 475.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005703/0.4282, allocations: 0.7957 MB / 476.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001533/0.4283, allocations: 30.97 kB / 476.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.785e-05/0.4284, allocations: 23.44 kB / 476.6 MB, free: 11.06 MB / 362.7 MB Notification: Performance of SimCode: time 2.204e-06/0.4284, allocations: 0 / 476.6 MB, free: 11.06 MB / 362.7 MB Notification: Performance of Templates: time 0.01191/0.4403, allocations: 7.383 MB / 484 MB, free: 3.695 MB / 362.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