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.001054/0.001054, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001548/0.002601, allocations: 449.7 kB / 10.37 MB, free: 324 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.001111/0.001111, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001447/0.002559, allocations: 463.6 kB / 11.72 MB, free: 2.453 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.9923/0.9923, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09215/1.084, allocations: 53.87 MB / 243.7 MB, free: 14.9 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.212e-06/1.212e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.801e-05/1.923e-05, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002988/0.003007, allocations: 2.603 MB / 247.6 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000887/0.003894, allocations: 0.6003 MB / 248.2 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.004003, allocations: 11.94 kB / 248.2 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.00419, allocations: 67.42 kB / 248.3 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.004426, allocations: 134.9 kB / 248.4 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.004694, allocations: 171.7 kB / 248.6 MB, free: 10.06 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003583/0.005052, allocations: 0.5147 MB / 249.1 MB, free: 9.547 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.005278, allocations: 50.8 kB / 249.1 MB, free: 9.5 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002907/0.005569, allocations: 347.2 kB / 249.5 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.00579, allocations: 207.5 kB / 249.7 MB, free: 8.957 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.207e-05/0.005842, allocations: 40 kB / 249.7 MB, free: 8.918 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.005969, allocations: 91.92 kB / 249.8 MB, free: 8.828 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.006074, allocations: 79.73 kB / 249.9 MB, free: 8.75 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.78e-05/0.006172, allocations: 103.8 kB / 250 MB, free: 8.648 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003316/0.006503, allocations: 346.8 kB / 250.3 MB, free: 8.309 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.574e-05/0.006519, allocations: 3.984 kB / 250.3 MB, free: 8.305 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.00652, allocations: 4 kB / 250.3 MB, free: 8.301 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.006538, allocations: 0 / 250.3 MB, free: 8.301 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.0008235/0.007361, allocations: 0.667 MB / 251 MB, free: 7.605 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.007394, allocations: 16.62 kB / 251 MB, free: 7.59 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.325e-05/0.007467, allocations: 44.91 kB / 251.1 MB, free: 7.547 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.007717, allocations: 217.9 kB / 251.3 MB, free: 7.305 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.007746, allocations: 25.03 kB / 251.3 MB, free: 7.277 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.003e-05/0.007786, allocations: 28.38 kB / 251.3 MB, free: 7.25 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003133/0.008099, allocations: 274.4 kB / 251.6 MB, free: 6.977 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.008114, allocations: 4.141 kB / 251.6 MB, free: 6.973 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.403e-05/0.008138, allocations: 12.38 kB / 251.6 MB, free: 6.961 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.008147, allocations: 8.375 kB / 251.6 MB, free: 6.953 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002234/0.00837, allocations: 178.9 kB / 251.8 MB, free: 6.777 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008997/0.00927, allocations: 0.7092 MB / 252.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/0.009482, allocations: 183.2 kB / 252.7 MB, free: 5.836 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003589/0.009841, allocations: 92.72 kB / 252.8 MB, free: 5.742 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.00987, allocations: 8 kB / 252.8 MB, free: 5.734 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.009891, allocations: 34.56 kB / 252.8 MB, free: 5.691 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.202e-06/0.009892, allocations: 0 / 252.8 MB, free: 5.691 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.001817/0.01171, allocations: 1.192 MB / 254 MB, free: 4.441 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/0.01173, allocations: 59.91 kB / 254.1 MB, free: 4.371 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.01187, allocations: 222.7 kB / 254.3 MB, free: 4.141 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/0.0119, allocations: 49.69 kB / 254.3 MB, free: 4.086 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.543e-05/0.01196, allocations: 156.9 kB / 254.5 MB, free: 3.93 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.518e-05/0.01204, allocations: 174.6 kB / 254.7 MB, free: 3.758 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.024e-05/0.01213, allocations: 94.23 kB / 254.7 MB, free: 3.66 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.571e-05/0.01221, allocations: 342.8 kB / 255.1 MB, free: 3.316 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.01232, allocations: 77.28 kB / 255.2 MB, free: 3.242 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.01244, allocations: 157.8 kB / 255.3 MB, free: 3.059 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002025/0.01264, allocations: 237.5 kB / 255.5 MB, free: 2.805 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.01265, allocations: 3.938 kB / 255.5 MB, free: 2.801 MB / 250.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.000369/0.01301, allocations: 340 kB / 255.9 MB, free: 2.453 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.01303, allocations: 8 kB / 255.9 MB, free: 2.445 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.01303, allocations: 0 / 255.9 MB, free: 2.445 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003309/0.01336, allocations: 257.6 kB / 256.1 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.01352, allocations: 79.91 kB / 256.2 MB, free: 2.109 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005279/0.01405, allocations: 1.166 MB / 257.4 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.0142, allocations: 55.94 kB / 257.4 MB, free: 0.832 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.01421, allocations: 12 kB / 257.5 MB, free: 0.8203 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 0.0001032/0.01432, allocations: 141.5 kB / 257.6 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.002e-05/0.01437, allocations: 35.97 kB / 257.6 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.471e-05/0.01442, allocations: 47.61 kB / 257.7 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.01443, allocations: 8 kB / 257.7 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.01443, allocations: 0 / 257.7 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.01443, allocations: 7.922 kB / 257.7 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009892/0.01542, allocations: 0.7847 MB / 258.5 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.01543, allocations: 64 / 258.5 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.01558, allocations: 71.91 kB / 258.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.246e-05/0.01566, allocations: 51.78 kB / 258.6 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002705/0.01593, allocations: 241.7 kB / 258.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.01595, allocations: 15.98 kB / 258.8 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007282/0.01668, allocations: 1.169 MB / 260 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.01668, allocations: 0 / 260 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005571/0.01724, allocations: 0.5601 MB / 260.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.994e-05/0.01729, allocations: 19.94 kB / 260.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.01741, allocations: 31.97 kB / 260.6 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.01752, allocations: 87.78 kB / 260.7 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.01754, allocations: 15.97 kB / 260.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.504e-05/0.01759, allocations: 78.94 kB / 260.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01759, allocations: 0 / 260.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002299/0.01782, allocations: 100 kB / 260.9 MB, free: 13.21 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.001002/0.01882, allocations: 493 kB / 261.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003679/0.01919, allocations: 286.6 kB / 261.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/0.0192, allocations: 4 kB / 261.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00019/0.01939, allocations: 192.2 kB / 261.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.01968, allocations: 139.1 kB / 262 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.02124, allocations: 0.8123 MB / 262.8 MB, free: 11.44 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.725e-05/0.0213, allocations: 105.3 kB / 262.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.058e-05/0.02139, allocations: 39.03 kB / 262.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.02153, allocations: 115.3 kB / 263.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02153, allocations: 0 / 263.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of Templates: time 0.008822/0.03035, allocations: 8.157 MB / 271.2 MB, free: 3.086 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7798071587458253]