Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008048/0.0008049, allocations: 183.3 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.232/1.232, allocations: 225.7 MB / 243.2 MB, free: 8.453 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007593/0.0007593, allocations: 96.41 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002358/0.0002358, allocations: 8 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.1864, allocations: 50.42 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.001749/0.1881, allocations: 2.043 MB / 406.6 MB, free: 29.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006899/0.1888, allocations: 0.5641 MB / 407.2 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.354e-05/0.189, allocations: 4.531 kB / 407.2 MB, free: 28.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.1891, allocations: 40.27 kB / 407.2 MB, free: 28.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.1892, allocations: 74.2 kB / 407.3 MB, free: 28.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003094/0.1895, allocations: 159.8 kB / 407.5 MB, free: 28.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002745/0.1898, allocations: 472.1 kB / 407.9 MB, free: 27.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.19, allocations: 63.2 kB / 408 MB, free: 27.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/0.1901, allocations: 188.2 kB / 408.2 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/0.1903, allocations: 219.2 kB / 408.4 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.303e-05/0.1904, allocations: 20 kB / 408.4 MB, free: 27.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001155/0.1905, allocations: 67.42 kB / 408.5 MB, free: 27.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.086e-05/0.1906, allocations: 79.72 kB / 408.5 MB, free: 27.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.1907, allocations: 192.8 kB / 408.7 MB, free: 27.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003083/0.191, allocations: 428.1 kB / 409.1 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.191, allocations: 0 / 409.1 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.191, allocations: 0 / 409.1 MB, free: 26.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.191, allocations: 0 / 409.1 MB, free: 26.71 MB / 298.7 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.0008428/0.1919, allocations: 0.6146 MB / 409.8 MB, free: 26.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.798e-05/0.1919, allocations: 16.03 kB / 409.8 MB, free: 26.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.793e-05/0.192, allocations: 32.56 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.1922, allocations: 288.5 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.1923, allocations: 20.94 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.441e-05/0.1923, allocations: 32.38 kB / 410.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005328/0.1929, allocations: 373.2 kB / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.1929, allocations: 4.172 kB / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.1929, allocations: 15.94 kB / 410.5 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.1929, allocations: 8 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006011/0.1935, allocations: 405.9 kB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.195, allocations: 1.139 MB / 412.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003864/0.1954, allocations: 303.5 kB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002736/0.1957, allocations: 193.8 kB / 412.6 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.324e-05/0.1957, allocations: 4 kB / 412.6 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.271e-05/0.1957, allocations: 42.5 kB / 412.6 MB, free: 23.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.432e-06/0.1957, allocations: 0 / 412.6 MB, free: 23.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.00348/0.1992, allocations: 2.108 MB / 414.7 MB, free: 20.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.131e-05/0.1992, allocations: 59.39 kB / 414.8 MB, free: 20.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.1994, allocations: 240.9 kB / 415 MB, free: 20.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.118e-05/0.1994, allocations: 37.7 kB / 415 MB, free: 20.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.1995, allocations: 156.8 kB / 415.2 MB, free: 20.31 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.339e-05/0.1996, allocations: 149.9 kB / 415.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.1996, allocations: 12 kB / 415.3 MB, free: 20.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.342e-05/0.1996, allocations: 338.8 kB / 415.7 MB, free: 19.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003123/0.2, allocations: 209 kB / 415.9 MB, free: 19.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003244/0.2003, allocations: 284.8 kB / 416.2 MB, free: 19.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004769/0.2008, allocations: 381.7 kB / 416.5 MB, free: 18.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2008, allocations: 0 / 416.5 MB, free: 18.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001106/0.2019, allocations: 0.7002 MB / 417.2 MB, free: 18.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.2019, allocations: 7.938 kB / 417.2 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.2019, allocations: 4 kB / 417.2 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006592/0.2026, allocations: 493.5 kB / 417.7 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.2028, allocations: 71.91 kB / 417.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007988/0.2036, allocations: 1.393 MB / 419.2 MB, free: 16.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003563/0.204, allocations: 95.98 kB / 419.3 MB, free: 16.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.508e-05/0.2041, allocations: 19.98 kB / 419.3 MB, free: 16.06 MB / 298.7 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 (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.0001249/0.2042, allocations: 157.8 kB / 419.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.309e-05/0.2043, allocations: 35.66 kB / 419.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.436e-05/0.2043, allocations: 47.3 kB / 419.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.2043, allocations: 4.062 kB / 419.5 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2043, allocations: 4 kB / 419.5 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2044, allocations: 3.984 kB / 419.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002077/0.2064, allocations: 1.383 MB / 420.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.2065, allocations: 4 kB / 420.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000243/0.2067, allocations: 59.91 kB / 421 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005369/0.2073, allocations: 465.5 kB / 421.4 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.553e-05/0.2073, allocations: 27.91 kB / 421.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007298/0.208, allocations: 1.335 MB / 422.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.208, allocations: 7.969 kB / 422.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.2094, allocations: 0.9395 MB / 423.8 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.2095, allocations: 152.7 kB / 423.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.187e-05/0.2096, allocations: 16 kB / 423.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000262/0.2099, allocations: 59.89 kB / 424 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.21, allocations: 79.84 kB / 424.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.2101, allocations: 19.98 kB / 424.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001018/0.2102, allocations: 172.4 kB / 424.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2102, allocations: 0 / 424.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003488/0.2105, allocations: 100 kB / 424.3 MB, free: 10.81 MB / 298.7 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.0001692/0.2107, allocations: 152 kB / 424.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008073/0.2115, allocations: 0.5145 MB / 425 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2115, allocations: 0 / 425 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004613/0.212, allocations: 288.1 kB / 425.3 MB, free: 9.863 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000443/0.2124, allocations: 56.28 kB / 425.3 MB, free: 9.809 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00176/0.2142, allocations: 1.222 MB / 426.6 MB, free: 8.547 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.2144, allocations: 0.7764 MB / 427.3 MB, free: 7.742 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.2145, allocations: 34.97 kB / 427.4 MB, free: 7.707 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.024e-05/0.2146, allocations: 23.44 kB / 427.4 MB, free: 7.684 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2146, allocations: 0 / 427.4 MB, free: 7.684 MB / 298.7 MB Notification: Performance of Templates: time 0.009408/0.224, allocations: 8.12 MB / 435.5 MB, free: 15.59 MB / 314.7 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