Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000964/0.0009641, allocations: 179.6 kB / 16.71 MB, free: 5.09 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.209/1.209, allocations: 225.7 MB / 243.2 MB, free: 8.449 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.0007194/0.0007193, allocations: 97.66 kB / 294.4 MB, free: 9.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002387/0.0002387, allocations: 12 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.1879, allocations: 50.41 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002091/0.1901, allocations: 2.392 MB / 407 MB, free: 28.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.1912, allocations: 0.9449 MB / 407.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.1914, allocations: 4 kB / 407.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.1915, allocations: 44.17 kB / 408 MB, free: 27.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001907/0.1917, allocations: 93.23 kB / 408 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003377/0.1921, allocations: 188.6 kB / 408.2 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003674/0.1924, allocations: 0.5392 MB / 408.8 MB, free: 27.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.1926, allocations: 97.58 kB / 408.9 MB, free: 27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001819/0.1928, allocations: 211.2 kB / 409.1 MB, free: 26.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.193, allocations: 257.8 kB / 409.3 MB, free: 26.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.861e-05/0.1931, allocations: 20 kB / 409.3 MB, free: 26.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001262/0.1932, allocations: 67.89 kB / 409.4 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.703e-05/0.1933, allocations: 99.62 kB / 409.5 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.1935, allocations: 216.7 kB / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003228/0.1938, allocations: 495.8 kB / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1938, allocations: 0 / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1938, allocations: 4 kB / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.1938, allocations: 4 kB / 410.2 MB, free: 25.65 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0009977/0.1948, allocations: 0.6864 MB / 410.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.889e-05/0.1949, allocations: 8.031 kB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.823e-05/0.1949, allocations: 44.47 kB / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00025/0.1952, allocations: 302.6 kB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.159e-05/0.1953, allocations: 33.31 kB / 411.3 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.059e-05/0.1953, allocations: 32.38 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006822/0.196, allocations: 454.6 kB / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.196, allocations: 3.906 kB / 411.8 MB, free: 24.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.1961, allocations: 16 kB / 411.8 MB, free: 24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.1961, allocations: 8 kB / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000765/0.1969, allocations: 471.7 kB / 412.2 MB, free: 23.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.1986, allocations: 1.289 MB / 413.5 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006768/0.1993, allocations: 380.8 kB / 413.9 MB, free: 21.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003886/0.1997, allocations: 249.5 kB / 414.1 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.1998, allocations: 12.38 kB / 414.2 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.665e-05/0.1998, allocations: 38.92 kB / 414.2 MB, free: 21.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.403e-06/0.1998, allocations: 0 / 414.2 MB, free: 21.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.004218/0.204, allocations: 2.371 MB / 416.6 MB, free: 18.97 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.811e-05/0.204, allocations: 55.84 kB / 416.6 MB, free: 18.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.2042, allocations: 242.6 kB / 416.9 MB, free: 18.67 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.2043, allocations: 41.7 kB / 416.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.943e-05/0.2043, allocations: 176.5 kB / 417.1 MB, free: 18.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.288e-05/0.2044, allocations: 165.8 kB / 417.2 MB, free: 18.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.764e-05/0.2044, allocations: 11.94 kB / 417.2 MB, free: 18.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.208e-05/0.2045, allocations: 342.8 kB / 417.6 MB, free: 17.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003974/0.2049, allocations: 245 kB / 417.8 MB, free: 17.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004095/0.2053, allocations: 307.1 kB / 418.1 MB, free: 17.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006409/0.206, allocations: 431.7 kB / 418.5 MB, free: 16.92 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.206, allocations: 0 / 418.5 MB, free: 16.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001274/0.2073, allocations: 0.7703 MB / 419.3 MB, free: 16.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.2073, allocations: 4 kB / 419.3 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2073, allocations: 4 kB / 419.3 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009024/0.2082, allocations: 0.5491 MB / 419.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/0.2085, allocations: 67.91 kB / 419.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/0.2102, allocations: 3.46 MB / 423.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004303/0.2107, allocations: 104.1 kB / 423.5 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/0.2107, allocations: 19.98 kB / 423.5 MB, free: 11.63 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0001467/0.2109, allocations: 177.6 kB / 423.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.747e-05/0.2109, allocations: 35.53 kB / 423.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001249/0.2122, allocations: 0.7404 MB / 424.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2122, allocations: 4 kB / 424.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.2122, allocations: 4 kB / 424.5 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2122, allocations: 3.938 kB / 424.5 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/0.2139, allocations: 1.267 MB / 425.7 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2139, allocations: 4 kB / 425.7 MB, free: 9.309 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.2142, allocations: 59.89 kB / 425.8 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007577/0.2149, allocations: 0.5294 MB / 426.3 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/0.215, allocations: 19.97 kB / 426.3 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/0.2167, allocations: 3.436 MB / 429.8 MB, free: 4.961 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2167, allocations: 0 / 429.8 MB, free: 4.961 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.2182, allocations: 1.051 MB / 430.8 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.2183, allocations: 156.7 kB / 431 MB, free: 3.715 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.41e-05/0.2184, allocations: 12 kB / 431 MB, free: 3.703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004267/0.2188, allocations: 111.8 kB / 431.1 MB, free: 3.594 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/0.219, allocations: 92.16 kB / 431.2 MB, free: 3.504 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-05/0.2191, allocations: 19.98 kB / 431.2 MB, free: 3.484 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001178/0.2192, allocations: 178 kB / 431.4 MB, free: 3.312 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2192, allocations: 0 / 431.4 MB, free: 3.312 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004043/0.2196, allocations: 124 kB / 431.5 MB, free: 3.191 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002083/0.2198, allocations: 144.3 kB / 431.7 MB, free: 3.039 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.221, allocations: 0.8215 MB / 432.5 MB, free: 2.191 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.221, allocations: 3.938 kB / 432.5 MB, free: 2.188 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00067/0.2217, allocations: 0.541 MB / 433 MB, free: 1.617 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.2221, allocations: 56.52 kB / 433.1 MB, free: 1.562 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.2237, allocations: 1.207 MB / 434.3 MB, free: 336 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.224, allocations: 0.7996 MB / 435.1 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001334/0.2241, allocations: 31.28 kB / 435.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.076e-05/0.2242, allocations: 23.44 kB / 435.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2242, allocations: 0 / 435.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of Templates: time 0.01304/0.2372, allocations: 9.273 MB / 444.4 MB, free: 6.207 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches