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.001264/0.001264, allocations: 177.7 kB / 17.41 MB, free: 4.289 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.662/1.662, allocations: 205.4 MB / 223.6 MB, free: 8.922 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.0008283/0.0008283, allocations: 97.42 kB / 271.9 MB, free: 8.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000371/0.0003711, allocations: 8 kB / 328.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2507, allocations: 47.56 MB / 375.7 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09153/0.3423, allocations: 77.56 MB / 453.3 MB, free: 3.051 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.3426, allocations: 67.97 kB / 453.3 MB, free: 2.984 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01532/0.3579, allocations: 5.566 MB / 458.9 MB, free: 13.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.358, allocations: 0 / 458.9 MB, free: 13.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.55e-05/0.358, allocations: 4 kB / 458.9 MB, free: 13.39 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.00106/0.359, allocations: 0.6082 MB / 459.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.3591, allocations: 8.031 kB / 459.5 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.542e-05/0.3592, allocations: 44.45 kB / 459.6 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003247/0.3595, allocations: 280.6 kB / 459.8 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.164e-05/0.3596, allocations: 24.94 kB / 459.9 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.673e-05/0.3596, allocations: 28.38 kB / 459.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006897/0.3603, allocations: 361.2 kB / 460.3 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.3604, allocations: 8.031 kB / 460.3 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.3e-05/0.3604, allocations: 15.94 kB / 460.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.3604, allocations: 8 kB / 460.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007129/0.3612, allocations: 358 kB / 460.6 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.3632, allocations: 1.124 MB / 461.8 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005058/0.3637, allocations: 287.3 kB / 462 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003587/0.3641, allocations: 188.8 kB / 462.2 MB, free: 9.895 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.234e-05/0.3641, allocations: 8 kB / 462.2 MB, free: 9.887 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.3642, allocations: 34.56 kB / 462.3 MB, free: 9.844 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 3.567e-06/0.3642, allocations: 0 / 462.3 MB, free: 9.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.004367/0.3685, allocations: 2.035 MB / 464.3 MB, free: 7.676 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.3686, allocations: 55.84 kB / 464.4 MB, free: 7.609 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002167/0.3688, allocations: 213 kB / 464.6 MB, free: 7.391 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.282e-05/0.3689, allocations: 41.69 kB / 464.6 MB, free: 7.344 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.987e-05/0.369, allocations: 148.8 kB / 464.7 MB, free: 7.195 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.3691, allocations: 153.9 kB / 464.9 MB, free: 7.043 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.526e-05/0.3692, allocations: 16 kB / 464.9 MB, free: 7.027 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.3693, allocations: 342.8 kB / 465.2 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003749/0.3697, allocations: 181 kB / 465.4 MB, free: 6.508 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004129/0.3701, allocations: 260.8 kB / 465.7 MB, free: 6.223 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006045/0.3707, allocations: 353.7 kB / 466 MB, free: 5.855 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3708, allocations: 4 kB / 466 MB, free: 5.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00146/0.3722, allocations: 0.6493 MB / 466.7 MB, free: 5.191 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.3723, allocations: 8 kB / 466.7 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/0.3723, allocations: 4 kB / 466.7 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007408/0.373, allocations: 389.6 kB / 467.1 MB, free: 4.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.3733, allocations: 75.84 kB / 467.1 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.3745, allocations: 1.32 MB / 468.5 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004436/0.3749, allocations: 95.97 kB / 468.6 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.208e-05/0.375, allocations: 20 kB / 468.6 MB, free: 3.234 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.0002381/0.3753, allocations: 159.3 kB / 468.7 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.236e-05/0.3753, allocations: 35.56 kB / 468.8 MB, free: 3.035 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/0.3769, allocations: 0.6443 MB / 469.4 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.3769, allocations: 8 kB / 469.4 MB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3769, allocations: 0 / 469.4 MB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3769, allocations: 7.984 kB / 469.4 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002614/0.3796, allocations: 1.323 MB / 470.8 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.3796, allocations: 3.938 kB / 470.8 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.3798, allocations: 59.91 kB / 470.8 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006488/0.3805, allocations: 369.5 kB / 471.2 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.763e-05/0.3806, allocations: 24.03 kB / 471.2 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001085/0.3817, allocations: 1.269 MB / 472.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3817, allocations: 0 / 472.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/0.3834, allocations: 0.8692 MB / 473.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000201/0.3836, allocations: 148.7 kB / 473.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.313e-05/0.3837, allocations: 16 kB / 473.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003095/0.384, allocations: 55.95 kB / 473.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.3842, allocations: 95.78 kB / 473.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-05/0.3843, allocations: 27.97 kB / 473.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001585/0.3845, allocations: 160.5 kB / 473.8 MB, free: 13.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3845, allocations: 0 / 473.8 MB, free: 13.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004717/0.3849, allocations: 107.9 kB / 473.9 MB, free: 13.65 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.000239/0.3852, allocations: 143.1 kB / 474.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.3862, allocations: 0.5208 MB / 474.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3863, allocations: 4.312 kB / 474.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005434/0.3868, allocations: 275.7 kB / 474.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004904/0.3873, allocations: 46.47 kB / 474.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.3896, allocations: 1.207 MB / 476.1 MB, free: 11.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.3899, allocations: 0.7801 MB / 476.9 MB, free: 10.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.971e-05/0.39, allocations: 27.44 kB / 476.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of SimCode: time 1.874e-06/0.39, allocations: 0 / 476.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of Templates: time 0.008879/0.3989, allocations: 6.603 MB / 483.5 MB, free: 3.965 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