Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.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.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",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.002066/0.002066, allocations: 102.7 kB / 16.92 MB, free: 6.145 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.002224/0.002224, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.345/2.345, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 47.5 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1661, allocations: 49.43 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.007655/0.1739, allocations: 1.971 MB / 352.1 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001856/0.1758, allocations: 0.5103 MB / 352.6 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002962/0.1761, allocations: 4 kB / 352.6 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003513/0.1765, allocations: 31.72 kB / 352.7 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000303/0.1769, allocations: 27.72 kB / 352.7 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004115/0.1773, allocations: 43.94 kB / 352.7 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006268/0.1779, allocations: 143.5 kB / 352.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000461/0.1784, allocations: 69.39 kB / 353 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002665/0.1787, allocations: 63.72 kB / 353 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002694/0.179, allocations: 67.7 kB / 353.1 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.623e-05/0.1791, allocations: 12 kB / 353.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.1793, allocations: 16 kB / 353.1 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.375e-05/0.1794, allocations: 31.91 kB / 353.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.1796, allocations: 71.66 kB / 353.2 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004714/0.1801, allocations: 163.7 kB / 353.4 MB, free: 1.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.1802, allocations: 4 kB / 353.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.1802, allocations: 0 / 353.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.027e-05/0.1802, allocations: 0 / 353.4 MB, free: 1.086 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001362/0.1816, allocations: 439 kB / 353.8 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.398e-05/0.1817, allocations: 15.97 kB / 353.8 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.594e-05/0.1818, allocations: 46.73 kB / 353.9 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.1819, allocations: 20.75 kB / 353.9 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004358/0.1824, allocations: 212 kB / 354.1 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.1824, allocations: 16.31 kB / 354.1 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-05/0.1825, allocations: 20.31 kB / 354.1 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005324/0.1831, allocations: 134.4 kB / 354.3 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.71e-05/0.1831, allocations: 11.91 kB / 354.3 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.1832, allocations: 4 kB / 354.3 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.1832, allocations: 4 kB / 354.3 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004325/0.1836, allocations: 95.44 kB / 354.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.1853, allocations: 0.5251 MB / 354.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.1857, allocations: 78.55 kB / 355 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.1859, allocations: 36.97 kB / 355 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.722e-05/0.1859, allocations: 0 / 355 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.453e-05/0.186, allocations: 30.56 kB / 355 MB, free: 15.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.044e-06/0.1861, allocations: 0 / 355 MB, free: 15.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.001941/0.188, allocations: 0.5952 MB / 355.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.1881, allocations: 59.28 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.1883, allocations: 129.8 kB / 355.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.1883, allocations: 25.98 kB / 355.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.1885, allocations: 135.8 kB / 356 MB, free: 14.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.428e-05/0.1885, allocations: 51.38 kB / 356 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.1886, allocations: 41.64 kB / 356.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002242/0.1889, allocations: 318.8 kB / 356.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.1891, allocations: 35.94 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.1893, allocations: 82.84 kB / 356.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.1896, allocations: 126.7 kB / 356.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1897, allocations: 4 kB / 356.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004615/0.1901, allocations: 149.4 kB / 356.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.1902, allocations: 11.98 kB / 356.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1902, allocations: 0 / 356.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.571e-05/0.1902, allocations: 4 kB / 356.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003141/0.1905, allocations: 47.86 kB / 356.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.1906, allocations: 4 kB / 356.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.1907, allocations: 8.188 kB / 356.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/0.1907, allocations: 8 kB / 356.9 MB, free: 13.23 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000177/0.1909, allocations: 125.8 kB / 357 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.059e-05/0.191, allocations: 15.92 kB / 357 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.64e-05/0.1911, allocations: 12.38 kB / 357 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.1911, allocations: 7.938 kB / 357 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.1911, allocations: 0 / 357 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.1911, allocations: 0 / 357 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.1922, allocations: 440 kB / 357.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.1922, allocations: 4.094 kB / 357.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.1924, allocations: 27.92 kB / 357.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.727e-06/0.1925, allocations: 4 kB / 357.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.1925, allocations: 0 / 357.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.237e-06/0.1925, allocations: 4 kB / 357.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.1925, allocations: 4.062 kB / 357.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007165/0.1933, allocations: 252.9 kB / 357.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.1934, allocations: 88.95 kB / 357.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/0.1935, allocations: 4 kB / 357.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.1936, allocations: 8.062 kB / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.269e-05/0.1937, allocations: 7.984 kB / 357.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.1937, allocations: 4 kB / 357.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001559/0.1939, allocations: 98.5 kB / 357.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.848e-06/0.194, allocations: 0 / 357.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005999/0.1946, allocations: 31.94 kB / 358 MB, free: 12 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001217/0.1958, allocations: 0.7881 MB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004588/0.1963, allocations: 95.83 kB / 358.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.1963, allocations: 448 / 358.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.1965, allocations: 43.92 kB / 358.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006382/0.1971, allocations: 8 kB / 358.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003825/0.201, allocations: 1.844 MB / 360.7 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006556/0.2016, allocations: 0.7119 MB / 361.5 MB, free: 8.324 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.2018, allocations: 12.88 kB / 361.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.2019, allocations: 43.36 kB / 361.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2019, allocations: 0 / 361.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03746/0.2394, allocations: 2.322 MB / 363.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.29, allocations: 25.59 kB / 363.9 MB, free: 6 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches