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.OneWayClutch.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.OneWayClutch,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.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,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.OneWayClutch") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008674/0.0008674, 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.174/1.174, allocations: 225.7 MB / 243.2 MB, free: 8.5 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.0007023/0.0007023, allocations: 90.14 kB / 294.4 MB, free: 9.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002194/0.0002195, allocations: 7.938 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.1848, allocations: 50.42 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.001561/0.1864, allocations: 1.804 MB / 406.4 MB, free: 29.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008021/0.1872, allocations: 0.8303 MB / 407.2 MB, free: 28.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.879e-05/0.1873, allocations: 3.938 kB / 407.2 MB, free: 28.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.1874, allocations: 19.84 kB / 407.2 MB, free: 28.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00012/0.1875, allocations: 56.42 kB / 407.3 MB, free: 28.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.1878, allocations: 92.42 kB / 407.4 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001714/0.1879, allocations: 256.1 kB / 407.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.188, allocations: 59.17 kB / 407.7 MB, free: 28.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.1882, allocations: 103.6 kB / 407.8 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001251/0.1883, allocations: 107.5 kB / 407.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.1883, allocations: 12 kB / 407.9 MB, free: 27.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.163e-05/0.1884, allocations: 63.88 kB / 408 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.411e-05/0.1885, allocations: 35.84 kB / 408 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.181e-05/0.1886, allocations: 132.8 kB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.1888, allocations: 264.5 kB / 408.4 MB, free: 27.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1888, allocations: 0 / 408.4 MB, free: 27.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1888, allocations: 0 / 408.4 MB, free: 27.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.014e-06/0.1888, allocations: 0 / 408.4 MB, free: 27.46 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006747/0.1895, allocations: 0.5261 MB / 408.9 MB, free: 26.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.686e-05/0.1895, allocations: 12.03 kB / 408.9 MB, free: 26.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.351e-05/0.1896, allocations: 28.66 kB / 409 MB, free: 26.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.1898, allocations: 243.8 kB / 409.2 MB, free: 26.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.1898, allocations: 16.38 kB / 409.2 MB, free: 26.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.772e-05/0.1898, allocations: 20.36 kB / 409.2 MB, free: 26.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004035/0.1902, allocations: 239.5 kB / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1903, allocations: 4 kB / 409.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.1903, allocations: 15.98 kB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1903, allocations: 4 kB / 409.5 MB, free: 26.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003994/0.1907, allocations: 207.8 kB / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007212/0.1914, allocations: 0.6837 MB / 410.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000457/0.1919, allocations: 214.4 kB / 410.6 MB, free: 25.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.1921, allocations: 112.7 kB / 410.7 MB, free: 24.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/0.1921, allocations: 0 / 410.7 MB, free: 24.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003055/0.1925, allocations: 172.6 kB / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.1925, allocations: 0 / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001853/0.1943, allocations: 1.208 MB / 412.1 MB, free: 23.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.989e-05/0.1944, allocations: 55.41 kB / 412.1 MB, free: 23.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.1945, allocations: 188.3 kB / 412.3 MB, free: 23.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.1945, allocations: 29.7 kB / 412.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.34e-05/0.1946, allocations: 136.3 kB / 412.5 MB, free: 23.05 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.21e-05/0.1946, allocations: 94.73 kB / 412.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.407e-05/0.1946, allocations: 8 kB / 412.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.047e-05/0.1947, allocations: 334.8 kB / 412.9 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002249/0.1949, allocations: 112.3 kB / 413 MB, free: 22.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.1951, allocations: 156.2 kB / 413.2 MB, free: 22.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/0.1955, allocations: 271.7 kB / 413.4 MB, free: 22.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.1955, allocations: 0 / 413.4 MB, free: 22.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006479/0.1962, allocations: 404.9 kB / 413.8 MB, free: 21.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.1962, allocations: 33.64 kB / 413.9 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1962, allocations: 7.984 kB / 413.9 MB, free: 21.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/0.1964, allocations: 68.89 kB / 413.9 MB, free: 21.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.1966, allocations: 51.91 kB / 414 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002935/0.1969, allocations: 0.6225 MB / 414.6 MB, free: 20.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.1972, allocations: 43.97 kB / 414.6 MB, free: 20.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.1972, allocations: 12 kB / 414.7 MB, free: 20.78 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: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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.999e-05/0.1973, allocations: 148.4 kB / 414.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.273e-05/0.1973, allocations: 19.75 kB / 414.8 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.903e-05/0.1974, allocations: 29.88 kB / 414.8 MB, free: 20.58 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1974, allocations: 4 kB / 414.9 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1974, allocations: 4 kB / 414.9 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.1974, allocations: 3.984 kB / 414.9 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008445/0.1983, allocations: 0.6863 MB / 415.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1983, allocations: 0 / 415.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.1985, allocations: 47.91 kB / 415.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001312/0.1986, allocations: 72.75 kB / 415.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.1986, allocations: 8 kB / 415.7 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002588/0.1989, allocations: 0.6109 MB / 416.3 MB, free: 19.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1989, allocations: 3.938 kB / 416.3 MB, free: 19.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000757/0.1997, allocations: 0.5287 MB / 416.8 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.426e-05/0.1997, allocations: 112.8 kB / 416.9 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.449e-05/0.1998, allocations: 8.141 kB / 416.9 MB, free: 18.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.2, allocations: 35.97 kB / 417 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.84e-05/0.2001, allocations: 39.92 kB / 417 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.479e-05/0.2001, allocations: 8 kB / 417 MB, free: 18.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.407e-05/0.2002, allocations: 143.4 kB / 417.2 MB, free: 18.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.2002, allocations: 0 / 417.2 MB, free: 18.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002621/0.2005, allocations: 71.94 kB / 417.2 MB, free: 18.08 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001327/0.2006, allocations: 128.6 kB / 417.3 MB, free: 17.94 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000593/0.2012, allocations: 339.1 kB / 417.7 MB, free: 17.6 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2012, allocations: 0 / 417.7 MB, free: 17.6 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002838/0.2015, allocations: 148 kB / 417.8 MB, free: 17.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003245/0.2018, allocations: 47.78 kB / 417.9 MB, free: 17.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009944/0.2028, allocations: 0.8063 MB / 418.7 MB, free: 16.58 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/0.203, allocations: 0.744 MB / 419.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.373e-05/0.2031, allocations: 21.94 kB / 419.4 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.646e-05/0.2031, allocations: 27.42 kB / 419.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2031, allocations: 0 / 419.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of Templates: time 0.005192/0.2083, allocations: 3.404 MB / 422.9 MB, free: 12.38 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches