Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009707/0.0009707, allocations: 175.7 kB / 17.03 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.143/1.143, allocations: 223.3 MB / 241 MB, free: 10.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006756/0.0006756, allocations: 91.34 kB / 292.2 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002327/0.0002327, allocations: 7.938 kB / 351.8 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1856, allocations: 50.4 MB / 402.2 MB, free: 32.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.001544/0.1872, allocations: 1.806 MB / 404 MB, free: 30.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007384/0.188, allocations: 0.6507 MB / 404.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.268e-05/0.1881, allocations: 3.281 kB / 404.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.1882, allocations: 23.78 kB / 404.7 MB, free: 30.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001138/0.1883, allocations: 67.53 kB / 404.7 MB, free: 29.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.1885, allocations: 71.84 kB / 404.8 MB, free: 29.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001631/0.1887, allocations: 247.5 kB / 405.1 MB, free: 29.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.1888, allocations: 49.73 kB / 405.1 MB, free: 29.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.1889, allocations: 110.1 kB / 405.2 MB, free: 29.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.1891, allocations: 107.6 kB / 405.3 MB, free: 29.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.771e-05/0.1891, allocations: 12 kB / 405.3 MB, free: 29.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.957e-05/0.1892, allocations: 55.95 kB / 405.4 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.257e-05/0.1893, allocations: 35.84 kB / 405.4 MB, free: 29.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.516e-05/0.1893, allocations: 61.58 kB / 405.5 MB, free: 29.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.1895, allocations: 193.1 kB / 405.7 MB, free: 29.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1895, allocations: 3.281 kB / 405.7 MB, free: 29.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1895, allocations: 0 / 405.7 MB, free: 29.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1895, allocations: 0 / 405.7 MB, free: 29.05 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.0007196/0.1903, allocations: 0.5298 MB / 406.2 MB, free: 28.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.643e-05/0.1903, allocations: 12.03 kB / 406.2 MB, free: 28.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.85e-05/0.1903, allocations: 23.77 kB / 406.2 MB, free: 28.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.1905, allocations: 238.6 kB / 406.5 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.1905, allocations: 23.94 kB / 406.5 MB, free: 28.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.464e-05/0.1906, allocations: 16 kB / 406.5 MB, free: 28.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003867/0.191, allocations: 243.1 kB / 406.7 MB, free: 27.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.191, allocations: 0 / 406.7 MB, free: 27.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.191, allocations: 8 kB / 406.8 MB, free: 27.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.191, allocations: 12 kB / 406.8 MB, free: 27.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004105/0.1915, allocations: 203.8 kB / 407 MB, free: 27.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007545/0.1922, allocations: 0.6759 MB / 407.6 MB, free: 26.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004818/0.1927, allocations: 218.5 kB / 407.9 MB, free: 26.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002148/0.1929, allocations: 105.4 kB / 408 MB, free: 26.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.193, allocations: 7.984 kB / 408 MB, free: 26.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003836/0.1934, allocations: 173.3 kB / 408.1 MB, free: 26.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.1934, allocations: 4 kB / 408.1 MB, free: 26.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.002117/0.1955, allocations: 1.212 MB / 409.4 MB, free: 25.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.187e-05/0.1955, allocations: 51.41 kB / 409.4 MB, free: 25.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.1957, allocations: 195.9 kB / 409.6 MB, free: 24.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.1957, allocations: 33.64 kB / 409.6 MB, free: 24.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.888e-05/0.1957, allocations: 144.3 kB / 409.8 MB, free: 24.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.383e-05/0.1958, allocations: 82.8 kB / 409.8 MB, free: 24.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.359e-05/0.1958, allocations: 8 kB / 409.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.514e-05/0.1959, allocations: 334.8 kB / 410.2 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.1961, allocations: 112.3 kB / 410.3 MB, free: 24.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.1963, allocations: 156.2 kB / 410.4 MB, free: 23.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/0.1966, allocations: 135.1 kB / 410.6 MB, free: 23.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.1966, allocations: 0 / 410.6 MB, free: 23.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006726/0.1973, allocations: 414.2 kB / 411 MB, free: 23.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.1973, allocations: 33.7 kB / 411 MB, free: 23.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1973, allocations: 0 / 411 MB, free: 23.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001945/0.1975, allocations: 72.8 kB / 411.1 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.1977, allocations: 55.91 kB / 411.1 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003057/0.198, allocations: 0.6225 MB / 411.8 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.1983, allocations: 43.95 kB / 411.8 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.1983, allocations: 12 kB / 411.8 MB, free: 22.5 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 9.487e-05/0.1984, allocations: 150 kB / 412 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.1984, allocations: 15.81 kB / 412 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.28e-05/0.1985, allocations: 25.86 kB / 412 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1985, allocations: 4 kB / 412 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1985, allocations: 3.953 kB / 412 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1985, allocations: 0 / 412 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008468/0.1994, allocations: 0.6916 MB / 412.7 MB, free: 21.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1994, allocations: 0 / 412.7 MB, free: 21.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001895/0.1996, allocations: 51.91 kB / 412.8 MB, free: 21.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001286/0.1997, allocations: 72.83 kB / 412.8 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.1997, allocations: 8 kB / 412.8 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002598/0.2, allocations: 0.6031 MB / 413.4 MB, free: 20.78 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2, allocations: 4.062 kB / 413.4 MB, free: 20.78 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007697/0.2008, allocations: 0.5272 MB / 414 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.704e-05/0.2009, allocations: 112.9 kB / 414.1 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.376e-05/0.2009, allocations: 8 kB / 414.1 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.2011, allocations: 39.97 kB / 414.1 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.342e-05/0.2012, allocations: 43.88 kB / 414.2 MB, free: 20.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.2013, allocations: 11.98 kB / 414.2 MB, free: 20 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.712e-05/0.2013, allocations: 135.2 kB / 414.3 MB, free: 19.87 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2013, allocations: 0 / 414.3 MB, free: 19.87 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000305/0.2016, allocations: 75.98 kB / 414.4 MB, free: 19.79 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001468/0.2018, allocations: 123.2 kB / 414.5 MB, free: 19.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006122/0.2024, allocations: 343.2 kB / 414.8 MB, free: 19.31 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2024, allocations: 4 kB / 414.8 MB, free: 19.31 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.2027, allocations: 139.8 kB / 415 MB, free: 19.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.2031, allocations: 43.2 kB / 415 MB, free: 19.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.2041, allocations: 0.8148 MB / 415.8 MB, free: 18.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.2042, allocations: 0.7403 MB / 416.6 MB, free: 17.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.77e-05/0.2043, allocations: 23.42 kB / 416.6 MB, free: 17.5 MB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.2043, allocations: 0 / 416.6 MB, free: 17.5 MB / 298.7 MB Notification: Performance of Templates: time 0.004132/0.2085, allocations: 3.75 MB / 420.4 MB, free: 13.76 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/jenkins1/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