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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002202/0.002202, allocations: 99.53 kB / 21.73 MB, free: 2.691 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002409/0.002409, allocations: 166.9 kB / 25.03 MB, free: 8.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.394/1.394, allocations: 158.6 MB / 186.8 MB, free: 2.926 MB / 170.7 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.527e-06/3.527e-06, allocations: 0 / 250.3 MB, free: 7.859 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.153e-05/5.505e-05, allocations: 6.25 kB / 250.4 MB, free: 7.852 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.007838/0.007893, allocations: 2.397 MB / 252.8 MB, free: 5.434 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001963/0.009856, allocations: 0.4962 MB / 253.2 MB, free: 4.934 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.01006, allocations: 4 kB / 253.3 MB, free: 4.93 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003786/0.01044, allocations: 55.45 kB / 253.3 MB, free: 4.875 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003963/0.01083, allocations: 87.2 kB / 253.4 MB, free: 4.789 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009807/0.01181, allocations: 199.6 kB / 253.6 MB, free: 4.594 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.01285, allocations: 0.4911 MB / 254.1 MB, free: 4.102 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002377/0.01309, allocations: 48.8 kB / 254.1 MB, free: 4.051 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006834/0.01377, allocations: 299.5 kB / 254.4 MB, free: 3.758 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005643/0.01434, allocations: 199.5 kB / 254.6 MB, free: 3.562 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001332/0.01447, allocations: 40 kB / 254.6 MB, free: 3.523 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003104/0.01478, allocations: 83.95 kB / 254.7 MB, free: 3.441 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000228/0.01501, allocations: 103.7 kB / 254.8 MB, free: 3.34 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002966/0.0153, allocations: 127.7 kB / 255 MB, free: 3.215 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.01644, allocations: 0.5062 MB / 255.5 MB, free: 2.707 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.01645, allocations: 0 / 255.5 MB, free: 2.707 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.01645, allocations: 0 / 255.5 MB, free: 2.707 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.01646, allocations: 0 / 255.5 MB, free: 2.707 MB / 234.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.002169/0.01862, allocations: 0.6906 MB / 256.2 MB, free: 1.977 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.028e-05/0.01868, allocations: 8.031 kB / 256.2 MB, free: 1.969 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002558/0.01894, allocations: 68.69 kB / 256.2 MB, free: 1.902 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006445/0.01959, allocations: 225.1 kB / 256.4 MB, free: 1.656 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.368e-05/0.01965, allocations: 21.03 kB / 256.5 MB, free: 1.633 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.01977, allocations: 28.33 kB / 256.5 MB, free: 1.605 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.0211, allocations: 374.5 kB / 256.9 MB, free: 1.23 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.673e-05/0.02113, allocations: 192 / 256.9 MB, free: 1.23 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-05/0.0212, allocations: 16.36 kB / 256.9 MB, free: 1.215 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.02122, allocations: 8.375 kB / 256.9 MB, free: 1.207 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001598/0.02282, allocations: 394.2 kB / 257.3 MB, free: 0.8242 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003771/0.02659, allocations: 1.028 MB / 258.3 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.02768, allocations: 276.6 kB / 258.6 MB, free: 15.45 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007428/0.02842, allocations: 180.6 kB / 258.7 MB, free: 15.27 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.823e-05/0.0285, allocations: 8 kB / 258.8 MB, free: 15.27 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.383e-05/0.02857, allocations: 41.33 kB / 258.8 MB, free: 15.21 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 3.497e-06/0.02857, allocations: 0 / 258.8 MB, free: 15.21 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.008754/0.03732, allocations: 1.709 MB / 260.5 MB, free: 13.43 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.117e-05/0.03741, allocations: 55.41 kB / 260.6 MB, free: 13.37 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005898/0.03799, allocations: 316.2 kB / 260.9 MB, free: 13.04 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.03811, allocations: 41.7 kB / 260.9 MB, free: 13 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002583/0.03837, allocations: 207.7 kB / 261.1 MB, free: 12.79 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002916/0.03866, allocations: 174.7 kB / 261.3 MB, free: 12.62 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003608/0.03902, allocations: 107.8 kB / 261.4 MB, free: 12.5 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0005429/0.03956, allocations: 0.5235 MB / 261.9 MB, free: 11.97 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006814/0.04024, allocations: 200.9 kB / 262.1 MB, free: 11.77 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005743/0.04082, allocations: 322.8 kB / 262.4 MB, free: 11.42 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00077/0.04159, allocations: 413.3 kB / 262.8 MB, free: 10.98 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.04159, allocations: 3.938 kB / 262.8 MB, free: 10.98 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001702/0.04329, allocations: 0.7112 MB / 263.5 MB, free: 10.26 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.04331, allocations: 8.156 kB / 263.5 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.04332, allocations: 4 kB / 263.6 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.04433, allocations: 495 kB / 264 MB, free: 9.754 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.04464, allocations: 71.91 kB / 264.1 MB, free: 9.684 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00194/0.04658, allocations: 1.92 MB / 266 MB, free: 7.699 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003809/0.04696, allocations: 55.92 kB / 266.1 MB, free: 7.645 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.166e-05/0.04701, allocations: 20.06 kB / 266.1 MB, free: 7.625 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 (49): * Single equations (assignments): 47 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002917/0.0473, allocations: 204.4 kB / 266.3 MB, free: 7.414 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.04744, allocations: 47.81 kB / 266.3 MB, free: 7.367 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001434/0.04758, allocations: 43.31 kB / 266.4 MB, free: 7.328 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/0.0476, allocations: 11.94 kB / 266.4 MB, free: 7.316 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.0476, allocations: 0 / 266.4 MB, free: 7.316 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.04761, allocations: 3.984 kB / 266.4 MB, free: 7.312 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/0.05065, allocations: 1.292 MB / 267.7 MB, free: 5.949 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.05065, allocations: 4 kB / 267.7 MB, free: 5.945 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002939/0.05095, allocations: 59.91 kB / 267.8 MB, free: 5.887 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008334/0.05178, allocations: 451.2 kB / 268.2 MB, free: 5.438 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.515e-05/0.05184, allocations: 19.97 kB / 268.2 MB, free: 5.418 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001754/0.05359, allocations: 1.873 MB / 270.1 MB, free: 3.48 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.05359, allocations: 0 / 270.1 MB, free: 3.48 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/0.05568, allocations: 1.019 MB / 271.1 MB, free: 2.41 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002124/0.05589, allocations: 75.73 kB / 271.2 MB, free: 2.336 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.235e-05/0.05597, allocations: 20 kB / 271.2 MB, free: 2.316 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.05623, allocations: 23.97 kB / 271.2 MB, free: 2.293 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000223/0.05645, allocations: 107.6 kB / 271.3 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.745e-05/0.0565, allocations: 23.97 kB / 271.4 MB, free: 2.164 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002114/0.05671, allocations: 209.1 kB / 271.6 MB, free: 1.957 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05671, allocations: 0 / 271.6 MB, free: 1.957 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000486/0.05719, allocations: 104 kB / 271.7 MB, free: 1.855 MB / 250.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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002914/0.05749, allocations: 142 kB / 271.8 MB, free: 1.707 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.05867, allocations: 0.5131 MB / 272.3 MB, free: 1.195 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.05868, allocations: 0 / 272.3 MB, free: 1.195 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006076/0.05928, allocations: 276.9 kB / 272.6 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005648/0.05985, allocations: 89.3 kB / 272.7 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.06213, allocations: 0.8795 MB / 273.6 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.06234, allocations: 173.8 kB / 273.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001332/0.06247, allocations: 34.97 kB / 273.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.06258, allocations: 32.5 kB / 273.8 MB, free: 15.65 MB / 266.7 MB Notification: Performance of SimCode: time 8.02e-07/0.06258, allocations: 0 / 273.8 MB, free: 15.65 MB / 266.7 MB Notification: Performance of Templates: time 0.01559/0.07816, allocations: 7.29 MB / 281.1 MB, free: 8.383 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.745921449968591]