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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002535/0.002535, allocations: 175.1 kB / 8.149 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.02/2.02, allocations: 205.2 MB / 213.8 MB, free: 13.94 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.001274/0.001274, allocations: 89.91 kB / 261.8 MB, free: 13.65 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.985e-06/8.085e-06, allocations: 0 / 314.3 MB, free: 9.078 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2438, allocations: 47.55 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.3655, allocations: 76.69 MB / 438.5 MB, free: 9.379 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/0.3658, allocations: 68.41 kB / 438.6 MB, free: 9.312 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02687/0.3927, allocations: 5.314 MB / 443.9 MB, free: 4.039 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.418e-05/0.3927, allocations: 8 kB / 443.9 MB, free: 4.031 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.001773/0.3945, allocations: 0.5959 MB / 444.5 MB, free: 3.391 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.3946, allocations: 11.97 kB / 444.5 MB, free: 3.379 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.3947, allocations: 38.06 kB / 444.6 MB, free: 3.344 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004647/0.3952, allocations: 271.5 kB / 444.8 MB, free: 3.039 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.681e-05/0.3953, allocations: 8 kB / 444.8 MB, free: 3.031 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.874e-05/0.3954, allocations: 16 kB / 444.8 MB, free: 3.016 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001047/0.3964, allocations: 329.2 kB / 445.2 MB, free: 2.695 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008644/0.3973, allocations: 316.6 kB / 445.5 MB, free: 2.379 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.3974, allocations: 3.188 kB / 445.5 MB, free: 2.379 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.663e-05/0.3974, allocations: 0 / 445.5 MB, free: 2.379 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.3975, allocations: 8 kB / 445.5 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003733/0.4012, allocations: 1.082 MB / 446.6 MB, free: 1.223 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006442/0.4019, allocations: 238.2 kB / 446.8 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004622/0.4024, allocations: 164.8 kB / 447 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.043e-05/0.4025, allocations: 7.984 kB / 447 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.4025, allocations: 38.56 kB / 447 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 3.927e-06/0.4025, allocations: 4 kB / 447 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.004952/0.4075, allocations: 1.336 MB / 448.4 MB, free: 15.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.4076, allocations: 59.84 kB / 448.4 MB, free: 15.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.4078, allocations: 179 kB / 448.6 MB, free: 15.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.855e-05/0.4079, allocations: 33.7 kB / 448.6 MB, free: 15.03 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.4081, allocations: 199.2 kB / 448.8 MB, free: 14.83 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002173/0.4083, allocations: 145.9 kB / 449 MB, free: 14.69 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.054e-05/0.4084, allocations: 3.984 kB / 449 MB, free: 14.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.4085, allocations: 330.8 kB / 449.3 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005125/0.409, allocations: 168.9 kB / 449.4 MB, free: 14.18 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000577/0.4096, allocations: 239.3 kB / 449.7 MB, free: 13.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006307/0.4103, allocations: 140.7 kB / 449.8 MB, free: 13.79 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4103, allocations: 0 / 449.8 MB, free: 13.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002505/0.4128, allocations: 0.5793 MB / 450.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.4129, allocations: 4 kB / 450.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.862e-05/0.4129, allocations: 7.984 kB / 450.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.4141, allocations: 365.6 kB / 450.8 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005613/0.4146, allocations: 75.89 kB / 450.8 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.4168, allocations: 1.374 MB / 452.2 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009375/0.4177, allocations: 92.05 kB / 452.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.446e-05/0.4178, allocations: 23.98 kB / 452.3 MB, free: 11.21 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.0002564/0.4181, allocations: 43.25 kB / 452.4 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.4183, allocations: 39.55 kB / 452.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002553/0.4208, allocations: 0.6112 MB / 453 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.4209, allocations: 4.062 kB / 453 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.4209, allocations: 4 kB / 453 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.4209, allocations: 3.984 kB / 453 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004746/0.4257, allocations: 1.231 MB / 454.3 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.4257, allocations: 3.984 kB / 454.3 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006096/0.4264, allocations: 59.91 kB / 454.3 MB, free: 9.137 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001038/0.4274, allocations: 337.6 kB / 454.7 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.075e-05/0.4275, allocations: 13.75 kB / 454.7 MB, free: 8.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00189/0.4294, allocations: 1.312 MB / 456 MB, free: 7.426 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.4294, allocations: 0 / 456 MB, free: 7.426 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002959/0.4324, allocations: 0.8776 MB / 456.9 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003354/0.4328, allocations: 148.7 kB / 457 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000132/0.433, allocations: 8 kB / 457 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006388/0.4336, allocations: 51.95 kB / 457.1 MB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002982/0.4339, allocations: 99.78 kB / 457.2 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.693e-05/0.434, allocations: 31.88 kB / 457.2 MB, free: 6.129 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001987/0.4342, allocations: 144.5 kB / 457.3 MB, free: 5.988 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006537/0.4349, allocations: 84 kB / 457.4 MB, free: 5.906 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.0003429/0.4352, allocations: 142 kB / 457.6 MB, free: 5.758 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.4367, allocations: 481.4 kB / 458 MB, free: 5.273 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4368, allocations: 0 / 458 MB, free: 5.273 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008337/0.4376, allocations: 252.7 kB / 458.3 MB, free: 5.027 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006366/0.4383, allocations: 29.62 kB / 458.3 MB, free: 5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.4408, allocations: 0.7298 MB / 459 MB, free: 4.223 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005676/0.4415, allocations: 0.8109 MB / 459.8 MB, free: 3.387 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.4415, allocations: 4 kB / 459.8 MB, free: 3.383 MB / 346.7 MB Notification: Performance of Templates: time 0.01419/0.4557, allocations: 6.533 MB / 466.4 MB, free: 12.89 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