Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,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.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_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001/0.001, allocations: 196.3 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 226.6 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007327/0.0007328, allocations: 94.67 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000216/0.000216, allocations: 11.98 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1973, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.001869/0.1992, allocations: 1.904 MB / 409.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009355/0.2001, allocations: 0.8012 MB / 410.7 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.54e-05/0.2003, allocations: 4 kB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002171/0.2005, allocations: 31.77 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001952/0.2007, allocations: 95.98 kB / 410.9 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001511/0.2008, allocations: 56.7 kB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002189/0.2011, allocations: 260.2 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.2012, allocations: 41.41 kB / 411.2 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.2014, allocations: 119.5 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001433/0.2016, allocations: 121.4 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.2016, allocations: 12 kB / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.2017, allocations: 59.92 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.009e-05/0.2018, allocations: 43.88 kB / 411.6 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.967e-05/0.2019, allocations: 129.2 kB / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.2021, allocations: 229 kB / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.2021, allocations: 0.5938 kB / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2021, allocations: 0 / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2022, allocations: 0.9688 kB / 411.9 MB, free: 23.8 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.000826/0.203, allocations: 0.5527 MB / 412.5 MB, free: 23.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.203, allocations: 12.03 kB / 412.5 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.2032, allocations: 36.66 kB / 412.5 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002235/0.2034, allocations: 251.8 kB / 412.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.2034, allocations: 16.38 kB / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.896e-05/0.2035, allocations: 20.38 kB / 412.8 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003899/0.2039, allocations: 239.5 kB / 413 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.2039, allocations: 0 / 413 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.2039, allocations: 8 kB / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.204, allocations: 4 kB / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004125/0.2044, allocations: 203.6 kB / 413.3 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007782/0.2052, allocations: 0.6564 MB / 413.9 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004899/0.2057, allocations: 214.4 kB / 414.1 MB, free: 21.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002152/0.2059, allocations: 113.8 kB / 414.2 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.2059, allocations: 11.94 kB / 414.2 MB, free: 21.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000336/0.2063, allocations: 175.1 kB / 414.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.994e-06/0.2063, allocations: 0 / 414.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.002068/0.2083, allocations: 1.219 MB / 415.6 MB, free: 19.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.422e-05/0.2084, allocations: 55.41 kB / 415.7 MB, free: 19.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.2085, allocations: 203 kB / 415.9 MB, free: 19.53 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.2086, allocations: 29.7 kB / 415.9 MB, free: 19.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.14e-05/0.2086, allocations: 136.4 kB / 416 MB, free: 19.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.839e-05/0.2087, allocations: 86.75 kB / 416.1 MB, free: 19.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.627e-05/0.2087, allocations: 7.938 kB / 416.1 MB, free: 19.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.303e-05/0.2088, allocations: 338.8 kB / 416.5 MB, free: 18.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002374/0.209, allocations: 103.9 kB / 416.6 MB, free: 18.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.2093, allocations: 151.7 kB / 416.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004203/0.2097, allocations: 255.4 kB / 417 MB, free: 18.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.2097, allocations: 0 / 417 MB, free: 18.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006858/0.2104, allocations: 394.5 kB / 417.4 MB, free: 17.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.387e-05/0.2104, allocations: 29.7 kB / 417.4 MB, free: 17.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.2105, allocations: 7.938 kB / 417.4 MB, free: 17.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000181/0.2106, allocations: 56.81 kB / 417.4 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.2108, allocations: 51.97 kB / 417.5 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.2121, allocations: 1.645 MB / 419.1 MB, free: 16.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/0.2124, allocations: 44.03 kB / 419.2 MB, free: 16.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/0.2124, allocations: 15.94 kB / 419.2 MB, free: 16.01 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 (31): * Single equations (assignments): 29 * 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 0.0001128/0.2125, allocations: 138 kB / 419.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.2126, allocations: 15.81 kB / 419.4 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.913e-05/0.2126, allocations: 34.56 kB / 419.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2126, allocations: 0 / 419.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.2126, allocations: 0 / 419.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.2127, allocations: 7.984 kB / 419.4 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009161/0.2136, allocations: 0.706 MB / 420.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.2136, allocations: 0 / 420.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/0.2138, allocations: 47.91 kB / 420.1 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001218/0.2139, allocations: 52.81 kB / 420.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.214, allocations: 8 kB / 420.2 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.215, allocations: 1.546 MB / 421.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.215, allocations: 0 / 421.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008272/0.2159, allocations: 0.5233 MB / 422.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.287e-05/0.216, allocations: 116.9 kB / 422.4 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.364e-05/0.216, allocations: 4 kB / 422.4 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.2162, allocations: 43.97 kB / 422.4 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.2164, allocations: 71.86 kB / 422.5 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.2164, allocations: 11.98 kB / 422.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001028/0.2165, allocations: 144.3 kB / 422.7 MB, free: 12.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2165, allocations: 4 kB / 422.7 MB, free: 12.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003747/0.2169, allocations: 80 kB / 422.7 MB, free: 12.22 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 (21): * Single equations (assignments): 18 * 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.0007277/0.2177, allocations: 362.5 kB / 423.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007476/0.2184, allocations: 462.7 kB / 423.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2184, allocations: 4.125 kB / 423.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003473/0.2188, allocations: 278.4 kB / 423.8 MB, free: 11.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.2192, allocations: 39.97 kB / 423.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.2203, allocations: 0.8348 MB / 424.7 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001561/0.2204, allocations: 0.744 MB / 425.4 MB, free: 9.539 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.73e-05/0.2205, allocations: 23.42 kB / 425.5 MB, free: 9.516 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2205, allocations: 4 kB / 425.5 MB, free: 9.512 MB / 298.7 MB Notification: Performance of Templates: time 0.005194/0.2257, allocations: 4.285 MB / 429.8 MB, free: 5.23 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches