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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001074/0.001074, allocations: 196.3 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 226.5 MB / 244.7 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006854/0.0006854, allocations: 98.97 kB / 296.7 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002059/0.000206, allocations: 8 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1797, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00179/0.1816, allocations: 1.955 MB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007687/0.1824, allocations: 0.7811 MB / 410.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.711e-05/0.1825, allocations: 7.938 kB / 410.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001781/0.1826, allocations: 32.62 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001664/0.1828, allocations: 88.53 kB / 411 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001114/0.1829, allocations: 61.12 kB / 411 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001882/0.1831, allocations: 243.4 kB / 411.3 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.1833, allocations: 55.61 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.1834, allocations: 103.6 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.1836, allocations: 119.5 kB / 411.6 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.662e-05/0.1836, allocations: 8 kB / 411.6 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.1837, allocations: 59.97 kB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.772e-05/0.1838, allocations: 47.77 kB / 411.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.018e-05/0.1838, allocations: 125.2 kB / 411.8 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001807/0.184, allocations: 222.5 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.184, allocations: 0 / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1841, allocations: 0 / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.1841, allocations: 0 / 412 MB, free: 23.77 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.0005639/0.1846, allocations: 0.5068 MB / 412.5 MB, free: 23.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.1847, allocations: 8.031 kB / 412.5 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.253e-05/0.1847, allocations: 54.72 kB / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.1849, allocations: 40.66 kB / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/0.1851, allocations: 247.9 kB / 412.9 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.1851, allocations: 16.75 kB / 412.9 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.103e-05/0.1851, allocations: 24.38 kB / 412.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.1854, allocations: 218.5 kB / 413.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.1854, allocations: 3.906 kB / 413.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.1855, allocations: 8 kB / 413.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.1855, allocations: 4 kB / 413.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.1858, allocations: 159.3 kB / 413.3 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007869/0.1866, allocations: 0.7856 MB / 414.1 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.1868, allocations: 143.4 kB / 414.2 MB, free: 21.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.187, allocations: 75.42 kB / 414.3 MB, free: 21.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.187, allocations: 4 kB / 414.3 MB, free: 21.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.345e-05/0.187, allocations: 38.56 kB / 414.3 MB, free: 21.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.292e-06/0.187, allocations: 0 / 414.3 MB, free: 21.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001431/0.1885, allocations: 1.017 MB / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.894e-05/0.1885, allocations: 59.39 kB / 415.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.1886, allocations: 211.9 kB / 415.6 MB, free: 19.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.1887, allocations: 29.64 kB / 415.6 MB, free: 19.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.577e-05/0.1887, allocations: 144.1 kB / 415.8 MB, free: 19.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.585e-05/0.1888, allocations: 79 kB / 415.9 MB, free: 19.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-05/0.1888, allocations: 4 kB / 415.9 MB, free: 19.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.123e-05/0.1888, allocations: 330.8 kB / 416.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.189, allocations: 71.97 kB / 416.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.1891, allocations: 103.4 kB / 416.4 MB, free: 19.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.1893, allocations: 167.3 kB / 416.5 MB, free: 18.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.1893, allocations: 0 / 416.5 MB, free: 18.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000392/0.1897, allocations: 274.1 kB / 416.8 MB, free: 18.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.1897, allocations: 4 kB / 416.8 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1898, allocations: 0 / 416.8 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001682/0.1899, allocations: 60.81 kB / 416.8 MB, free: 18.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.1901, allocations: 39.91 kB / 416.9 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.1913, allocations: 1.643 MB / 418.5 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.1914, allocations: 28.02 kB / 418.6 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.1915, allocations: 15.98 kB / 418.6 MB, free: 16.69 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.58e-05/0.1916, allocations: 133.8 kB / 418.7 MB, free: 16.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.876e-05/0.1916, allocations: 23.72 kB / 418.7 MB, free: 16.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.07e-05/0.1916, allocations: 25.86 kB / 418.8 MB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1917, allocations: 7.938 kB / 418.8 MB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.1917, allocations: 0 / 418.8 MB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1917, allocations: 0 / 418.8 MB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006304/0.1923, allocations: 0.6102 MB / 419.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1923, allocations: 7.922 kB / 419.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.1925, allocations: 36.03 kB / 419.4 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001182/0.1926, allocations: 60.83 kB / 419.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.1926, allocations: 7.984 kB / 419.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009574/0.1936, allocations: 1.551 MB / 421 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1936, allocations: 3.984 kB / 421 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004987/0.1941, allocations: 440.6 kB / 421.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.47e-05/0.1942, allocations: 112.9 kB / 421.6 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.1942, allocations: 4 kB / 421.6 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.1944, allocations: 31.97 kB / 421.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.1945, allocations: 71.88 kB / 421.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.1945, allocations: 4 kB / 421.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001034/0.1947, allocations: 157.5 kB / 421.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1947, allocations: 0 / 421.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003366/0.195, allocations: 79.92 kB / 421.9 MB, free: 13.1 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.001192/0.1962, allocations: 1.212 MB / 423.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004593/0.1967, allocations: 318.5 kB / 423.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.1967, allocations: 7.938 kB / 423.4 MB, free: 11.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.1969, allocations: 226.5 kB / 423.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.1973, allocations: 40.05 kB / 423.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.1993, allocations: 1.683 MB / 425.4 MB, free: 9.625 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001269/0.1994, allocations: 0.7521 MB / 426.1 MB, free: 8.848 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.569e-05/0.1995, allocations: 71.41 kB / 426.2 MB, free: 8.777 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.1995, allocations: 0 / 426.2 MB, free: 8.777 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.125/3.324, allocations: 4.528 MB / 430.7 MB, free: 4.246 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/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) "" Variables in the reference:time,inertiaIn.phi,inertiaIn.w,oneWayClutch.phi_rel,oneWayClutch.w_rel Variables in the result:der(inertiaIn.phi),der(inertiaIn.w),der(inertiaOut.w),der(oneWayClutch.phi_rel),der(oneWayClutch.w_rel),der(torqueLoad.phi),inertiaIn.J,inertiaIn.a,inertiaIn.flange_a.phi,inertiaIn.flange_a.tau,inertiaIn.flange_b.phi,inertiaIn.flange_b.tau,inertiaIn.phi,inertiaIn.stateSelect,inertiaIn.w,inertiaOut.J,inertiaOut.a,inertiaOut.flange_a.phi,inertiaOut.flange_a.tau,inertiaOut.flange_b.phi,inertiaOut.flange_b.tau,inertiaOut.phi,inertiaOut.stateSelect,inertiaOut.w,oneWayClutch.a_rel,oneWayClutch.cgeo,oneWayClutch.f_normalized,oneWayClutch.flange_a.phi,oneWayClutch.flange_a.tau,oneWayClutch.flange_b.phi,oneWayClutch.flange_b.tau,oneWayClutch.fn,oneWayClutch.fn_max,oneWayClutch.free,oneWayClutch.locked,oneWayClutch.lossPower,oneWayClutch.mu,oneWayClutch.mu0,oneWayClutch.mu_pos[1,1],oneWayClutch.mu_pos[1,2],oneWayClutch.peak,oneWayClutch.peak2,oneWayClutch.phi_nominal,oneWayClutch.phi_rel,oneWayClutch.sa,oneWayClutch.smoothness,oneWayClutch.startForward,oneWayClutch.stateSelect,oneWayClutch.stuck,oneWayClutch.tau,oneWayClutch.tau0,oneWayClutch.tau0_max,oneWayClutch.tau0_max_low,oneWayClutch.u,oneWayClutch.useHeatPort,oneWayClutch.w_rel,oneWayClutch.w_small,signalEngagement.k,signalEngagement.y,signalTorque.amplitude,signalTorque.f,signalTorque.offset,signalTorque.phase,signalTorque.startTime,signalTorque.y,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.tau,torque.useSupport,torqueLoad.flange.phi,torqueLoad.flange.tau,torqueLoad.phi,torqueLoad.phi_support,torqueLoad.tau,torqueLoad.tau_constant,torqueLoad.useSupport,torqueLoad.w