Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.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.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater",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.001994/0.001994, allocations: 103 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.002216/0.002216, allocations: 192.2 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.509/2.509, 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.002628/0.002628, allocations: 56.14 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1593, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.03478/0.1941, allocations: 15.84 MB / 343.2 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004973/0.1992, allocations: 1.916 MB / 345.1 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005674/0.1999, allocations: 4 kB / 345.2 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.2011, allocations: 170.9 kB / 345.3 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001508/0.2027, allocations: 314.2 kB / 345.6 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.2042, allocations: 275.5 kB / 345.9 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002184/0.2065, allocations: 0.8485 MB / 346.7 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004222/0.2069, allocations: 100.7 kB / 346.8 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002175/0.2091, allocations: 0.5097 MB / 347.4 MB, free: 328 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008516/0.21, allocations: 267 kB / 347.6 MB, free: 60 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.2102, allocations: 28 kB / 347.6 MB, free: 32 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004415/0.2106, allocations: 44.05 kB / 347.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002553/0.2109, allocations: 95.59 kB / 347.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005257/0.2115, allocations: 175.3 kB / 347.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.2127, allocations: 438.9 kB / 348.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.2127, allocations: 0 / 348.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.127e-06/0.2127, allocations: 0 / 348.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.426e-05/0.2128, allocations: 0 / 348.4 MB, free: 15.29 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.002181/0.215, allocations: 0.5809 MB / 349 MB, free: 14.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.186e-05/0.2151, allocations: 12.03 kB / 349 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002031/0.2153, allocations: 62.72 kB / 349 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005743/0.2159, allocations: 44.64 kB / 349.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007319/0.2166, allocations: 279.7 kB / 349.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.097e-05/0.2167, allocations: 20.94 kB / 349.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.183e-05/0.2168, allocations: 24.38 kB / 349.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009977/0.2178, allocations: 307.6 kB / 349.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.348e-05/0.2178, allocations: 4 kB / 349.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.343e-05/0.2179, allocations: 8 kB / 349.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.2179, allocations: 8 kB / 349.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006522/0.2186, allocations: 197.6 kB / 349.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003463/0.2221, allocations: 1.44 MB / 351.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007038/0.2228, allocations: 182.6 kB / 351.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/0.2231, allocations: 92.77 kB / 351.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.017e-05/0.2232, allocations: 8 kB / 351.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.615e-05/0.2233, allocations: 30.56 kB / 351.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 4.649e-06/0.2233, allocations: 0 / 351.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.004632/0.2279, allocations: 1.004 MB / 352.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.401e-05/0.2281, allocations: 51.41 kB / 352.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005521/0.2287, allocations: 258.6 kB / 353 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.19e-05/0.2287, allocations: 37.7 kB / 353 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.229, allocations: 176.2 kB / 353.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.2291, allocations: 94.64 kB / 353.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001805/0.2293, allocations: 69.39 kB / 353.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002922/0.2296, allocations: 342.8 kB / 353.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002897/0.2299, allocations: 83.97 kB / 353.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004088/0.2303, allocations: 170.9 kB / 353.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007567/0.2311, allocations: 291 kB / 354.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.2311, allocations: 3.938 kB / 354.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001329/0.2325, allocations: 379.1 kB / 354.6 MB, free: 8.625 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.714e-05/0.2326, allocations: 8 kB / 354.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.2326, allocations: 4 kB / 354.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000487/0.2331, allocations: 61.67 kB / 354.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005424/0.2337, allocations: 71.84 kB / 354.7 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004036/0.2377, allocations: 2.882 MB / 357.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004816/0.2382, allocations: 19.92 kB / 357.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.678e-05/0.2383, allocations: 11.94 kB / 357.6 MB, free: 5.281 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000445/0.2388, allocations: 145.8 kB / 357.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.2389, allocations: 31.72 kB / 357.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.2391, allocations: 38.23 kB / 357.8 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2391, allocations: 4 kB / 357.8 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.2391, allocations: 0 / 357.8 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001163/0.2403, allocations: 0.5631 MB / 358.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/0.2423, allocations: 0.6989 MB / 359.1 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/0.2424, allocations: 4 kB / 359.1 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004243/0.2428, allocations: 47.86 kB / 359.1 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004414/0.2433, allocations: 52.69 kB / 359.2 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.115e-05/0.2433, allocations: 8 kB / 359.2 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002268/0.2456, allocations: 1.5 MB / 360.7 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.2456, allocations: 0 / 360.7 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.247, allocations: 473 kB / 361.2 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001701/0.2472, allocations: 100.9 kB / 361.3 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.035e-05/0.2473, allocations: 8.125 kB / 361.3 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004097/0.2477, allocations: 4 kB / 361.3 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.789e-05/0.2478, allocations: 19.97 kB / 361.3 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.793e-05/0.2478, allocations: 19.92 kB / 361.3 MB, free: 1.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003685/0.2482, allocations: 178 kB / 361.5 MB, free: 1.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.2482, allocations: 0 / 361.5 MB, free: 1.062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008845/0.2491, allocations: 92 kB / 361.6 MB, free: 0.9727 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.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 (24): * Single equations (assignments): 23 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001934/0.2511, allocations: 1.023 MB / 362.6 MB, free: 15.92 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001485/0.2526, allocations: 485.8 kB / 363.1 MB, free: 15.42 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.2526, allocations: 0 / 363.1 MB, free: 15.42 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006287/0.2533, allocations: 234.5 kB / 363.3 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/0.255, allocations: 160.5 kB / 363.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007265/0.2623, allocations: 3.149 MB / 366.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005068/0.2629, allocations: 0.7645 MB / 367.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005186/0.2634, allocations: 46.95 kB / 367.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.2636, allocations: 91.34 kB / 367.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of SimCode: time 1.222e-06/0.2636, allocations: 4 kB / 367.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1419/0.4056, allocations: 8.62 MB / 376.1 MB, free: 2.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.38/18.78, allocations: 19.86 kB / 376.2 MB, free: 2.07 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/LinearFluid/LinearColdWater/LinearColdWater.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches