Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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 4.0.0+maint.om/package.mo", uses=false) 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) 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.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.001752/0.001752, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001801/0.001801, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.419/2.419, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 39.41 kB / 300.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1812, allocations: 49.46 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.007131/0.1884, allocations: 2.189 MB / 352.4 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002787/0.1913, allocations: 0.6855 MB / 353 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005186/0.1919, allocations: 7.938 kB / 353 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003749/0.1924, allocations: 31.72 kB / 353.1 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006859/0.1931, allocations: 67.41 kB / 353.1 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008422/0.194, allocations: 111.7 kB / 353.3 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009346/0.1949, allocations: 259.4 kB / 353.5 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003495/0.1953, allocations: 60.36 kB / 353.6 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003963/0.1957, allocations: 107.6 kB / 353.7 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004386/0.1962, allocations: 119.5 kB / 353.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.683e-05/0.1963, allocations: 20 kB / 353.8 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003318/0.1966, allocations: 63.95 kB / 353.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.1968, allocations: 47.84 kB / 353.9 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002784/0.1971, allocations: 119.4 kB / 354 MB, free: 452 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007074/0.1978, allocations: 271.4 kB / 354.3 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.1978, allocations: 0 / 354.3 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1978, allocations: 0 / 354.3 MB, free: 180 kB / 286.1 MB Notification: Performance of Transformations before backend: time 2.593e-05/0.1979, allocations: 0 / 354.3 MB, free: 180 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001681/0.1996, allocations: 0.5185 MB / 354.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.165e-05/0.1997, allocations: 8.031 kB / 354.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002159/0.1999, allocations: 58.73 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.2, allocations: 24.66 kB / 354.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.2004, allocations: 231.9 kB / 355.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/0.2005, allocations: 12.81 kB / 355.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.91e-05/0.2006, allocations: 20.38 kB / 355.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007141/0.2013, allocations: 225.8 kB / 355.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/0.2014, allocations: 4 kB / 355.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.804e-05/0.2014, allocations: 12 kB / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.2014, allocations: 8 kB / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000591/0.202, allocations: 169 kB / 355.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/0.2042, allocations: 0.772 MB / 356.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007278/0.2049, allocations: 142.4 kB / 356.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002512/0.2052, allocations: 68.83 kB / 356.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.2052, allocations: 4 kB / 356.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.927e-05/0.2053, allocations: 30.56 kB / 356.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 3.978e-06/0.2053, allocations: 0 / 356.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.003343/0.2087, allocations: 0.9962 MB / 357.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.2088, allocations: 59.41 kB / 357.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004293/0.2092, allocations: 203.2 kB / 357.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.837e-05/0.2093, allocations: 29.7 kB / 357.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/0.2095, allocations: 148 kB / 358 MB, free: 12.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.2096, allocations: 67.02 kB / 358.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/0.2098, allocations: 53.69 kB / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002135/0.21, allocations: 334.8 kB / 358.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.2103, allocations: 79.95 kB / 358.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000355/0.2107, allocations: 116.1 kB / 358.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005065/0.2112, allocations: 170.6 kB / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2112, allocations: 0 / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000922/0.2122, allocations: 284.5 kB / 359.1 MB, free: 11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/0.2122, allocations: 11.12 kB / 359.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.2123, allocations: 3.938 kB / 359.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004979/0.2128, allocations: 72.88 kB / 359.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002695/0.2131, allocations: 43.91 kB / 359.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009068/0.214, allocations: 0.6225 MB / 359.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000335/0.2143, allocations: 23.97 kB / 359.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.057e-05/0.2144, allocations: 8 kB / 359.9 MB, free: 10.19 MB / 302.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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0002207/0.2146, allocations: 133.9 kB / 360 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.131e-05/0.2147, allocations: 19.72 kB / 360 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.53e-05/0.2148, allocations: 33.8 kB / 360.1 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2148, allocations: 4 kB / 360.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.2149, allocations: 0 / 360.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.2149, allocations: 4.031 kB / 360.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.2164, allocations: 0.5983 MB / 360.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/0.2164, allocations: 3.938 kB / 360.7 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002862/0.2167, allocations: 35.91 kB / 360.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002964/0.2171, allocations: 60.83 kB / 360.8 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/0.2171, allocations: 11.98 kB / 360.8 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000768/0.2179, allocations: 0.6148 MB / 361.4 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.2179, allocations: 0 / 361.4 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.219, allocations: 425.7 kB / 361.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.2192, allocations: 104.9 kB / 361.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.766e-05/0.2193, allocations: 11.94 kB / 361.9 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003533/0.2197, allocations: 19.98 kB / 361.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.2198, allocations: 23.97 kB / 362 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.2199, allocations: 7.984 kB / 362 MB, free: 7.949 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003192/0.2202, allocations: 156.4 kB / 362.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.2202, allocations: 0 / 362.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006806/0.2209, allocations: 64 kB / 362.2 MB, free: 7.734 MB / 302.1 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001948/0.2229, allocations: 0.9711 MB / 363.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009966/0.2239, allocations: 207.8 kB / 363.4 MB, free: 6.523 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.224, allocations: 3.938 kB / 363.4 MB, free: 6.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000394/0.2244, allocations: 99.89 kB / 363.5 MB, free: 6.422 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007922/0.2252, allocations: 39.48 kB / 363.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006815/0.232, allocations: 2.664 MB / 366.2 MB, free: 3.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007148/0.2328, allocations: 0.7363 MB / 366.9 MB, free: 2.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001761/0.233, allocations: 25.88 kB / 366.9 MB, free: 2.824 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.2332, allocations: 63.41 kB / 367 MB, free: 2.762 MB / 302.1 MB Notification: Performance of SimCode: time 1.704e-06/0.2332, allocations: 4 kB / 367 MB, free: 2.758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3372/0.5704, allocations: 5.394 MB / 372.4 MB, free: 25.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.38/18.95, allocations: 6.891 kB / 372.4 MB, free: 25.84 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches