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.002169/0.002173, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.113/2.113, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001072/0.001071, allocations: 98.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.957e-05/2.966e-05, allocations: 0 / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09559, allocations: 47.57 MB / 369.1 MB, free: 2.211 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3965/0.4921, allocations: 77.42 MB / 446.5 MB, free: 15.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.4925, allocations: 63.22 kB / 446.6 MB, free: 15.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02759/0.5201, allocations: 5.565 MB / 452.1 MB, free: 10.83 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5201, allocations: 3.938 kB / 452.1 MB, free: 10.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.877e-05/0.5202, allocations: 8 kB / 452.1 MB, free: 10.82 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.001839/0.522, allocations: 0.585 MB / 452.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.5221, allocations: 11.97 kB / 452.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.5223, allocations: 39.53 kB / 452.8 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004787/0.5228, allocations: 262 kB / 453 MB, free: 9.883 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.031e-05/0.5228, allocations: 20.69 kB / 453.1 MB, free: 9.867 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.523, allocations: 38.05 kB / 453.1 MB, free: 9.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009441/0.5239, allocations: 342.8 kB / 453.4 MB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.731e-05/0.524, allocations: 4 kB / 453.4 MB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.865e-05/0.524, allocations: 8 kB / 453.4 MB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.619e-05/0.5241, allocations: 8 kB / 453.4 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.5251, allocations: 342.2 kB / 453.8 MB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003567/0.5287, allocations: 1.125 MB / 454.9 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007556/0.5295, allocations: 290.3 kB / 455.2 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004739/0.53, allocations: 181.5 kB / 455.4 MB, free: 8.055 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/0.5301, allocations: 7.953 kB / 455.4 MB, free: 8.047 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.5302, allocations: 41.81 kB / 455.4 MB, free: 8 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 3.337e-06/0.5302, allocations: 0 / 455.4 MB, free: 8 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.004333/0.5345, allocations: 1.411 MB / 456.8 MB, free: 6.781 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.5346, allocations: 55.84 kB / 456.9 MB, free: 6.715 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003226/0.535, allocations: 188.4 kB / 457.1 MB, free: 6.555 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.5351, allocations: 48.19 kB / 457.1 MB, free: 6.512 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.5353, allocations: 207.8 kB / 457.3 MB, free: 6.316 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002087/0.5355, allocations: 157.3 kB / 457.5 MB, free: 6.188 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-05/0.5355, allocations: 14.3 kB / 457.5 MB, free: 6.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.5357, allocations: 328.2 kB / 457.8 MB, free: 5.859 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000508/0.5362, allocations: 170.2 kB / 458 MB, free: 5.762 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006073/0.5368, allocations: 253.8 kB / 458.2 MB, free: 5.562 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004548/0.5373, allocations: 146.3 kB / 458.4 MB, free: 5.465 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.5373, allocations: 0 / 458.4 MB, free: 5.465 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002304/0.5397, allocations: 0.6161 MB / 459 MB, free: 4.953 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.5397, allocations: 8 kB / 459 MB, free: 4.945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.145e-05/0.5398, allocations: 7.984 kB / 459 MB, free: 4.938 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.541, allocations: 369.7 kB / 459.4 MB, free: 4.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005496/0.5416, allocations: 75.84 kB / 459.4 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.5435, allocations: 1.316 MB / 460.7 MB, free: 3.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009195/0.5444, allocations: 92.05 kB / 460.8 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.5446, allocations: 24.09 kB / 460.9 MB, free: 3.016 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.0002412/0.5448, allocations: 140.7 kB / 461 MB, free: 2.871 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.545, allocations: 31.62 kB / 461 MB, free: 2.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002864/0.5479, allocations: 0.6248 MB / 461.7 MB, free: 2.199 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.848e-05/0.548, allocations: 4 kB / 461.7 MB, free: 2.195 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.548, allocations: 0 / 461.7 MB, free: 2.195 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-05/0.548, allocations: 0 / 461.7 MB, free: 2.195 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00479/0.5528, allocations: 1.29 MB / 462.9 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/0.5529, allocations: 11.92 kB / 463 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005654/0.5535, allocations: 59.97 kB / 463 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001081/0.5546, allocations: 349.5 kB / 463.4 MB, free: 420 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.5547, allocations: 20.05 kB / 463.4 MB, free: 400 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001732/0.5565, allocations: 1.269 MB / 464.6 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.5565, allocations: 4.031 kB / 464.6 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002889/0.5594, allocations: 0.897 MB / 465.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003506/0.5598, allocations: 148.7 kB / 465.7 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.56, allocations: 20 kB / 465.7 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000577/0.5606, allocations: 47.95 kB / 465.8 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003767/0.561, allocations: 107.7 kB / 465.9 MB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.423e-05/0.5611, allocations: 27.91 kB / 465.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002488/0.5613, allocations: 157.4 kB / 466 MB, free: 13.58 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5614, allocations: 4 kB / 466 MB, free: 13.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007193/0.5621, allocations: 104 kB / 466.1 MB, free: 13.47 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.0003759/0.5625, allocations: 144.8 kB / 466.3 MB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00159/0.5641, allocations: 0.5014 MB / 466.8 MB, free: 12.81 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.5641, allocations: 320 / 466.8 MB, free: 12.81 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009182/0.5651, allocations: 263.8 kB / 467 MB, free: 12.55 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006233/0.5657, allocations: 44.36 kB / 467.1 MB, free: 12.51 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003566/0.5693, allocations: 0.8853 MB / 468 MB, free: 11.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004767/0.5698, allocations: 0.7878 MB / 468.8 MB, free: 10.76 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.57, allocations: 35.42 kB / 468.8 MB, free: 10.72 MB / 346.7 MB Notification: Performance of SimCode: time 9.81e-07/0.57, allocations: 0 / 468.8 MB, free: 10.72 MB / 346.7 MB Notification: Performance of Templates: time 0.01536/0.5854, allocations: 6.404 MB / 475.2 MB, free: 4.316 MB / 346.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