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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000691/0.000691, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009973/0.001688, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0006677/0.0006677, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000855/0.001523, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9544/0.9544, allocations: 177.5 MB / 190.1 MB, free: 4.785 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08286/1.037, allocations: 53.86 MB / 243.9 MB, free: 14.85 MB / 250.7 MB " [Timeout remaining time 179] 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=2000,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=2000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.602e-05/1.711e-05, allocations: 2.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002773/0.00279, allocations: 2.596 MB / 247.8 MB, free: 10.96 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006889/0.003479, allocations: 0.6042 MB / 248.4 MB, free: 10.35 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.125e-05/0.00356, allocations: 3.938 kB / 248.4 MB, free: 10.35 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.003715, allocations: 63.44 kB / 248.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.003884, allocations: 150.8 kB / 248.6 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002509/0.004135, allocations: 163.8 kB / 248.8 MB, free: 9.977 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003137/0.004449, allocations: 0.5146 MB / 249.3 MB, free: 9.461 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.757e-05/0.004546, allocations: 54.8 kB / 249.3 MB, free: 9.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.004801, allocations: 347.2 kB / 249.7 MB, free: 9.07 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.005005, allocations: 207.5 kB / 249.9 MB, free: 8.867 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.877e-05/0.005054, allocations: 40 kB / 249.9 MB, free: 8.828 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.005174, allocations: 95.92 kB / 250 MB, free: 8.734 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.159e-05/0.005266, allocations: 75.73 kB / 250.1 MB, free: 8.66 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.531e-05/0.005351, allocations: 103.8 kB / 250.2 MB, free: 8.559 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.005649, allocations: 354.8 kB / 250.5 MB, free: 8.211 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.005657, allocations: 0 / 250.5 MB, free: 8.211 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.005658, allocations: 0 / 250.5 MB, free: 8.211 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.545e-06/0.005665, allocations: 0 / 250.5 MB, free: 8.211 MB / 250.7 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.0006735/0.006339, allocations: 0.667 MB / 251.2 MB, free: 7.516 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.711e-05/0.006366, allocations: 8.625 kB / 251.2 MB, free: 7.508 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.766e-05/0.006433, allocations: 48.89 kB / 251.3 MB, free: 7.461 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/0.006643, allocations: 225.8 kB / 251.5 MB, free: 7.211 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.006669, allocations: 21.03 kB / 251.5 MB, free: 7.188 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.006711, allocations: 28.38 kB / 251.5 MB, free: 7.16 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002877/0.006999, allocations: 278.4 kB / 251.8 MB, free: 6.883 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.007013, allocations: 12.06 kB / 251.8 MB, free: 6.871 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.815e-05/0.007051, allocations: 12.38 kB / 251.8 MB, free: 6.859 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.00706, allocations: 8.375 kB / 251.8 MB, free: 6.852 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002569/0.007317, allocations: 179 kB / 252 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008512/0.008168, allocations: 0.6975 MB / 252.7 MB, free: 5.934 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/0.008375, allocations: 183.2 kB / 252.9 MB, free: 5.742 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.433e-05/0.008469, allocations: 88.73 kB / 253 MB, free: 5.652 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.22e-05/0.008501, allocations: 12 kB / 253 MB, free: 5.641 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.00852, allocations: 34.56 kB / 253 MB, free: 5.598 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.233e-06/0.008521, allocations: 0 / 253 MB, free: 5.598 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.001795/0.01032, allocations: 1.24 MB / 254.3 MB, free: 4.297 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.233e-05/0.01034, allocations: 55.91 kB / 254.3 MB, free: 4.23 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.01047, allocations: 226.7 kB / 254.5 MB, free: 3.992 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.0105, allocations: 37.7 kB / 254.6 MB, free: 3.949 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.449e-05/0.01056, allocations: 148.9 kB / 254.7 MB, free: 3.801 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.673e-05/0.01064, allocations: 178.5 kB / 254.9 MB, free: 3.625 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.586e-05/0.01074, allocations: 90.25 kB / 255 MB, free: 3.531 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.876e-05/0.01082, allocations: 350.7 kB / 255.3 MB, free: 3.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.01092, allocations: 77.28 kB / 255.4 MB, free: 3.105 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.01105, allocations: 165.8 kB / 255.6 MB, free: 2.918 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.01125, allocations: 233.4 kB / 255.8 MB, free: 2.664 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.01125, allocations: 4 kB / 255.8 MB, free: 2.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0003608/0.01161, allocations: 336 kB / 256.1 MB, free: 2.324 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.01162, allocations: 8 kB / 256.1 MB, free: 2.316 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.01163, allocations: 3.984 kB / 256.1 MB, free: 2.312 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000322/0.01195, allocations: 265.5 kB / 256.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.01209, allocations: 75.91 kB / 256.5 MB, free: 1.973 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005613/0.01265, allocations: 1.17 MB / 257.6 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.0128, allocations: 47.89 kB / 257.7 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.01282, allocations: 15.98 kB / 257.7 MB, free: 0.6836 MB / 250.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 (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 9.634e-05/0.01292, allocations: 145.6 kB / 257.8 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.273e-05/0.01297, allocations: 31.97 kB / 257.9 MB, free: 0.5 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.301e-05/0.01302, allocations: 55.61 kB / 257.9 MB, free: 452 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.01302, allocations: 4 kB / 257.9 MB, free: 448 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.01303, allocations: 0 / 257.9 MB, free: 448 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.01303, allocations: 7.984 kB / 257.9 MB, free: 440 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.0141, allocations: 0.7847 MB / 258.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.0141, allocations: 0 / 258.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001508/0.01425, allocations: 71.91 kB / 258.8 MB, free: 15.53 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.452e-05/0.01434, allocations: 47.78 kB / 258.8 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002894/0.01463, allocations: 237.7 kB / 259.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.01466, allocations: 19.97 kB / 259.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006885/0.01534, allocations: 1.165 MB / 260.3 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01535, allocations: 0 / 260.3 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005966/0.01594, allocations: 0.5595 MB / 260.8 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.71e-05/0.01599, allocations: 27.92 kB / 260.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.0161, allocations: 23.98 kB / 260.9 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.01621, allocations: 95.77 kB / 261 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/0.01623, allocations: 15.97 kB / 261 MB, free: 13.24 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.163e-05/0.01628, allocations: 78.88 kB / 261.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01628, allocations: 3.938 kB / 261.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002169/0.0165, allocations: 100 kB / 261.2 MB, free: 13.06 MB / 266.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 (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.0009091/0.01741, allocations: 497.7 kB / 261.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003492/0.01776, allocations: 299.1 kB / 261.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/0.01777, allocations: 4 kB / 261.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.01797, allocations: 208.4 kB / 262.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.01833, allocations: 454.7 kB / 262.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001527/0.01986, allocations: 0.8136 MB / 263.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.717e-05/0.01992, allocations: 105.3 kB / 263.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.793e-05/0.02, allocations: 43.08 kB / 263.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.02012, allocations: 103.3 kB / 263.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of SimCode: time 4.5e-07/0.02012, allocations: 0 / 263.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of Templates: time 0.01011/0.03023, allocations: 8.073 MB / 271.7 MB, free: 2.621 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.600750194862485]