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") [: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.002532/0.002532, allocations: 176.1 kB / 8.475 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.649/1.649, allocations: 205.2 MB / 214.1 MB, free: 5.23 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008943/0.0008944, allocations: 79.34 kB / 262.1 MB, free: 5.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.288e-06/9.668e-06, allocations: 7.938 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 47.57 MB / 362.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.307/0.4091, allocations: 76.68 MB / 439.2 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.4094, allocations: 66.47 kB / 439.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01539/0.4248, allocations: 5.307 MB / 444.6 MB, free: 10.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.4249, allocations: 11.08 kB / 444.6 MB, free: 10.29 MB / 314.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.001052/0.4259, allocations: 0.5944 MB / 445.2 MB, free: 9.871 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.426, allocations: 7.812 kB / 445.2 MB, free: 9.871 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.985e-05/0.4261, allocations: 42.75 kB / 445.3 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003005/0.4264, allocations: 269 kB / 445.5 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.4264, allocations: 7.812 kB / 445.5 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.295e-05/0.4265, allocations: 23.16 kB / 445.5 MB, free: 9.621 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005768/0.4271, allocations: 329.3 kB / 445.9 MB, free: 9.621 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004986/0.4276, allocations: 314.6 kB / 446.2 MB, free: 9.555 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.4276, allocations: 0 / 446.2 MB, free: 9.555 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.676e-05/0.4276, allocations: 0 / 446.2 MB, free: 9.555 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.4277, allocations: 11.81 kB / 446.2 MB, free: 9.551 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00191/0.4296, allocations: 1.083 MB / 447.3 MB, free: 8.91 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.4299, allocations: 229 kB / 447.5 MB, free: 8.875 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.4301, allocations: 170.8 kB / 447.7 MB, free: 8.859 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.962e-05/0.4302, allocations: 7.844 kB / 447.7 MB, free: 8.855 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.839e-05/0.4302, allocations: 42.25 kB / 447.7 MB, free: 8.812 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 2.124e-06/0.4302, allocations: 0 / 447.7 MB, free: 8.812 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.002852/0.4331, allocations: 1.349 MB / 449.1 MB, free: 8.129 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.792e-05/0.4331, allocations: 59.69 kB / 449.1 MB, free: 8.062 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.4333, allocations: 169.7 kB / 449.3 MB, free: 7.957 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.759e-05/0.4333, allocations: 37.38 kB / 449.3 MB, free: 7.922 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.991e-05/0.4334, allocations: 131.8 kB / 449.4 MB, free: 7.805 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.4335, allocations: 153.4 kB / 449.6 MB, free: 7.699 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.4335, allocations: 0 / 449.6 MB, free: 7.699 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.69e-05/0.4336, allocations: 342.2 kB / 449.9 MB, free: 7.375 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002369/0.4338, allocations: 165.1 kB / 450.1 MB, free: 7.367 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.4341, allocations: 242.5 kB / 450.3 MB, free: 7.285 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.4344, allocations: 138.6 kB / 450.5 MB, free: 7.262 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4344, allocations: 4 kB / 450.5 MB, free: 7.258 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001252/0.4357, allocations: 0.5827 MB / 451 MB, free: 7.113 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.4357, allocations: 7.812 kB / 451.1 MB, free: 7.113 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.4357, allocations: 4 kB / 451.1 MB, free: 7.109 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005828/0.4363, allocations: 370.5 kB / 451.4 MB, free: 7.016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.4366, allocations: 80.34 kB / 451.5 MB, free: 6.996 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001021/0.4376, allocations: 1.363 MB / 452.9 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004276/0.4381, allocations: 93.73 kB / 453 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.814e-05/0.4381, allocations: 23.02 kB / 453 MB, free: 5.875 MB / 314.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.0001631/0.4383, allocations: 125.5 kB / 453.1 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.935e-05/0.4384, allocations: 35.2 kB / 453.1 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001295/0.4397, allocations: 0.606 MB / 453.7 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.4397, allocations: 7.875 kB / 453.7 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4397, allocations: 0 / 453.7 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.4397, allocations: 3.984 kB / 453.8 MB, free: 5.531 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002207/0.4419, allocations: 1.227 MB / 455 MB, free: 4.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.4419, allocations: 0 / 455 MB, free: 4.938 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00027/0.4422, allocations: 62 kB / 455 MB, free: 4.926 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000486/0.4427, allocations: 333.6 kB / 455.4 MB, free: 4.836 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.287e-05/0.4428, allocations: 15.09 kB / 455.4 MB, free: 4.828 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009165/0.4437, allocations: 1.308 MB / 456.7 MB, free: 3.738 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.4437, allocations: 3.938 kB / 456.7 MB, free: 3.734 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001351/0.4451, allocations: 0.8758 MB / 457.6 MB, free: 3.352 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.4452, allocations: 147.5 kB / 457.7 MB, free: 3.227 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.507e-05/0.4453, allocations: 18.64 kB / 457.7 MB, free: 3.219 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003108/0.4456, allocations: 46.41 kB / 457.8 MB, free: 3.207 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.4458, allocations: 104.5 kB / 457.9 MB, free: 3.145 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.269e-05/0.4459, allocations: 22.88 kB / 457.9 MB, free: 3.137 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.797e-05/0.446, allocations: 147.1 kB / 458 MB, free: 3.051 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004526/0.4464, allocations: 84.22 kB / 458.1 MB, free: 3.047 MB / 314.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.0002833/0.4467, allocations: 144.3 kB / 458.3 MB, free: 18.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007766/0.4475, allocations: 488.9 kB / 458.7 MB, free: 18.83 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4475, allocations: 0 / 458.7 MB, free: 18.83 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000419/0.4479, allocations: 246.9 kB / 459 MB, free: 18.8 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.4483, allocations: 36.17 kB / 459 MB, free: 18.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.4497, allocations: 0.698 MB / 459.7 MB, free: 18.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004379/0.4501, allocations: 0.8197 MB / 460.5 MB, free: 17.59 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4501, allocations: 0 / 460.5 MB, free: 17.59 MB / 330.7 MB Notification: Performance of Templates: time 0.0135/0.4636, allocations: 7.49 MB / 468 MB, free: 13.77 MB / 330.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/jenkins/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