Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 81.73 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 145.3 kB / 23.93 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 318.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.072e-05/2.196e-05, allocations: 6.219 kB / 318.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002848/0.00287, allocations: 2.29 MB / 321.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008912/0.003761, allocations: 497.7 kB / 321.7 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.003878, allocations: 10.72 kB / 321.7 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001725/0.00405, allocations: 53.67 kB / 321.7 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001533/0.004204, allocations: 89.14 kB / 321.8 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000449/0.004653, allocations: 196 kB / 322 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004405/0.005093, allocations: 499.9 kB / 322.5 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.005216, allocations: 53.3 kB / 322.6 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003292/0.005545, allocations: 298.5 kB / 322.9 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.005836, allocations: 204 kB / 323.1 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.229e-05/0.005909, allocations: 38.22 kB / 323.1 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.006087, allocations: 86.31 kB / 323.2 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.006199, allocations: 99 kB / 323.3 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.00635, allocations: 135.3 kB / 323.4 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005602/0.00691, allocations: 0.5046 MB / 323.9 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.006914, allocations: 0 / 323.9 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.006914, allocations: 1.781 kB / 323.9 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.00692, allocations: 0 / 323.9 MB, free: 0.6914 MB / 286.1 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.001145/0.008065, allocations: 0.5916 MB / 324.5 MB, free: 272 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.008098, allocations: 11.17 kB / 324.5 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.526e-05/0.008183, allocations: 37.2 kB / 324.5 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003286/0.008512, allocations: 227.8 kB / 324.8 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.008541, allocations: 21.41 kB / 324.8 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.418e-05/0.008605, allocations: 30.25 kB / 324.8 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007769/0.009382, allocations: 379.5 kB / 325.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.009403, allocations: 10.84 kB / 325.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.627e-05/0.00945, allocations: 10.06 kB / 325.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.009462, allocations: 8.156 kB / 325.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000873/0.01034, allocations: 403.7 kB / 325.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.01234, allocations: 0.9474 MB / 326.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005579/0.0129, allocations: 275.6 kB / 326.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003848/0.01328, allocations: 189.6 kB / 327 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.681e-05/0.01332, allocations: 8.281 kB / 327 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.01336, allocations: 41.56 kB / 327.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.883e-06/0.01336, allocations: 0 / 327.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004951/0.01831, allocations: 1.724 MB / 328.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.01836, allocations: 56.19 kB / 328.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002913/0.01865, allocations: 232.7 kB / 329.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.791e-05/0.01872, allocations: 44.52 kB / 329.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.01883, allocations: 152.3 kB / 329.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.01899, allocations: 158 kB / 329.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002073/0.0192, allocations: 95.14 kB / 329.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.01938, allocations: 342.4 kB / 329.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000462/0.01984, allocations: 210.7 kB / 330 MB, free: 13.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005424/0.02038, allocations: 280.4 kB / 330.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000823/0.02121, allocations: 383.5 kB / 330.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.02121, allocations: 5.031 kB / 330.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001886/0.0231, allocations: 0.6945 MB / 331.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.02312, allocations: 5.828 kB / 331.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.02313, allocations: 2.094 kB / 331.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.02423, allocations: 495.5 kB / 331.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003273/0.02455, allocations: 79.5 kB / 332 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001572/0.02612, allocations: 1.393 MB / 333.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004733/0.0266, allocations: 71.16 kB / 333.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.62e-05/0.02664, allocations: 14.16 kB / 333.4 MB, free: 11.06 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 (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.0002568/0.0269, allocations: 176.7 kB / 333.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.68e-05/0.02699, allocations: 29.88 kB / 333.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.02711, allocations: 45.25 kB / 333.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.02712, allocations: 8.781 kB / 333.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.02713, allocations: 4 kB / 333.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.02714, allocations: 3.984 kB / 333.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002973/0.03011, allocations: 1.204 MB / 334.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.03012, allocations: 1.25 kB / 334.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003215/0.03044, allocations: 62.56 kB / 335 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000772/0.03121, allocations: 462.3 kB / 335.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.941e-05/0.03126, allocations: 21.03 kB / 335.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001332/0.03259, allocations: 1.338 MB / 336.8 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.03259, allocations: 2.781 kB / 336.8 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00201/0.0346, allocations: 0.9481 MB / 337.7 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.0348, allocations: 77.78 kB / 337.8 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.586e-05/0.03489, allocations: 16.38 kB / 337.8 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003506/0.03524, allocations: 43.33 kB / 337.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/0.03548, allocations: 90.83 kB / 338 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.054e-05/0.03553, allocations: 23.3 kB / 338 MB, free: 7.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001755/0.0357, allocations: 163.3 kB / 338.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.03571, allocations: 0 / 338.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005635/0.03627, allocations: 104.3 kB / 338.2 MB, free: 7.734 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002977/0.03657, allocations: 143.2 kB / 338.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.03776, allocations: 492.2 kB / 338.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.03776, allocations: 4 kB / 338.9 MB, free: 7.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000679/0.03844, allocations: 279.9 kB / 339.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005386/0.03898, allocations: 57.58 kB / 339.2 MB, free: 6.902 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002362/0.04134, allocations: 0.8709 MB / 340.1 MB, free: 5.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001867/0.04153, allocations: 169.8 kB / 340.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001387/0.04166, allocations: 38.89 kB / 340.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.909e-05/0.04176, allocations: 32.5 kB / 340.3 MB, free: 5.73 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.04176, allocations: 0 / 340.3 MB, free: 5.73 MB / 302.1 MB Notification: Performance of Templates: time 0.01392/0.05568, allocations: 7.275 MB / 347.6 MB, free: 14.53 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.5855118334293365]