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.0008951/0.0008951, allocations: 187 kB / 18.04 MB, free: 3.777 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.387/1.387, allocations: 205.4 MB / 224.2 MB, free: 9.012 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.0008414/0.0008413, allocations: 86.42 kB / 272.5 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003099/0.00031, allocations: 8 kB / 329.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2416, allocations: 47.58 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0893/0.331, allocations: 77.55 MB / 454.6 MB, free: 2.984 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.3313, allocations: 67.97 kB / 454.6 MB, free: 2.918 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01572/0.347, allocations: 5.578 MB / 460.2 MB, free: 13.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.347, allocations: 0 / 460.2 MB, free: 13.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.703e-05/0.3471, allocations: 4 kB / 460.2 MB, free: 13.32 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.001071/0.3482, allocations: 0.616 MB / 460.8 MB, free: 12.65 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.3482, allocations: 8.031 kB / 460.8 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.3483, allocations: 40.47 kB / 460.9 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.3487, allocations: 276.6 kB / 461.2 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.758e-05/0.3488, allocations: 24.94 kB / 461.2 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.755e-05/0.3488, allocations: 28.38 kB / 461.2 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006727/0.3495, allocations: 353.2 kB / 461.6 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.3496, allocations: 8.094 kB / 461.6 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.031e-05/0.3496, allocations: 15.94 kB / 461.6 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.3496, allocations: 11.94 kB / 461.6 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007234/0.3504, allocations: 362 kB / 461.9 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.3527, allocations: 1.112 MB / 463.1 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005486/0.3533, allocations: 295.3 kB / 463.3 MB, free: 10.01 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003594/0.3536, allocations: 188.8 kB / 463.5 MB, free: 9.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.538e-05/0.3537, allocations: 4 kB / 463.5 MB, free: 9.816 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.3538, allocations: 38.56 kB / 463.6 MB, free: 9.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 3.847e-06/0.3538, allocations: 112 / 463.6 MB, free: 9.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.004437/0.3582, allocations: 2.035 MB / 465.6 MB, free: 7.602 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.3583, allocations: 59.84 kB / 465.7 MB, free: 7.531 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002347/0.3585, allocations: 213 kB / 465.9 MB, free: 7.312 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.015e-05/0.3586, allocations: 41.7 kB / 465.9 MB, free: 7.266 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.053e-05/0.3587, allocations: 144.8 kB / 466.1 MB, free: 7.121 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.3589, allocations: 165.8 kB / 466.2 MB, free: 6.957 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.069e-05/0.3589, allocations: 16 kB / 466.2 MB, free: 6.941 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3591, allocations: 334.8 kB / 466.6 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000383/0.3594, allocations: 181 kB / 466.7 MB, free: 6.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004198/0.3599, allocations: 260.8 kB / 467 MB, free: 6.148 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005999/0.3605, allocations: 353.7 kB / 467.3 MB, free: 5.777 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3605, allocations: 0 / 467.3 MB, free: 5.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001439/0.3619, allocations: 0.6454 MB / 468 MB, free: 5.121 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.362, allocations: 8 kB / 468 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/0.362, allocations: 4 kB / 468 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000761/0.3628, allocations: 397.6 kB / 468.4 MB, free: 4.715 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.363, allocations: 63.91 kB / 468.4 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.3643, allocations: 1.324 MB / 469.8 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000426/0.3647, allocations: 91.97 kB / 469.9 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.815e-05/0.3648, allocations: 31.92 kB / 469.9 MB, free: 3.156 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.0002255/0.365, allocations: 159.3 kB / 470 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.585e-05/0.3651, allocations: 35.56 kB / 470.1 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/0.3666, allocations: 0.6443 MB / 470.7 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.3666, allocations: 4 kB / 470.7 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3666, allocations: 0 / 470.7 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.3666, allocations: 8.031 kB / 470.7 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00269/0.3693, allocations: 1.327 MB / 472.1 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3693, allocations: 0 / 472.1 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002827/0.3696, allocations: 64.06 kB / 472.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000601/0.3702, allocations: 361.4 kB / 472.5 MB, free: 468 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.559e-05/0.3703, allocations: 19.97 kB / 472.5 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.3714, allocations: 1.272 MB / 473.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3714, allocations: 0 / 473.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.3732, allocations: 0.8692 MB / 474.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/0.3734, allocations: 152.7 kB / 474.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.307e-05/0.3735, allocations: 16 kB / 474.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.3738, allocations: 55.95 kB / 474.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/0.374, allocations: 95.78 kB / 474.9 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.836e-05/0.3741, allocations: 23.97 kB / 475 MB, free: 13.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001553/0.3742, allocations: 164.5 kB / 475.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3742, allocations: 0 / 475.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004955/0.3747, allocations: 103.9 kB / 475.2 MB, free: 13.58 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.0002794/0.375, allocations: 147.1 kB / 475.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.3761, allocations: 0.5208 MB / 475.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.3762, allocations: 4.312 kB / 475.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005654/0.3767, allocations: 279.6 kB / 476.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.3773, allocations: 48.41 kB / 476.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.3796, allocations: 1.171 MB / 477.4 MB, free: 11.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.38, allocations: 0.7801 MB / 478.2 MB, free: 10.56 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001498/0.3802, allocations: 26.98 kB / 478.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.151e-05/0.3803, allocations: 35.36 kB / 478.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of SimCode: time 7.71e-07/0.3803, allocations: 0 / 478.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of Templates: time 0.01252/0.3928, allocations: 7.413 MB / 485.6 MB, free: 3.094 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/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_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches