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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 94.7 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 183.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002182/0.0002182, allocations: 5.562 kB / 300.7 MB, free: 6.371 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09081/0.09105, allocations: 50.43 MB / 351.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002217/0.09331, allocations: 1.965 MB / 353.1 MB, free: 9.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007512/0.09408, allocations: 0.4917 MB / 353.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.121e-05/0.09418, allocations: 0 / 353.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001129/0.0943, allocations: 31.77 kB / 353.6 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001626/0.09447, allocations: 99.72 kB / 353.7 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003391/0.09482, allocations: 139.7 kB / 353.9 MB, free: 9.121 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003202/0.09515, allocations: 300 kB / 354.2 MB, free: 8.828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.09529, allocations: 58.55 kB / 354.2 MB, free: 8.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.09548, allocations: 183.4 kB / 354.4 MB, free: 8.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.09573, allocations: 207.3 kB / 354.6 MB, free: 8.387 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.24e-05/0.09578, allocations: 20 kB / 354.6 MB, free: 8.367 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.09592, allocations: 63.89 kB / 354.7 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.331e-05/0.09601, allocations: 75.77 kB / 354.7 MB, free: 8.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.198e-05/0.09608, allocations: 77.52 kB / 354.8 MB, free: 8.148 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002974/0.09638, allocations: 319.2 kB / 355.1 MB, free: 7.836 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.09639, allocations: 0 / 355.1 MB, free: 7.836 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.0964, allocations: 0 / 355.1 MB, free: 7.836 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.09641, allocations: 7.938 kB / 355.1 MB, free: 7.828 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.001076/0.09749, allocations: 0.6236 MB / 355.8 MB, free: 7.156 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.09754, allocations: 16.03 kB / 355.8 MB, free: 7.141 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.303e-05/0.09762, allocations: 35.58 kB / 355.8 MB, free: 7.105 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.09792, allocations: 275.3 kB / 356.1 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.09796, allocations: 24.5 kB / 356.1 MB, free: 6.773 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-05/0.09803, allocations: 28 kB / 356.1 MB, free: 6.746 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006501/0.09869, allocations: 372.7 kB / 356.5 MB, free: 6.379 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.09872, allocations: 11.91 kB / 356.5 MB, free: 6.367 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.09876, allocations: 8 kB / 356.5 MB, free: 6.359 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.09878, allocations: 11.95 kB / 356.5 MB, free: 6.348 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007307/0.09952, allocations: 413.9 kB / 356.9 MB, free: 5.941 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.1014, allocations: 1.131 MB / 358.1 MB, free: 4.738 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004824/0.1018, allocations: 291.5 kB / 358.4 MB, free: 4.441 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.456e-05/0.1019, allocations: 12.27 kB / 358.4 MB, free: 4.43 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.1019, allocations: 35.22 kB / 358.4 MB, free: 4.387 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.713e-06/0.1019, allocations: 4 kB / 358.4 MB, free: 4.383 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004318/0.1063, allocations: 2.108 MB / 360.5 MB, free: 2.137 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.1063, allocations: 59.41 kB / 360.6 MB, free: 2.066 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.1065, allocations: 229 kB / 360.8 MB, free: 1.828 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.936e-05/0.1066, allocations: 41.69 kB / 360.8 MB, free: 1.781 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.663e-05/0.1067, allocations: 156.7 kB / 361 MB, free: 1.625 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.1068, allocations: 150 kB / 361.1 MB, free: 1.477 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.112e-05/0.1069, allocations: 12 kB / 361.1 MB, free: 1.465 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.107, allocations: 334.8 kB / 361.5 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003816/0.1074, allocations: 217 kB / 361.7 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/0.1078, allocations: 276.8 kB / 362 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/0.1081, allocations: 176.7 kB / 362.1 MB, free: 464 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1081, allocations: 0 / 362.1 MB, free: 464 kB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001407/0.1095, allocations: 0.6847 MB / 362.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.1096, allocations: 15.89 kB / 362.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1096, allocations: 3.984 kB / 362.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008525/0.1104, allocations: 493.6 kB / 363.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002814/0.1107, allocations: 75.89 kB / 363.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.1119, allocations: 1.394 MB / 364.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004554/0.1124, allocations: 92.11 kB / 364.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.553e-05/0.1124, allocations: 27.97 kB / 364.9 MB, free: 13.61 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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002248/0.1126, allocations: 165.5 kB / 365.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.899e-05/0.1127, allocations: 31.62 kB / 365.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.513e-05/0.1128, allocations: 51.3 kB / 365.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.1128, allocations: 4 kB / 365.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.1128, allocations: 0 / 365.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.1129, allocations: 15.88 kB / 365.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002652/0.1155, allocations: 1.372 MB / 366.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1155, allocations: 3.938 kB / 366.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002763/0.1158, allocations: 63.91 kB / 366.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006704/0.1165, allocations: 457.5 kB / 367 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.916e-05/0.1166, allocations: 19.98 kB / 367.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00107/0.1176, allocations: 1.339 MB / 368.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1176, allocations: 0 / 368.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.1193, allocations: 1.014 MB / 369.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/0.1195, allocations: 156.7 kB / 369.6 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.143e-05/0.1196, allocations: 16 kB / 369.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003114/0.1199, allocations: 51.95 kB / 369.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/0.1201, allocations: 103.7 kB / 369.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.1201, allocations: 19.98 kB / 369.8 MB, free: 8.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001451/0.1203, allocations: 168.5 kB / 369.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1203, allocations: 0 / 369.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000446/0.1208, allocations: 112 kB / 370 MB, free: 8.238 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002057/0.121, allocations: 127.2 kB / 370.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009657/0.1219, allocations: 0.5104 MB / 370.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.122, allocations: 3.938 kB / 370.7 MB, free: 7.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005633/0.1225, allocations: 304.2 kB / 371 MB, free: 7.297 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.1229, allocations: 48.55 kB / 371 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.1251, allocations: 1.163 MB / 372.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.1254, allocations: 0.7881 MB / 373 MB, free: 5.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001248/0.1255, allocations: 30.97 kB / 373 MB, free: 5.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.153e-05/0.1256, allocations: 27.44 kB / 373 MB, free: 5.172 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1256, allocations: 0 / 373 MB, free: 5.172 MB / 302.1 MB Notification: Performance of Templates: time 0.01132/0.1369, allocations: 7.885 MB / 380.9 MB, free: 13.32 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches