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.OneWayClutchDisengaged.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.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009894/0.0009892, allocations: 183.2 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.201/1.201, allocations: 225.7 MB / 243.2 MB, free: 8.52 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.0007123/0.0007125, allocations: 94.19 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002319/0.000232, allocations: 7.938 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1814, allocations: 50.41 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.001619/0.1831, allocations: 1.853 MB / 406.4 MB, free: 29.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007913/0.1839, allocations: 0.7324 MB / 407.2 MB, free: 28.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.273e-05/0.184, allocations: 4 kB / 407.2 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.1841, allocations: 23.78 kB / 407.2 MB, free: 28.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001182/0.1842, allocations: 64.12 kB / 407.2 MB, free: 28.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002012/0.1845, allocations: 82.56 kB / 407.3 MB, free: 28.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001613/0.1846, allocations: 243.5 kB / 407.6 MB, free: 28.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.1847, allocations: 52.23 kB / 407.6 MB, free: 28.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.1848, allocations: 99.56 kB / 407.7 MB, free: 28.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.185, allocations: 108.8 kB / 407.8 MB, free: 28.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.185, allocations: 12 kB / 407.8 MB, free: 28.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.339e-05/0.1851, allocations: 59.89 kB / 407.9 MB, free: 27.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.943e-05/0.1852, allocations: 42.31 kB / 407.9 MB, free: 27.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.115e-05/0.1852, allocations: 117.2 kB / 408 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.1854, allocations: 264.5 kB / 408.3 MB, free: 27.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1854, allocations: 0 / 408.3 MB, free: 27.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1855, allocations: 0 / 408.3 MB, free: 27.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.1855, allocations: 0 / 408.3 MB, free: 27.56 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0005305/0.186, allocations: 493.1 kB / 408.8 MB, free: 27.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.509e-05/0.186, allocations: 8.031 kB / 408.8 MB, free: 27.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.92e-05/0.1861, allocations: 24.66 kB / 408.8 MB, free: 27.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001659/0.1862, allocations: 235.9 kB / 409 MB, free: 26.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.1863, allocations: 12.81 kB / 409.1 MB, free: 26.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.464e-05/0.1863, allocations: 36.22 kB / 409.1 MB, free: 26.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.1866, allocations: 222 kB / 409.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.1866, allocations: 12 kB / 409.3 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.1867, allocations: 4 kB / 409.3 MB, free: 26.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.1867, allocations: 4 kB / 409.3 MB, free: 26.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002568/0.1869, allocations: 169 kB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007849/0.1877, allocations: 0.7836 MB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000259/0.188, allocations: 134.5 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.1881, allocations: 72.83 kB / 410.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.1881, allocations: 4 kB / 410.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.058e-05/0.1881, allocations: 34.56 kB / 410.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 1.142e-06/0.1882, allocations: 0 / 410.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001371/0.1895, allocations: 1.017 MB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.1896, allocations: 51.41 kB / 411.6 MB, free: 23.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.1897, allocations: 203.2 kB / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.1897, allocations: 29.7 kB / 411.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.675e-05/0.1898, allocations: 144.2 kB / 412 MB, free: 23.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.65e-05/0.1898, allocations: 74.98 kB / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.968e-06/0.1898, allocations: 4 kB / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.521e-05/0.1899, allocations: 334.8 kB / 412.4 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.19, allocations: 75.97 kB / 412.4 MB, free: 23.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.1902, allocations: 123.6 kB / 412.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002216/0.1904, allocations: 163.2 kB / 412.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.1904, allocations: 3.984 kB / 412.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003807/0.1908, allocations: 294.8 kB / 413 MB, free: 22.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.1908, allocations: 4.312 kB / 413 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.1908, allocations: 7.938 kB / 413 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002475/0.1911, allocations: 76.84 kB / 413.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.1912, allocations: 35.92 kB / 413.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003046/0.1915, allocations: 0.6304 MB / 413.8 MB, free: 21.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.1917, allocations: 23.98 kB / 413.8 MB, free: 21.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.1917, allocations: 8 kB / 413.8 MB, free: 21.68 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 8.347e-05/0.1918, allocations: 147.4 kB / 413.9 MB, free: 21.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.326e-05/0.1919, allocations: 23.75 kB / 414 MB, free: 21.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.176e-05/0.1919, allocations: 21.88 kB / 414 MB, free: 21.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.1919, allocations: 7.938 kB / 414 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.1919, allocations: 0 / 414 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.1919, allocations: 3.984 kB / 414 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000604/0.1925, allocations: 0.5983 MB / 414.6 MB, free: 20.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1926, allocations: 0 / 414.6 MB, free: 20.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.1927, allocations: 31.98 kB / 414.6 MB, free: 20.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001375/0.1929, allocations: 68.75 kB / 414.7 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.1929, allocations: 12.06 kB / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002695/0.1932, allocations: 0.611 MB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1932, allocations: 3.984 kB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004576/0.1936, allocations: 430.9 kB / 415.7 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.831e-05/0.1937, allocations: 104.9 kB / 415.8 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.018e-05/0.1937, allocations: 4 kB / 415.8 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.1939, allocations: 35.97 kB / 415.9 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.673e-05/0.194, allocations: 19.97 kB / 415.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.194, allocations: 8 kB / 415.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.507e-05/0.1941, allocations: 148.5 kB / 416 MB, free: 19.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.1941, allocations: 0 / 416 MB, free: 19.28 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002622/0.1944, allocations: 75.88 kB / 416.1 MB, free: 19.21 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001219/0.1945, allocations: 123.2 kB / 416.2 MB, free: 19.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003734/0.1949, allocations: 207.8 kB / 416.4 MB, free: 18.87 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1949, allocations: 0 / 416.4 MB, free: 18.87 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.1951, allocations: 99.89 kB / 416.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.1954, allocations: 47.95 kB / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00096/0.1964, allocations: 0.8304 MB / 417.4 MB, free: 17.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001195/0.1965, allocations: 0.7403 MB / 418.2 MB, free: 17.1 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.919e-05/0.1966, allocations: 17.95 kB / 418.2 MB, free: 17.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.397e-05/0.1966, allocations: 23.42 kB / 418.2 MB, free: 17.06 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.1966, allocations: 4 kB / 418.2 MB, free: 17.06 MB / 298.7 MB Notification: Performance of Templates: time 0.00471/0.2013, allocations: 2.886 MB / 421.1 MB, free: 14.2 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches