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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 176.6 kB / 8.35 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 221.5 MB / 230.3 MB, free: 7.539 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00087/0.0008701, allocations: 99.09 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.345e-05/1.347e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09162, allocations: 50.42 MB / 387.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3324/0.4241, allocations: 78.14 MB / 465.6 MB, free: 0.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000198/0.4243, allocations: 63.97 kB / 465.7 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0158/0.4401, allocations: 5.618 MB / 471.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4402, allocations: 0 / 471.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.553e-05/0.4402, allocations: 8 kB / 471.3 MB, free: 11.05 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.001104/0.4413, allocations: 0.6003 MB / 471.9 MB, free: 10.4 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.4414, allocations: 11.98 kB / 471.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.4415, allocations: 39.53 kB / 471.9 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003419/0.4418, allocations: 263.5 kB / 472.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.4419, allocations: 8 kB / 472.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.898e-05/0.4419, allocations: 27.91 kB / 472.2 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006067/0.4426, allocations: 325 kB / 472.6 MB, free: 9.699 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005478/0.4431, allocations: 299.6 kB / 472.8 MB, free: 9.398 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.4431, allocations: 7.984 kB / 472.9 MB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.948e-05/0.4432, allocations: 7.953 kB / 472.9 MB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.4432, allocations: 4 kB / 472.9 MB, free: 9.379 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001999/0.4452, allocations: 1.06 MB / 473.9 MB, free: 8.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003783/0.4456, allocations: 263.1 kB / 474.2 MB, free: 7.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002388/0.4459, allocations: 168.8 kB / 474.3 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.804e-05/0.4459, allocations: 7.938 kB / 474.4 MB, free: 7.805 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.446, allocations: 35.25 kB / 474.4 MB, free: 7.762 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 2.274e-06/0.446, allocations: 0 / 474.4 MB, free: 7.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.002937/0.4489, allocations: 1.37 MB / 475.8 MB, free: 6.293 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.449, allocations: 59.84 kB / 475.8 MB, free: 6.223 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.4492, allocations: 175 kB / 476 MB, free: 6.043 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.871e-05/0.4492, allocations: 33.7 kB / 476 MB, free: 6.004 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.36e-05/0.4493, allocations: 148.8 kB / 476.2 MB, free: 5.855 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.4495, allocations: 154 kB / 476.3 MB, free: 5.703 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.694e-05/0.4495, allocations: 3.938 kB / 476.3 MB, free: 5.699 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.4496, allocations: 342.8 kB / 476.7 MB, free: 5.355 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002546/0.4499, allocations: 165 kB / 476.8 MB, free: 5.195 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003365/0.4502, allocations: 239.8 kB / 477 MB, free: 4.934 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003409/0.4506, allocations: 136.7 kB / 477.2 MB, free: 4.801 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.4506, allocations: 0 / 477.2 MB, free: 4.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001302/0.4519, allocations: 0.5986 MB / 477.8 MB, free: 4.188 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.4519, allocations: 5.406 kB / 477.8 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.897e-05/0.452, allocations: 4 kB / 477.8 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006656/0.4526, allocations: 373.6 kB / 478.2 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.4529, allocations: 71.86 kB / 478.2 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.4543, allocations: 1.358 MB / 479.6 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004907/0.4548, allocations: 80.05 kB / 479.7 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.365e-05/0.4549, allocations: 23.98 kB / 479.7 MB, free: 2.227 MB / 346.7 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.0002198/0.4551, allocations: 131.3 kB / 479.8 MB, free: 2.094 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.669e-05/0.4552, allocations: 27.62 kB / 479.8 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.4566, allocations: 0.6103 MB / 480.5 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.4566, allocations: 4 kB / 480.5 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.4566, allocations: 3.953 kB / 480.5 MB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.4566, allocations: 0 / 480.5 MB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00251/0.4591, allocations: 1.205 MB / 481.7 MB, free: 168 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.4592, allocations: 8.062 kB / 481.7 MB, free: 160 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002815/0.4595, allocations: 68.06 kB / 481.7 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005871/0.4601, allocations: 337.5 kB / 482.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.149e-05/0.4601, allocations: 19.97 kB / 482.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.4613, allocations: 1.3 MB / 483.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.4613, allocations: 0 / 483.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.4629, allocations: 0.8776 MB / 484.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002224/0.4632, allocations: 144.8 kB / 484.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.684e-05/0.4632, allocations: 15.94 kB / 484.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003009/0.4636, allocations: 43.95 kB / 484.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/0.4638, allocations: 99.78 kB / 484.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.786e-05/0.4638, allocations: 27.97 kB / 484.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001458/0.464, allocations: 148.5 kB / 484.7 MB, free: 12.94 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.464, allocations: 0 / 484.7 MB, free: 12.94 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005302/0.4645, allocations: 87.94 kB / 484.8 MB, free: 12.86 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) * 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.0002688/0.4648, allocations: 137.5 kB / 485 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008159/0.4656, allocations: 484.8 kB / 485.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4656, allocations: 320 / 485.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004668/0.4661, allocations: 271.7 kB / 485.7 MB, free: 11.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003689/0.4665, allocations: 28.64 kB / 485.7 MB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.4685, allocations: 0.8327 MB / 486.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.4688, allocations: 0.7839 MB / 487.3 MB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00013/0.469, allocations: 31.28 kB / 487.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.164e-05/0.4691, allocations: 27.42 kB / 487.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4691, allocations: 0 / 487.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of Templates: time 0.01197/0.481, allocations: 7.094 MB / 494.5 MB, free: 3.141 MB / 362.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches