Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001628/0.001628, allocations: 113.3 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 247.1 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002845/0.002845, allocations: 58.62 kB / 307.1 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1586, allocations: 50.53 MB / 357.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004468/0.1631, allocations: 2.613 MB / 360.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.1644, allocations: 0.5772 MB / 360.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.1645, allocations: 4 kB / 360.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003431/0.1649, allocations: 51.62 kB / 360.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.1653, allocations: 115.4 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.1656, allocations: 147.8 kB / 361.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005998/0.1662, allocations: 0.5108 MB / 361.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.1664, allocations: 71.83 kB / 361.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002913/0.1667, allocations: 231.3 kB / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000404/0.1671, allocations: 255.1 kB / 362.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.384e-05/0.1672, allocations: 43.98 kB / 362.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002124/0.1674, allocations: 91.98 kB / 362.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.1676, allocations: 115.6 kB / 362.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002111/0.1678, allocations: 195 kB / 362.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004667/0.1683, allocations: 383.4 kB / 363 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1683, allocations: 0 / 363 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1683, allocations: 0 / 363 MB, free: 9.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.1684, allocations: 4 kB / 363 MB, free: 9.008 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001427/0.1698, allocations: 0.7158 MB / 363.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.1698, allocations: 8.031 kB / 363.8 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001195/0.17, allocations: 44.45 kB / 363.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004245/0.1704, allocations: 287.6 kB / 364.1 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.1704, allocations: 29.03 kB / 364.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.075e-05/0.1705, allocations: 36.28 kB / 364.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008995/0.1714, allocations: 378.4 kB / 364.5 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.1715, allocations: 4.188 kB / 364.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.736e-05/0.1715, allocations: 11.94 kB / 364.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.1715, allocations: 8 kB / 364.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008577/0.1724, allocations: 390.4 kB / 364.9 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.1747, allocations: 1.127 MB / 366.1 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007044/0.1754, allocations: 326.6 kB / 366.4 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003927/0.1758, allocations: 196.7 kB / 366.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.848e-05/0.1759, allocations: 11.98 kB / 366.6 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.1759, allocations: 30.56 kB / 366.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 4.038e-06/0.176, allocations: 7.984 kB / 366.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.005052/0.181, allocations: 1.999 MB / 368.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/0.1811, allocations: 55.84 kB / 368.7 MB, free: 3.039 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.1815, allocations: 256.8 kB / 368.9 MB, free: 2.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.152e-05/0.1815, allocations: 41.7 kB / 369 MB, free: 2.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.1817, allocations: 152.8 kB / 369.1 MB, free: 2.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.1818, allocations: 161.8 kB / 369.3 MB, free: 2.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001779/0.182, allocations: 102.1 kB / 369.4 MB, free: 2.305 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.1822, allocations: 338.8 kB / 369.7 MB, free: 1.965 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004135/0.1826, allocations: 193 kB / 369.9 MB, free: 1.777 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004679/0.1831, allocations: 264.8 kB / 370.1 MB, free: 1.496 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006982/0.1838, allocations: 361.6 kB / 370.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.1838, allocations: 0 / 370.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00138/0.1852, allocations: 0.6144 MB / 371.1 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.1852, allocations: 7.984 kB / 371.1 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.1853, allocations: 4 kB / 371.1 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008472/0.1861, allocations: 341.6 kB / 371.5 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000283/0.1864, allocations: 67.91 kB / 371.5 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1689/0.3554, allocations: 1.356 MB / 372.9 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005388/0.356, allocations: 74.19 kB / 373 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.175e-05/0.356, allocations: 21.75 kB / 373 MB, free: 19.13 MB / 302.1 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 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002271/0.3563, allocations: 166.5 kB / 373.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.151e-05/0.3563, allocations: 33.75 kB / 373.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001156/0.3565, allocations: 53.06 kB / 373.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.3565, allocations: 4.766 kB / 373.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.3565, allocations: 5.25 kB / 373.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.3565, allocations: 4.25 kB / 373.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002846/0.3594, allocations: 1.34 MB / 374.6 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3594, allocations: 2.594 kB / 374.6 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002871/0.3597, allocations: 64.92 kB / 374.6 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006308/0.3603, allocations: 304.3 kB / 374.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.958e-05/0.3604, allocations: 18.52 kB / 375 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009713/0.3614, allocations: 1.32 MB / 376.3 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3614, allocations: 1.156 kB / 376.3 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.3632, allocations: 0.9183 MB / 377.2 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.3634, allocations: 161.7 kB / 377.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.718e-05/0.3635, allocations: 17.25 kB / 377.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.3638, allocations: 39.88 kB / 377.4 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000212/0.364, allocations: 87.06 kB / 377.5 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.387e-05/0.3641, allocations: 25.02 kB / 377.5 MB, free: 16.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.3642, allocations: 184.6 kB / 377.7 MB, free: 16.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3643, allocations: 0 / 377.7 MB, free: 16.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004429/0.3647, allocations: 100.4 kB / 377.8 MB, free: 16.71 MB / 302.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001314/0.366, allocations: 379.1 kB / 378.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.3672, allocations: 0.5119 MB / 378.7 MB, free: 16.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3672, allocations: 7.938 kB / 378.7 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005932/0.3678, allocations: 287 kB / 379 MB, free: 16.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005378/0.3684, allocations: 54.58 kB / 379 MB, free: 16.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.3707, allocations: 1.202 MB / 380.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000241/0.3709, allocations: 0.7907 MB / 381 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.371, allocations: 37.16 kB / 381.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.371, allocations: 0 / 381.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of Templates: time 0.01086/0.3819, allocations: 7.088 MB / 388.1 MB, free: 12.72 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches