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.001086/0.001086, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001024/0.001024, allocations: 190 kB / 17.54 MB, free: 6.066 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.319/1.319, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009036/0.0009037, allocations: 43.2 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0834/0.08431, allocations: 49.45 MB / 349.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00335/0.0877, allocations: 2.476 MB / 352 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008338/0.08855, allocations: 495.2 kB / 352.5 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.08866, allocations: 4 kB / 352.5 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002045/0.08889, allocations: 35.7 kB / 352.6 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.08903, allocations: 71.45 kB / 352.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004163/0.08946, allocations: 179.7 kB / 352.8 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004347/0.0899, allocations: 491.1 kB / 353.3 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.09008, allocations: 68.56 kB / 353.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002266/0.09031, allocations: 223.3 kB / 353.6 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002817/0.0906, allocations: 231.2 kB / 353.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.834e-05/0.09067, allocations: 40 kB / 353.8 MB, free: 468 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001583/0.09083, allocations: 87.89 kB / 353.9 MB, free: 380 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.09094, allocations: 103.7 kB / 354 MB, free: 276 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.09111, allocations: 175.2 kB / 354.2 MB, free: 100 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004407/0.09155, allocations: 466.8 kB / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.09157, allocations: 0 / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.09158, allocations: 4 kB / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.09159, allocations: 0 / 354.7 MB, free: 15.64 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.001155/0.09275, allocations: 0.6588 MB / 355.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.09279, allocations: 12.03 kB / 355.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.363e-05/0.09288, allocations: 32.56 kB / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002896/0.09318, allocations: 284.6 kB / 355.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.003e-05/0.09321, allocations: 20.94 kB / 355.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.12e-05/0.09329, allocations: 32.28 kB / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006823/0.09398, allocations: 381.2 kB / 356.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.09401, allocations: 4.172 kB / 356.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.347e-05/0.09406, allocations: 19.88 kB / 356.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.09407, allocations: 8 kB / 356.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007534/0.09483, allocations: 405.9 kB / 356.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.09666, allocations: 1.111 MB / 357.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005134/0.09718, allocations: 307.5 kB / 357.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003446/0.09754, allocations: 193.4 kB / 358.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.169e-05/0.0976, allocations: 7.938 kB / 358.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.09763, allocations: 38.56 kB / 358.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.603e-06/0.09764, allocations: 0 / 358.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004439/0.1021, allocations: 2.021 MB / 360.2 MB, free: 9.812 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.1021, allocations: 59.39 kB / 360.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.1024, allocations: 240.9 kB / 360.5 MB, free: 9.492 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.878e-05/0.1024, allocations: 41.7 kB / 360.5 MB, free: 9.445 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.068e-05/0.1025, allocations: 152.8 kB / 360.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.1027, allocations: 146 kB / 360.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.1028, allocations: 98.14 kB / 360.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.103, allocations: 342.8 kB / 361.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/0.1034, allocations: 209 kB / 361.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004331/0.1038, allocations: 284.8 kB / 361.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006135/0.1045, allocations: 389.6 kB / 362.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1045, allocations: 0 / 362.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001376/0.1059, allocations: 0.7001 MB / 362.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1059, allocations: 10.81 kB / 362.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1059, allocations: 0 / 362.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008384/0.1067, allocations: 493.5 kB / 363.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002677/0.107, allocations: 75.91 kB / 363.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.1083, allocations: 1.386 MB / 364.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003951/0.1087, allocations: 72.02 kB / 364.8 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.1087, allocations: 19.98 kB / 364.8 MB, free: 4.984 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.0001961/0.1089, allocations: 157.6 kB / 365 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.767e-05/0.109, allocations: 35.56 kB / 365 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.1091, allocations: 51.3 kB / 365.1 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.1091, allocations: 4 kB / 365.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1091, allocations: 0 / 365.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.1092, allocations: 7.984 kB / 365.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.1119, allocations: 1.341 MB / 366.4 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.1119, allocations: 0 / 366.4 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.1122, allocations: 63.91 kB / 366.5 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007557/0.113, allocations: 469.5 kB / 366.9 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.726e-05/0.113, allocations: 23.91 kB / 367 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.1142, allocations: 1.339 MB / 368.3 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1142, allocations: 0 / 368.3 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.116, allocations: 0.943 MB / 369.2 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.1162, allocations: 156.7 kB / 369.4 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.117e-05/0.1163, allocations: 19.94 kB / 369.4 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002897/0.1166, allocations: 43.89 kB / 369.5 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.1167, allocations: 79.86 kB / 369.5 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.191e-05/0.1168, allocations: 19.98 kB / 369.6 MB, free: 48 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.1498/0.2666, allocations: 170.4 kB / 369.7 MB, free: 26.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.2666, allocations: 1.062 kB / 369.7 MB, free: 26.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00064/0.2672, allocations: 103.5 kB / 369.8 MB, free: 26.2 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.0002463/0.2675, allocations: 136 kB / 370 MB, free: 26.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.2687, allocations: 0.5275 MB / 370.5 MB, free: 26.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.2688, allocations: 2.156 kB / 370.5 MB, free: 26.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000627/0.2694, allocations: 296.3 kB / 370.8 MB, free: 26.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005218/0.2699, allocations: 54.22 kB / 370.8 MB, free: 26.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.2721, allocations: 1.092 MB / 371.9 MB, free: 25.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.2723, allocations: 0.7785 MB / 372.7 MB, free: 24.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.2725, allocations: 32.48 kB / 372.7 MB, free: 24.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.241e-05/0.2725, allocations: 32.3 kB / 372.8 MB, free: 24.87 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2726, allocations: 0 / 372.8 MB, free: 24.87 MB / 302.1 MB Notification: Performance of Templates: time 0.01368/0.2862, allocations: 8.662 MB / 381.4 MB, free: 22.71 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 -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","/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) Reference file matches