Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 102.6 kB / 17.58 MB, free: 5.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 187.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.633/2.633, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 56.14 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1532, allocations: 46.62 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.006932/0.1602, allocations: 2.158 MB / 329.5 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.1629, allocations: 0.741 MB / 330.3 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.1632, allocations: 4 kB / 330.3 MB, free: 1.453 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000279/0.1635, allocations: 31.66 kB / 330.3 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003228/0.1639, allocations: 67.48 kB / 330.4 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006007/0.1645, allocations: 115.7 kB / 330.5 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005366/0.165, allocations: 271.5 kB / 330.8 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.1653, allocations: 52.36 kB / 330.8 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003285/0.1656, allocations: 115.6 kB / 330.9 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003044/0.166, allocations: 127.5 kB / 331 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.432e-05/0.166, allocations: 20 kB / 331.1 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002397/0.1663, allocations: 67.95 kB / 331.1 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.1664, allocations: 59.75 kB / 331.2 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001925/0.1667, allocations: 111.4 kB / 331.3 MB, free: 444 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005325/0.1672, allocations: 279.4 kB / 331.6 MB, free: 164 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.1672, allocations: 0 / 331.6 MB, free: 164 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1673, allocations: 0 / 331.6 MB, free: 164 kB / 270.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.1673, allocations: 0 / 331.6 MB, free: 164 kB / 270.1 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.001648/0.1689, allocations: 0.5665 MB / 332.1 MB, free: 15.54 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.169, allocations: 8.031 kB / 332.1 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.611e-05/0.1691, allocations: 50.73 kB / 332.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.1692, allocations: 28.66 kB / 332.2 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004244/0.1697, allocations: 235.9 kB / 332.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.928e-05/0.1697, allocations: 12.38 kB / 332.5 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.364e-05/0.1698, allocations: 24.36 kB / 332.5 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008461/0.1707, allocations: 243.2 kB / 332.7 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/0.1708, allocations: 7.906 kB / 332.7 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.81e-05/0.1708, allocations: 4 kB / 332.7 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.1708, allocations: 4 kB / 332.7 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009214/0.1718, allocations: 191.8 kB / 332.9 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001857/0.1737, allocations: 0.6719 MB / 333.6 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.1748, allocations: 206.4 kB / 333.8 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004461/0.1752, allocations: 96.81 kB / 333.9 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.667e-05/0.1753, allocations: 4 kB / 333.9 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007502/0.176, allocations: 163.5 kB / 334.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 4.378e-06/0.1761, allocations: 0 / 334.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.004543/0.1806, allocations: 1.156 MB / 335.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.561e-05/0.1807, allocations: 63.34 kB / 335.3 MB, free: 12.13 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003259/0.1811, allocations: 190.9 kB / 335.5 MB, free: 11.94 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.581e-05/0.1812, allocations: 29.7 kB / 335.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.1813, allocations: 140.3 kB / 335.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.1815, allocations: 90.73 kB / 335.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001876/0.1817, allocations: 65.69 kB / 335.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.1819, allocations: 330.8 kB / 336.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000621/0.1826, allocations: 104.3 kB / 336.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005566/0.1831, allocations: 155.8 kB / 336.4 MB, free: 11 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009444/0.1841, allocations: 250.7 kB / 336.6 MB, free: 10.74 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1841, allocations: 0 / 336.6 MB, free: 10.74 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001644/0.1858, allocations: 404.9 kB / 337 MB, free: 10.33 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.388e-05/0.1859, allocations: 37.64 kB / 337 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.1859, allocations: 3.984 kB / 337 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004401/0.1864, allocations: 64.89 kB / 337.1 MB, free: 10.22 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004216/0.1868, allocations: 55.91 kB / 337.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008832/0.1877, allocations: 0.6148 MB / 337.8 MB, free: 9.523 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005133/0.1882, allocations: 32 kB / 337.8 MB, free: 9.492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.006e-05/0.1883, allocations: 12 kB / 337.8 MB, free: 9.48 MB / 286.1 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 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * 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 0.0003301/0.1887, allocations: 146.1 kB / 338 MB, free: 9.328 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.279e-05/0.1888, allocations: 15.81 kB / 338 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.1889, allocations: 25.88 kB / 338 MB, free: 9.285 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.1889, allocations: 4 kB / 338 MB, free: 9.281 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.1889, allocations: 0 / 338 MB, free: 9.281 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/0.189, allocations: 3.984 kB / 338 MB, free: 9.277 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.1911, allocations: 0.6863 MB / 338.7 MB, free: 8.531 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.1912, allocations: 0 / 338.7 MB, free: 8.531 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004066/0.1916, allocations: 39.97 kB / 338.7 MB, free: 8.492 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003306/0.1919, allocations: 68.81 kB / 338.8 MB, free: 8.422 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.192, allocations: 7.938 kB / 338.8 MB, free: 8.414 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007826/0.1928, allocations: 0.6108 MB / 339.4 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.625e-06/0.1928, allocations: 7.969 kB / 339.4 MB, free: 7.77 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.1946, allocations: 0.4998 MB / 339.9 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.1948, allocations: 108.9 kB / 340 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.486e-05/0.1949, allocations: 8 kB / 340 MB, free: 7.117 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000445/0.1954, allocations: 28.11 kB / 340.1 MB, free: 7.09 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.1955, allocations: 39.92 kB / 340.1 MB, free: 7.051 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.1956, allocations: 4 kB / 340.1 MB, free: 7.047 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002323/0.1958, allocations: 143.2 kB / 340.3 MB, free: 6.906 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1959, allocations: 0 / 340.3 MB, free: 6.906 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007253/0.1966, allocations: 68 kB / 340.3 MB, free: 6.84 MB / 286.1 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.002522/0.1991, allocations: 1.084 MB / 341.4 MB, free: 5.727 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.2006, allocations: 332.3 kB / 341.7 MB, free: 5.391 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2006, allocations: 0 / 341.7 MB, free: 5.391 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006215/0.2013, allocations: 140 kB / 341.9 MB, free: 5.254 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007955/0.2021, allocations: 43.91 kB / 341.9 MB, free: 5.211 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007756/0.2099, allocations: 2.814 MB / 344.7 MB, free: 2.285 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006909/0.2106, allocations: 0.7439 MB / 345.5 MB, free: 1.516 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002356/0.2109, allocations: 25.94 kB / 345.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.2111, allocations: 63.42 kB / 345.6 MB, free: 1.426 MB / 286.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2111, allocations: 0 / 345.6 MB, free: 1.426 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04733/0.2585, allocations: 6.006 MB / 351.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.33/18.59, allocations: 11.91 kB / 351.6 MB, free: 11.34 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches