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.001253/0.001253, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001489/0.001489, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.314/1.314, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001394/0.001395, allocations: 52.14 kB / 328.1 MB, free: 3.75 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0968/0.09821, allocations: 46.63 MB / 374.7 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.2133/0.3116, allocations: 15.85 MB / 390.5 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.3139, allocations: 1.908 MB / 392.4 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001643/0.3142, allocations: 7.469 kB / 392.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005327/0.3147, allocations: 166.3 kB / 392.6 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005127/0.3152, allocations: 317.8 kB / 392.9 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005933/0.3158, allocations: 281.1 kB / 393.2 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000751/0.3166, allocations: 0.8373 MB / 394 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.3168, allocations: 109.3 kB / 394.1 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007856/0.3176, allocations: 0.501 MB / 394.6 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003166/0.3179, allocations: 281.2 kB / 394.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.812e-05/0.3179, allocations: 28.72 kB / 394.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.3181, allocations: 38.81 kB / 395 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.3182, allocations: 91.02 kB / 395.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.3184, allocations: 179.6 kB / 395.2 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004044/0.3188, allocations: 439.6 kB / 395.7 MB, free: 1.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3188, allocations: 1.5 kB / 395.7 MB, free: 1.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3188, allocations: 0 / 395.7 MB, free: 1.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3188, allocations: 0 / 395.7 MB, free: 1.34 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.0007708/0.3196, allocations: 0.5815 MB / 396.3 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.3196, allocations: 9.75 kB / 396.3 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.685e-05/0.3197, allocations: 59.8 kB / 396.3 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002523/0.32, allocations: 43.44 kB / 396.4 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003747/0.3203, allocations: 288.8 kB / 396.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.3204, allocations: 19.12 kB / 396.7 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.36e-05/0.3204, allocations: 25.45 kB / 396.7 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000425/0.3208, allocations: 306.5 kB / 397 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.3209, allocations: 3.938 kB / 397 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.3209, allocations: 11.22 kB / 397 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.3209, allocations: 9.609 kB / 397 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003158/0.3212, allocations: 196.1 kB / 397.2 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.323, allocations: 1.437 MB / 398.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/0.3233, allocations: 180.8 kB / 398.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.3235, allocations: 89.28 kB / 398.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.3235, allocations: 3.141 kB / 398.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.3236, allocations: 36.45 kB / 399 MB, free: 14.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.292e-06/0.3236, allocations: 5.531 kB / 399 MB, free: 14.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.002551/0.3261, allocations: 1.003 MB / 400 MB, free: 14.22 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.3262, allocations: 55.02 kB / 400 MB, free: 14.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002666/0.3264, allocations: 261.2 kB / 400.3 MB, free: 14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.389e-05/0.3265, allocations: 32.55 kB / 400.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.3266, allocations: 176.8 kB / 400.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.427e-05/0.3267, allocations: 90.11 kB / 400.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.835e-05/0.3268, allocations: 63.52 kB / 400.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.3269, allocations: 336.7 kB / 401 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.3271, allocations: 91.94 kB / 401 MB, free: 13.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.3273, allocations: 176.8 kB / 401.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004009/0.3277, allocations: 281.8 kB / 401.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3277, allocations: 1.094 kB / 401.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006871/0.3284, allocations: 391.8 kB / 401.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.3285, allocations: 6.828 kB / 401.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.3285, allocations: 2.656 kB / 401.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002482/0.3287, allocations: 64.75 kB / 401.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002979/0.329, allocations: 69.31 kB / 402 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002176/0.3312, allocations: 2.887 MB / 404.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.3314, allocations: 15.28 kB / 404.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.3315, allocations: 11.88 kB / 404.9 MB, free: 9.848 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.0001725/0.3317, allocations: 157 kB / 405.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.724e-05/0.3317, allocations: 25.16 kB / 405.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.982e-05/0.3318, allocations: 40.41 kB / 405.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3318, allocations: 2.375 kB / 405.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.3318, allocations: 1.906 kB / 405.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006071/0.3324, allocations: 0.5598 MB / 405.7 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.3335, allocations: 0.699 MB / 406.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3335, allocations: 6.391 kB / 406.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002016/0.3337, allocations: 46.7 kB / 406.5 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002199/0.3339, allocations: 49.83 kB / 406.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.334, allocations: 4.734 kB / 406.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/0.3352, allocations: 1.49 MB / 408 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3352, allocations: 3.562 kB / 408 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006959/0.3359, allocations: 471.5 kB / 408.5 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.933e-05/0.336, allocations: 109.8 kB / 408.6 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.972e-05/0.336, allocations: 6.875 kB / 408.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.3362, allocations: 6.5 kB / 408.6 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.668e-05/0.3363, allocations: 14.62 kB / 408.6 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.3363, allocations: 17.77 kB / 408.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001925/0.3365, allocations: 188 kB / 408.8 MB, free: 6.617 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3365, allocations: 0 / 408.8 MB, free: 6.617 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004128/0.337, allocations: 89.22 kB / 408.9 MB, free: 6.605 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.0009445/0.3379, allocations: 0.9933 MB / 409.9 MB, free: 5.789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008001/0.3387, allocations: 493.5 kB / 410.4 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3387, allocations: 1.375 kB / 410.4 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003797/0.3391, allocations: 230.4 kB / 410.6 MB, free: 5.309 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009079/0.34, allocations: 180.5 kB / 410.8 MB, free: 5.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004137/0.3442, allocations: 3.135 MB / 413.9 MB, free: 3.047 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.3446, allocations: 0.7677 MB / 414.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000263/0.3449, allocations: 52.05 kB / 414.7 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.345, allocations: 88.66 kB / 414.8 MB, free: 2.262 MB / 334.1 MB Notification: Performance of SimCode: time 6.62e-07/0.345, allocations: 0 / 414.8 MB, free: 2.262 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03556/0.3806, allocations: 8.75 MB / 423.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.93, allocations: 19.77 kB / 423.6 MB, free: 13.61 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