Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.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.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 191.8 kB / 17.37 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.213/1.213, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007629/0.000763, allocations: 97.58 kB / 296.7 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002049/0.000205, allocations: 8 kB / 356.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1793, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.003125/0.1824, allocations: 4.007 MB / 412.1 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.1836, allocations: 1.669 MB / 413.8 MB, free: 22.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.631e-05/0.1837, allocations: 3.938 kB / 413.8 MB, free: 22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001868/0.1839, allocations: 43.8 kB / 413.8 MB, free: 21.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002215/0.1841, allocations: 107.4 kB / 413.9 MB, free: 21.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004685/0.1846, allocations: 227.6 kB / 414.2 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002448/0.1849, allocations: 310.8 kB / 414.5 MB, free: 21.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.1849, allocations: 13.11 kB / 414.5 MB, free: 21.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.1851, allocations: 119.6 kB / 414.6 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.934e-05/0.1852, allocations: 83.67 kB / 414.7 MB, free: 21.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.1852, allocations: 8 kB / 414.7 MB, free: 21.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001861/0.1854, allocations: 103.8 kB / 414.8 MB, free: 21.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.163e-05/0.1855, allocations: 31.91 kB / 414.8 MB, free: 20.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.957e-05/0.1855, allocations: 97.41 kB / 414.9 MB, free: 20.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.1857, allocations: 145 kB / 415.1 MB, free: 20.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1857, allocations: 4 kB / 415.1 MB, free: 20.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1857, allocations: 0 / 415.1 MB, free: 20.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.1857, allocations: 0 / 415.1 MB, free: 20.74 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007093/0.1865, allocations: 459.3 kB / 415.5 MB, free: 20.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.1865, allocations: 12.03 kB / 415.5 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.403e-05/0.1866, allocations: 50.73 kB / 415.6 MB, free: 20.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.1867, allocations: 20.75 kB / 415.6 MB, free: 20.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.1868, allocations: 204.2 kB / 415.8 MB, free: 19.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.1869, allocations: 8.656 kB / 415.8 MB, free: 19.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.593e-05/0.1869, allocations: 16.28 kB / 415.8 MB, free: 19.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003283/0.1872, allocations: 221.4 kB / 416 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1873, allocations: 3.984 kB / 416 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.1873, allocations: 8 kB / 416 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.1873, allocations: 4 kB / 416 MB, free: 19.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003/0.1876, allocations: 151.8 kB / 416.2 MB, free: 19.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000961/0.1886, allocations: 0.944 MB / 417.1 MB, free: 18.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003276/0.1889, allocations: 138.8 kB / 417.3 MB, free: 18.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.189, allocations: 60.83 kB / 417.3 MB, free: 18.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003606/0.1894, allocations: 0.507 MB / 417.8 MB, free: 17.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.623e-05/0.1894, allocations: 34.56 kB / 417.9 MB, free: 17.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.243e-06/0.1894, allocations: 0 / 417.9 MB, free: 17.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.002195/0.1916, allocations: 0.7616 MB / 418.6 MB, free: 16.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.789e-05/0.1917, allocations: 51.41 kB / 418.7 MB, free: 16.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.38e-05/0.1918, allocations: 161.6 kB / 418.8 MB, free: 16.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.1918, allocations: 29.7 kB / 418.9 MB, free: 16.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.031e-05/0.1918, allocations: 147.8 kB / 419 MB, free: 16.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.635e-05/0.1919, allocations: 63.02 kB / 419.1 MB, free: 16.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.658e-05/0.1919, allocations: 15.94 kB / 419.1 MB, free: 16.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.907e-05/0.1919, allocations: 326.8 kB / 419.4 MB, free: 16.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.1922, allocations: 87.69 kB / 419.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002295/0.1924, allocations: 186.2 kB / 419.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004515/0.1929, allocations: 291.9 kB / 420 MB, free: 15.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1929, allocations: 8 kB / 420 MB, free: 15.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005683/0.1934, allocations: 313.4 kB / 420.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.1935, allocations: 11.98 kB / 420.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1935, allocations: 4 kB / 420.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1935, allocations: 4 kB / 420.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/0.1939, allocations: 75.89 kB / 420.4 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.1939, allocations: 11.94 kB / 420.4 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.1941, allocations: 19.92 kB / 420.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.1941, allocations: 20.09 kB / 420.4 MB, free: 14.9 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (37): * Single equations (assignments): 37 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.108e-05/0.1942, allocations: 137.7 kB / 420.6 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.922e-05/0.1943, allocations: 15.81 kB / 420.6 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005592/0.1948, allocations: 230.7 kB / 420.8 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.1948, allocations: 8 kB / 420.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.1948, allocations: 0 / 420.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1949, allocations: 0 / 420.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.1959, allocations: 0.6037 MB / 421.4 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1959, allocations: 0 / 421.4 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002694/0.1962, allocations: 47.95 kB / 421.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.1962, allocations: 4 kB / 421.5 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.1962, allocations: 11.94 kB / 421.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.1962, allocations: 4.062 kB / 421.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.1962, allocations: 19.91 kB / 421.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006764/0.1969, allocations: 401.6 kB / 421.9 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.556e-05/0.197, allocations: 92.95 kB / 422 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.868e-05/0.197, allocations: 7.938 kB / 422 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.1972, allocations: 15.98 kB / 422 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.312e-05/0.1973, allocations: 15.98 kB / 422 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/0.1973, allocations: 15.98 kB / 422 MB, free: 13.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.544e-05/0.1973, allocations: 109.7 kB / 422.1 MB, free: 13.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1973, allocations: 0 / 422.1 MB, free: 13.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003266/0.1977, allocations: 67.94 kB / 422.2 MB, free: 12.99 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * 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 (20): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000892/0.1986, allocations: 0.9607 MB / 423.2 MB, free: 12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004827/0.1991, allocations: 212.3 kB / 423.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1991, allocations: 0 / 423.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002071/0.1993, allocations: 95.81 kB / 423.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.1997, allocations: 40.53 kB / 423.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.2015, allocations: 1.264 MB / 424.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000104/0.2016, allocations: 0.7128 MB / 425.5 MB, free: 9.535 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.2017, allocations: 51.41 kB / 425.5 MB, free: 9.484 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2017, allocations: 7.938 kB / 425.5 MB, free: 9.477 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.645/2.847, allocations: 2.751 MB / 428.3 MB, free: 6.727 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_SimpleLiquidWater_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_SimpleLiquidWater.fmu > Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches