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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001599/0.001599, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001875/0.001875, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 59.38 kB / 306.9 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09818/0.09939, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003756/0.1032, allocations: 2.577 MB / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.1043, allocations: 0.5732 MB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.1045, allocations: 7.938 kB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002908/0.1048, allocations: 63.44 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003432/0.1051, allocations: 135.1 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003093/0.1055, allocations: 167.7 kB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004917/0.106, allocations: 0.5069 MB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.1061, allocations: 75.5 kB / 361.6 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003342/0.1065, allocations: 227.3 kB / 361.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003401/0.1068, allocations: 247.2 kB / 362 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.23e-05/0.1069, allocations: 44 kB / 362.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.1071, allocations: 91.98 kB / 362.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001516/0.1073, allocations: 115.6 kB / 362.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.1075, allocations: 195.1 kB / 362.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005079/0.108, allocations: 0.4909 MB / 362.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.108, allocations: 7.938 kB / 363 MB, free: 8.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.108, allocations: 0 / 363 MB, free: 8.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.1081, allocations: 0 / 363 MB, free: 8.57 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001394/0.1095, allocations: 0.7094 MB / 363.7 MB, free: 7.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.1095, allocations: 8.031 kB / 363.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.1096, allocations: 40.47 kB / 363.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003967/0.11, allocations: 299.6 kB / 364 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.1101, allocations: 21.03 kB / 364 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.037e-05/0.1101, allocations: 40.27 kB / 364.1 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007191/0.1109, allocations: 370.5 kB / 364.4 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.1109, allocations: 4.188 kB / 364.4 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.1109, allocations: 15.94 kB / 364.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.111, allocations: 8 kB / 364.5 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007964/0.1118, allocations: 386.4 kB / 364.8 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002158/0.1139, allocations: 1.135 MB / 366 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006149/0.1146, allocations: 335.5 kB / 366.3 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003649/0.1149, allocations: 192.8 kB / 366.5 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.614e-05/0.115, allocations: 4 kB / 366.5 MB, free: 4.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.115, allocations: 38.56 kB / 366.5 MB, free: 4.816 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.613e-06/0.115, allocations: 0 / 366.5 MB, free: 4.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004868/0.1199, allocations: 2.007 MB / 368.5 MB, free: 2.672 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.12, allocations: 55.84 kB / 368.6 MB, free: 2.605 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003291/0.1203, allocations: 252.9 kB / 368.8 MB, free: 2.344 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.247e-05/0.1204, allocations: 37.7 kB / 368.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.1205, allocations: 160.8 kB / 369 MB, free: 2.137 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.1206, allocations: 165.8 kB / 369.2 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.1208, allocations: 98.14 kB / 369.3 MB, free: 1.871 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1209, allocations: 342.8 kB / 369.6 MB, free: 1.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.1213, allocations: 189 kB / 369.8 MB, free: 1.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004416/0.1218, allocations: 268.8 kB / 370.1 MB, free: 1.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006542/0.1225, allocations: 357.6 kB / 370.4 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1225, allocations: 4 kB / 370.4 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001278/0.1237, allocations: 0.6105 MB / 371 MB, free: 56 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.1238, allocations: 4 kB / 371 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.1238, allocations: 4 kB / 371 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1701/0.2939, allocations: 344.3 kB / 371.4 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000353/0.2943, allocations: 73.77 kB / 371.4 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.2956, allocations: 1.361 MB / 372.8 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005102/0.2962, allocations: 68.47 kB / 372.9 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.214e-05/0.2962, allocations: 20.19 kB / 372.9 MB, free: 19.14 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 (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.0002158/0.2964, allocations: 166.8 kB / 373.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.2966, allocations: 37.75 kB / 373.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001225/0.2967, allocations: 59.73 kB / 373.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.006e-06/0.2967, allocations: 5.438 kB / 373.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.2967, allocations: 0.875 kB / 373.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.2967, allocations: 3.438 kB / 373.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002749/0.2995, allocations: 1.34 MB / 374.5 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.2995, allocations: 1.312 kB / 374.5 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.2998, allocations: 58.34 kB / 374.6 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000575/0.3004, allocations: 309.8 kB / 374.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.255e-05/0.3004, allocations: 23.61 kB / 374.9 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001029/0.3015, allocations: 1.312 MB / 376.2 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3015, allocations: 2.25 kB / 376.2 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.303, allocations: 0.9225 MB / 377.1 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.3032, allocations: 153.5 kB / 377.3 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.661e-05/0.3033, allocations: 24.73 kB / 377.3 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003113/0.3036, allocations: 38.31 kB / 377.3 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.3038, allocations: 94 kB / 377.4 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/0.3038, allocations: 21.81 kB / 377.4 MB, free: 16.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001534/0.304, allocations: 183 kB / 377.6 MB, free: 16.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.304, allocations: 0 / 377.6 MB, free: 16.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004083/0.3044, allocations: 99.67 kB / 377.7 MB, free: 16.54 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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007693/0.3052, allocations: 364.6 kB / 378.1 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.3062, allocations: 0.5143 MB / 378.6 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3062, allocations: 0 / 378.6 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005615/0.3068, allocations: 293 kB / 378.9 MB, free: 16.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.3073, allocations: 66 kB / 378.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.3095, allocations: 1.054 MB / 380 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/0.3097, allocations: 0.7905 MB / 380.8 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.3098, allocations: 35.75 kB / 380.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.481e-05/0.3099, allocations: 37.19 kB / 380.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3099, allocations: 0 / 380.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of Templates: time 0.01317/0.3231, allocations: 8.575 MB / 389.4 MB, free: 12.03 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches