Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009886/0.0009886, allocations: 197.3 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.204/1.204, allocations: 226.6 MB / 244.3 MB, free: 6.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007613/0.0007611, allocations: 101.4 kB / 296.4 MB, free: 6.773 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002118/0.0002118, allocations: 4 kB / 356.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1774, allocations: 51.3 MB / 407.5 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.0017/0.1791, allocations: 1.951 MB / 409.4 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007577/0.1799, allocations: 0.7759 MB / 410.2 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.55e-05/0.18, allocations: 3.938 kB / 410.2 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000176/0.1802, allocations: 39.77 kB / 410.3 MB, free: 25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001575/0.1804, allocations: 94.28 kB / 410.4 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001065/0.1805, allocations: 55.88 kB / 410.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001602/0.1806, allocations: 243.5 kB / 410.6 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.1808, allocations: 49.78 kB / 410.7 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.1809, allocations: 103.6 kB / 410.8 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.181, allocations: 111.5 kB / 410.9 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.692e-05/0.1811, allocations: 12.78 kB / 410.9 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.1812, allocations: 63.97 kB / 411 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.839e-05/0.1812, allocations: 45.06 kB / 411 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.058e-05/0.1813, allocations: 65.58 kB / 411.1 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.1814, allocations: 228.4 kB / 411.3 MB, free: 23.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1815, allocations: 0.6875 kB / 411.3 MB, free: 23.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1815, allocations: 0 / 411.3 MB, free: 23.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1815, allocations: 0.5625 kB / 411.3 MB, free: 23.94 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005581/0.182, allocations: 0.5065 MB / 411.8 MB, free: 23.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.554e-05/0.1821, allocations: 8.031 kB / 411.8 MB, free: 23.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.1822, allocations: 35.7 kB / 411.9 MB, free: 23.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.1824, allocations: 232.3 kB / 412.1 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.1824, allocations: 20.36 kB / 412.1 MB, free: 23.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.1825, allocations: 27.89 kB / 412.1 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.1828, allocations: 218.4 kB / 412.3 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.1828, allocations: 3.906 kB / 412.4 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.1828, allocations: 4 kB / 412.4 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1828, allocations: 8 kB / 412.4 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002583/0.1831, allocations: 155.3 kB / 412.5 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008036/0.1839, allocations: 0.7858 MB / 413.3 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.1842, allocations: 150.7 kB / 413.4 MB, free: 21.63 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.1843, allocations: 68.84 kB / 413.5 MB, free: 21.56 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.1844, allocations: 0 / 413.5 MB, free: 21.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.182e-05/0.1844, allocations: 38.55 kB / 413.6 MB, free: 21.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 9.92e-07/0.1844, allocations: 0 / 413.6 MB, free: 21.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001407/0.1858, allocations: 1.02 MB / 414.6 MB, free: 20.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.75e-05/0.1858, allocations: 67.28 kB / 414.6 MB, free: 20.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.186, allocations: 204.8 kB / 414.8 MB, free: 20.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.186, allocations: 33.7 kB / 414.9 MB, free: 20.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.499e-05/0.1861, allocations: 140.2 kB / 415 MB, free: 19.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.1861, allocations: 74.98 kB / 415.1 MB, free: 19.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.066e-05/0.1861, allocations: 8 kB / 415.1 MB, free: 19.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.993e-05/0.1862, allocations: 326.8 kB / 415.4 MB, free: 19.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.1863, allocations: 75.95 kB / 415.5 MB, free: 19.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.1864, allocations: 111.4 kB / 415.6 MB, free: 19.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.1866, allocations: 71.92 kB / 415.7 MB, free: 19.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.1866, allocations: 0 / 415.7 MB, free: 19.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003697/0.1869, allocations: 270 kB / 415.9 MB, free: 18.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.187, allocations: 11.98 kB / 415.9 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.187, allocations: 0 / 415.9 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001618/0.1871, allocations: 60.73 kB / 416 MB, free: 18.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.1873, allocations: 43.91 kB / 416 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.1884, allocations: 1.648 MB / 417.7 MB, free: 17.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.1886, allocations: 28.03 kB / 417.7 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.1887, allocations: 12 kB / 417.7 MB, free: 17.04 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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 8.407e-05/0.1887, allocations: 133.2 kB / 417.9 MB, free: 16.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.954e-05/0.1888, allocations: 23.77 kB / 417.9 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.813e-05/0.1888, allocations: 25.86 kB / 417.9 MB, free: 16.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1888, allocations: 4 kB / 417.9 MB, free: 16.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.1888, allocations: 0 / 417.9 MB, free: 16.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1889, allocations: 0 / 417.9 MB, free: 16.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006212/0.1895, allocations: 0.6179 MB / 418.5 MB, free: 16.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1895, allocations: 0 / 418.5 MB, free: 16.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.1896, allocations: 43.84 kB / 418.6 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000117/0.1898, allocations: 56.94 kB / 418.6 MB, free: 16.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1898, allocations: 7.984 kB / 418.6 MB, free: 16.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009378/0.1907, allocations: 1.55 MB / 420.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1908, allocations: 3.953 kB / 420.2 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004924/0.1913, allocations: 432.7 kB / 420.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.296e-05/0.1913, allocations: 108.9 kB / 420.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.1914, allocations: 8 kB / 420.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.1915, allocations: 31.97 kB / 420.8 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.1917, allocations: 67.88 kB / 420.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.1917, allocations: 8 kB / 420.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.817e-05/0.1918, allocations: 156.5 kB / 421 MB, free: 13.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1918, allocations: 0 / 421 MB, free: 13.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003087/0.1921, allocations: 71.98 kB / 421.1 MB, free: 13.46 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005892/0.1927, allocations: 364.6 kB / 421.4 MB, free: 13.22 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004356/0.1931, allocations: 326.4 kB / 421.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1932, allocations: 0 / 421.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002265/0.1934, allocations: 226.4 kB / 421.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.1937, allocations: 44.25 kB / 422 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009802/0.1947, allocations: 0.8658 MB / 422.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001241/0.1949, allocations: 0.7404 MB / 423.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.572e-05/0.1949, allocations: 27.42 kB / 423.6 MB, free: 10.92 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1949, allocations: 0 / 423.6 MB, free: 10.92 MB / 298.7 MB Notification: Performance of Templates: time 0.00417/0.1991, allocations: 3.944 MB / 427.6 MB, free: 6.98 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches