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.001232/0.001232, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001227/0.001228, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.0014/0.0014, allocations: 55.92 kB / 328.1 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09826/0.09967, allocations: 46.63 MB / 374.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.218/0.3177, allocations: 15.84 MB / 390.5 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002399/0.3201, allocations: 1.909 MB / 392.4 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/0.3205, allocations: 8.5 kB / 392.5 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005696/0.321, allocations: 170.1 kB / 392.6 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005728/0.3216, allocations: 318.5 kB / 392.9 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006568/0.3223, allocations: 277.4 kB / 393.2 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008767/0.3232, allocations: 0.838 MB / 394 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002073/0.3234, allocations: 109 kB / 394.1 MB, free: 2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009835/0.3244, allocations: 0.5044 MB / 394.7 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003857/0.3248, allocations: 280.4 kB / 394.9 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.298e-05/0.3248, allocations: 28.53 kB / 395 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.325, allocations: 45.11 kB / 395 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.3251, allocations: 89.12 kB / 395.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001945/0.3253, allocations: 180 kB / 395.3 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005042/0.3258, allocations: 440.6 kB / 395.7 MB, free: 1.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.3258, allocations: 0 / 395.7 MB, free: 1.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3258, allocations: 0 / 395.7 MB, free: 1.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.3259, allocations: 0.6094 kB / 395.7 MB, free: 1.371 MB / 318.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.0008795/0.3267, allocations: 0.5878 MB / 396.3 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3268, allocations: 10.55 kB / 396.3 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.376e-05/0.3269, allocations: 60.83 kB / 396.3 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002675/0.3271, allocations: 42.53 kB / 396.4 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.3275, allocations: 285.7 kB / 396.7 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/0.3275, allocations: 23.12 kB / 396.7 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.65e-05/0.3276, allocations: 25.69 kB / 396.7 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004552/0.328, allocations: 306.6 kB / 397 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.3281, allocations: 6.641 kB / 397 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.102e-05/0.3281, allocations: 11.91 kB / 397 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3281, allocations: 8.469 kB / 397 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003136/0.3284, allocations: 195.1 kB / 397.2 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001664/0.3301, allocations: 1.446 MB / 398.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003241/0.3304, allocations: 180.9 kB / 398.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.3306, allocations: 94.91 kB / 398.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.3307, allocations: 3.469 kB / 399 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.3307, allocations: 35.88 kB / 399 MB, free: 14.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.492e-06/0.3307, allocations: 4 kB / 399 MB, free: 14.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.002554/0.3333, allocations: 1.004 MB / 400 MB, free: 14.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.3333, allocations: 59.33 kB / 400.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.3336, allocations: 261.6 kB / 400.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.3337, allocations: 31.89 kB / 400.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.3338, allocations: 181.8 kB / 400.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.312e-05/0.3339, allocations: 91.06 kB / 400.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.334, allocations: 65.67 kB / 400.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.3342, allocations: 338.2 kB / 401 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.3344, allocations: 88.39 kB / 401.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.3346, allocations: 176.4 kB / 401.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003973/0.335, allocations: 285.7 kB / 401.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.335, allocations: 1.375 kB / 401.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006941/0.3357, allocations: 387.5 kB / 401.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3357, allocations: 7.312 kB / 401.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3357, allocations: 2.75 kB / 401.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002615/0.336, allocations: 60.83 kB / 402 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003013/0.3363, allocations: 68.55 kB / 402.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002454/0.3388, allocations: 2.889 MB / 404.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002678/0.3391, allocations: 15.62 kB / 405 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.3391, allocations: 11.28 kB / 405 MB, free: 9.852 MB / 334.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.00019/0.3393, allocations: 157.5 kB / 405.1 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.56e-05/0.3394, allocations: 24.98 kB / 405.1 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.213e-05/0.3395, allocations: 39.3 kB / 405.2 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3395, allocations: 3.938 kB / 405.2 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.3395, allocations: 1.031 kB / 405.2 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006668/0.3402, allocations: 0.565 MB / 405.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.3413, allocations: 0.6933 MB / 406.4 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3413, allocations: 4.547 kB / 406.5 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000205/0.3415, allocations: 43.48 kB / 406.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002384/0.3418, allocations: 61.81 kB / 406.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.3418, allocations: 8.219 kB / 406.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.3431, allocations: 1.483 MB / 408 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3431, allocations: 4.547 kB / 408.1 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007354/0.3438, allocations: 471.5 kB / 408.5 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.057e-05/0.3439, allocations: 107.2 kB / 408.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.344, allocations: 5.719 kB / 408.6 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.3442, allocations: 6.766 kB / 408.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.3443, allocations: 24.56 kB / 408.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/0.3443, allocations: 16.59 kB / 408.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001971/0.3445, allocations: 186.1 kB / 408.9 MB, free: 6.613 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3445, allocations: 0 / 408.9 MB, free: 6.613 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004298/0.3449, allocations: 90.06 kB / 408.9 MB, free: 6.602 MB / 334.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.001063/0.346, allocations: 0.9971 MB / 409.9 MB, free: 5.781 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009381/0.347, allocations: 489.4 kB / 410.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.347, allocations: 1.375 kB / 410.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004147/0.3474, allocations: 236.8 kB / 410.6 MB, free: 5.301 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009709/0.3484, allocations: 162.3 kB / 410.8 MB, free: 5.254 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004811/0.3532, allocations: 3.155 MB / 414 MB, free: 3.031 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.3537, allocations: 0.7658 MB / 414.7 MB, free: 2.328 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002826/0.354, allocations: 52.55 kB / 414.8 MB, free: 2.309 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.3541, allocations: 88.98 kB / 414.9 MB, free: 2.246 MB / 334.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3541, allocations: 0 / 414.9 MB, free: 2.246 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03299/0.3871, allocations: 8.76 MB / 423.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.08, allocations: 15.69 kB / 423.6 MB, free: 13.59 MB / 350.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