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.Friction.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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008967/0.0008967, allocations: 183.7 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.241/1.241, allocations: 225.7 MB / 243.2 MB, free: 10.25 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.0007967/0.0007968, allocations: 90.19 kB / 294.4 MB, free: 9.754 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002261/0.0002261, allocations: 8 kB / 354.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1902, allocations: 50.41 MB / 404.6 MB, free: 31.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002054/0.1923, allocations: 2.555 MB / 407.1 MB, free: 28.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.1936, allocations: 1.277 MB / 408.4 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.1937, allocations: 4 kB / 408.4 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002873/0.194, allocations: 67.47 kB / 408.5 MB, free: 27.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001375/0.1942, allocations: 99.19 kB / 408.6 MB, free: 27.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005659/0.1948, allocations: 367.4 kB / 408.9 MB, free: 26.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004187/0.1952, allocations: 0.7607 MB / 409.7 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.1953, allocations: 78.69 kB / 409.8 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.1956, allocations: 326.9 kB / 410.1 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008733/0.1965, allocations: 1.323 MB / 411.4 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.34e-05/0.1966, allocations: 36 kB / 411.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001598/0.1968, allocations: 79.89 kB / 411.5 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.1969, allocations: 204.2 kB / 411.7 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.1972, allocations: 339.8 kB / 412.1 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004883/0.1977, allocations: 0.8033 MB / 412.9 MB, free: 23.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1977, allocations: 0 / 412.9 MB, free: 23.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1977, allocations: 0 / 412.9 MB, free: 23.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1977, allocations: 4 kB / 412.9 MB, free: 23.02 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002745/0.2004, allocations: 1.313 MB / 414.2 MB, free: 21.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.2005, allocations: 8.031 kB / 414.2 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.2006, allocations: 80 kB / 414.3 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/0.2009, allocations: 415.5 kB / 414.7 MB, free: 21.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.591e-05/0.201, allocations: 33.36 kB / 414.7 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.553e-05/0.2011, allocations: 36.38 kB / 414.7 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.2024, allocations: 1.177 MB / 415.9 MB, free: 19.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.2025, allocations: 0 / 415.9 MB, free: 19.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.844e-05/0.2025, allocations: 16 kB / 415.9 MB, free: 19.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.2025, allocations: 8 kB / 415.9 MB, free: 19.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002006/0.2046, allocations: 1.787 MB / 417.7 MB, free: 18.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003104/0.2077, allocations: 2.557 MB / 420.3 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.2089, allocations: 0.9343 MB / 421.2 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008211/0.2097, allocations: 0.7318 MB / 421.9 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.686e-05/0.2098, allocations: 8 kB / 422 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001125/0.2109, allocations: 0.9084 MB / 422.9 MB, free: 12.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 2.504e-06/0.2109, allocations: 0 / 422.9 MB, free: 12.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.008591/0.2195, allocations: 6.035 MB / 428.9 MB, free: 6.598 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.698e-05/0.2196, allocations: 85.11 kB / 429 MB, free: 6.496 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008148/0.2204, allocations: 0.9102 MB / 429.9 MB, free: 5.578 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.756e-05/0.2205, allocations: 49.69 kB / 429.9 MB, free: 5.523 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.2206, allocations: 292.3 kB / 430.2 MB, free: 5.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.747e-05/0.2207, allocations: 165.9 kB / 430.4 MB, free: 5.066 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.232e-05/0.2208, allocations: 11.98 kB / 430.4 MB, free: 5.055 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.634e-05/0.2208, allocations: 382.8 kB / 430.8 MB, free: 4.672 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009338/0.2218, allocations: 0.8603 MB / 431.6 MB, free: 3.809 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009518/0.2227, allocations: 0.9519 MB / 432.6 MB, free: 2.828 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001502/0.2243, allocations: 1.498 MB / 434.1 MB, free: 1.301 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2243, allocations: 0 / 434.1 MB, free: 1.301 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002958/0.2272, allocations: 2.497 MB / 436.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.2273, allocations: 4 kB / 436.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.2273, allocations: 4 kB / 436.6 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001839/0.2291, allocations: 1.9 MB / 438.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004804/0.2296, allocations: 123.8 kB / 438.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006663/0.2363, allocations: 6.455 MB / 445.1 MB, free: 6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.2376, allocations: 303.7 kB / 445.4 MB, free: 5.703 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.717e-05/0.2377, allocations: 24 kB / 445.4 MB, free: 5.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000363/0.2381, allocations: 263.9 kB / 445.6 MB, free: 5.414 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.2382, allocations: 71.09 kB / 445.7 MB, free: 5.344 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001499/0.2383, allocations: 102.2 kB / 445.8 MB, free: 5.234 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.2383, allocations: 4 kB / 445.8 MB, free: 5.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2383, allocations: 0 / 445.8 MB, free: 5.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.2384, allocations: 3.984 kB / 445.8 MB, free: 5.227 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003626/0.242, allocations: 3.129 MB / 448.9 MB, free: 2.027 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.242, allocations: 0 / 448.9 MB, free: 2.027 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004491/0.2425, allocations: 92 kB / 449 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001677/0.2441, allocations: 1.873 MB / 450.9 MB, free: 56 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.664e-05/0.2442, allocations: 19.97 kB / 450.9 MB, free: 36 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005982/0.2502, allocations: 6.153 MB / 457.1 MB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.2502, allocations: 8.016 kB / 457.1 MB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004274/0.2545, allocations: 3.277 MB / 460.4 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002636/0.2548, allocations: 204.2 kB / 460.6 MB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.2549, allocations: 23.94 kB / 460.6 MB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.2564, allocations: 351.6 kB / 460.9 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001274/0.2577, allocations: 0.5498 MB / 461.5 MB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.757e-05/0.2578, allocations: 31.95 kB / 461.5 MB, free: 5.102 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005843/0.2584, allocations: 0.6708 MB / 462.2 MB, free: 4.434 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2584, allocations: 0 / 462.2 MB, free: 4.434 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006513/0.259, allocations: 184 kB / 462.4 MB, free: 4.254 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002436/0.2593, allocations: 156 kB / 462.5 MB, free: 4.094 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002611/0.2619, allocations: 1.949 MB / 464.5 MB, free: 2.113 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2619, allocations: 0 / 464.5 MB, free: 2.113 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.2634, allocations: 1.103 MB / 465.6 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005688/0.264, allocations: 70.84 kB / 465.6 MB, free: 0.918 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003691/0.2677, allocations: 2.361 MB / 468 MB, free: 14.52 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.2681, allocations: 0.9143 MB / 468.9 MB, free: 13.58 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002067/0.2683, allocations: 47.27 kB / 469 MB, free: 13.54 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.2685, allocations: 31.42 kB / 469 MB, free: 13.5 MB / 346.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2685, allocations: 0 / 469 MB, free: 13.5 MB / 346.7 MB Notification: Performance of Templates: time 0.02714/0.2956, allocations: 21.72 MB / 490.7 MB, free: 7.812 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches