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.001139/0.001139, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001176/0.001176, allocations: 192 kB / 18.63 MB, free: 4.375 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.366/1.366, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009821/0.0009822, allocations: 51.3 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09378/0.09478, allocations: 49.44 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00333/0.09813, allocations: 2.431 MB / 353.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009141/0.09907, allocations: 0.4914 MB / 354.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.09918, allocations: 4 kB / 354.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.09937, allocations: 55.52 kB / 354.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.09952, allocations: 75.28 kB / 354.6 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004382/0.09997, allocations: 195.5 kB / 354.7 MB, free: 448 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004604/0.1004, allocations: 495.2 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.1006, allocations: 76.41 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002059/0.1008, allocations: 207.4 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/0.1011, allocations: 239.2 kB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.975e-05/0.1012, allocations: 40 kB / 355.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.1013, allocations: 91.89 kB / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.1015, allocations: 99.7 kB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.1016, allocations: 179.2 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004996/0.1021, allocations: 462.5 kB / 356.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1022, allocations: 4 kB / 356.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.1022, allocations: 0 / 356.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.1022, allocations: 0 / 356.6 MB, free: 14.58 MB / 302.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.001247/0.1034, allocations: 0.6587 MB / 357.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.1035, allocations: 8.031 kB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.864e-05/0.1036, allocations: 40.56 kB / 357.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004394/0.104, allocations: 276.6 kB / 357.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.546e-05/0.1041, allocations: 28.94 kB / 357.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.89e-05/0.1041, allocations: 32.28 kB / 357.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000718/0.1049, allocations: 377.2 kB / 358 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1049, allocations: 192 / 358 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.115e-05/0.1049, allocations: 15.94 kB / 358 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.1049, allocations: 15.88 kB / 358 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007464/0.1057, allocations: 402 kB / 358.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.1076, allocations: 1.108 MB / 359.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000541/0.1081, allocations: 299.5 kB / 359.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003768/0.1085, allocations: 201.8 kB / 360 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.1086, allocations: 4 kB / 360 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.1086, allocations: 38.5 kB / 360.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 2.915e-06/0.1086, allocations: 0 / 360.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004398/0.113, allocations: 2.03 MB / 362.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.1131, allocations: 59.41 kB / 362.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.1133, allocations: 236.9 kB / 362.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.19e-05/0.1134, allocations: 41.69 kB / 362.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.697e-05/0.1135, allocations: 152.8 kB / 362.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.1136, allocations: 150 kB / 362.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.1138, allocations: 98.14 kB / 362.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1139, allocations: 342.8 kB / 363.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.1143, allocations: 213 kB / 363.4 MB, free: 7.438 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004054/0.1147, allocations: 284.8 kB / 363.6 MB, free: 7.137 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000595/0.1153, allocations: 373.7 kB / 364 MB, free: 6.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1153, allocations: 4 kB / 364 MB, free: 6.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001447/0.1168, allocations: 0.6963 MB / 364.7 MB, free: 6.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.1168, allocations: 4 kB / 364.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.1168, allocations: 4 kB / 364.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009416/0.1178, allocations: 493.5 kB / 365.2 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003492/0.1182, allocations: 71.84 kB / 365.3 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/0.1195, allocations: 1.394 MB / 366.7 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004309/0.12, allocations: 68.03 kB / 366.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.604e-05/0.12, allocations: 20 kB / 366.7 MB, free: 3.941 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.0002827/0.1203, allocations: 166.2 kB / 366.9 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.952e-05/0.1204, allocations: 35.56 kB / 366.9 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.1205, allocations: 43.31 kB / 367 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.1205, allocations: 4 kB / 367 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.1206, allocations: 0 / 367 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.1206, allocations: 3.984 kB / 367 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002623/0.1232, allocations: 1.356 MB / 368.3 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1232, allocations: 4.062 kB / 368.3 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002653/0.1235, allocations: 64.06 kB / 368.4 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007163/0.1242, allocations: 465.3 kB / 368.9 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.281e-05/0.1243, allocations: 19.97 kB / 368.9 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001141/0.1254, allocations: 1.339 MB / 370.2 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1254, allocations: 4.062 kB / 370.2 MB, free: 316 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1757/0.3012, allocations: 0.9353 MB / 371.2 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002388/0.3014, allocations: 150.5 kB / 371.3 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.258e-05/0.3015, allocations: 17.17 kB / 371.3 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003286/0.3019, allocations: 43.62 kB / 371.4 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/0.3021, allocations: 85.27 kB / 371.5 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.246e-05/0.3022, allocations: 20.19 kB / 371.5 MB, free: 25.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001789/0.3024, allocations: 172 kB / 371.6 MB, free: 25.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3024, allocations: 0 / 371.6 MB, free: 25.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005063/0.3029, allocations: 103.1 kB / 371.7 MB, free: 25.83 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.0002301/0.3031, allocations: 142.6 kB / 371.9 MB, free: 25.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001237/0.3044, allocations: 0.5165 MB / 372.4 MB, free: 25.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3044, allocations: 1.438 kB / 372.4 MB, free: 25.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006198/0.305, allocations: 292.9 kB / 372.7 MB, free: 25.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/0.3055, allocations: 49.56 kB / 372.7 MB, free: 25.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/0.3077, allocations: 0.979 MB / 373.7 MB, free: 25.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.308, allocations: 0.7785 MB / 374.5 MB, free: 24.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.3081, allocations: 32.09 kB / 374.5 MB, free: 24.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.177e-05/0.3082, allocations: 32.48 kB / 374.6 MB, free: 24.61 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3082, allocations: 4 kB / 374.6 MB, free: 24.6 MB / 302.1 MB Notification: Performance of Templates: time 0.01435/0.3226, allocations: 8.705 MB / 383.3 MB, free: 22.23 MB / 302.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches