Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_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.001143/0.001143, allocations: 113.4 kB / 17.78 MB, free: 5.266 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.001307/0.001307, allocations: 188.1 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2103/0.2103, allocations: 44.19 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 63.89 kB / 470.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3349, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.02269/0.3576, allocations: 20.25 MB / 0.5382 GB, free: 4.023 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00707/0.3647, allocations: 4.281 MB / 0.5424 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009323/0.3657, allocations: 23.41 kB / 0.5424 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001227/0.3669, allocations: 312.7 kB / 0.5427 GB, free: 276 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002538/0.3695, allocations: 0.8483 MB / 0.5435 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002747/0.3723, allocations: 0.9043 MB / 0.5444 GB, free: 14.9 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002723/0.3751, allocations: 1.788 MB / 0.5462 GB, free: 13.89 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.3761, allocations: 468.9 kB / 0.5466 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002392/0.3786, allocations: 0.935 MB / 0.5475 GB, free: 13.03 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001755/0.3803, allocations: 0.6297 MB / 0.5481 GB, free: 12.68 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002526/0.3806, allocations: 59.59 kB / 0.5482 GB, free: 12.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001258/0.3819, allocations: 303.9 kB / 0.5485 GB, free: 12.56 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000464/0.3823, allocations: 262.8 kB / 0.5487 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008977/0.3832, allocations: 392.3 kB / 0.5491 GB, free: 12.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002186/0.3854, allocations: 1.088 MB / 0.5502 GB, free: 11.42 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.3855, allocations: 1.531 kB / 0.5502 GB, free: 11.42 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3855, allocations: 0 / 0.5502 GB, free: 11.42 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.727e-05/0.3855, allocations: 0 / 0.5502 GB, free: 11.42 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003489/0.389, allocations: 1.055 MB / 0.5512 GB, free: 10.44 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.3891, allocations: 8.031 kB / 0.5512 GB, free: 10.43 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000184/0.3893, allocations: 102.7 kB / 0.5513 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004319/0.3897, allocations: 92.08 kB / 0.5514 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001157/0.3909, allocations: 0.5287 MB / 0.5519 GB, free: 9.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.391, allocations: 104.9 kB / 0.552 GB, free: 9.547 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.3912, allocations: 56.06 kB / 0.5521 GB, free: 9.492 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.3927, allocations: 0.8097 MB / 0.5529 GB, free: 8.609 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.3927, allocations: 4 kB / 0.5529 GB, free: 8.605 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.548e-05/0.3928, allocations: 27.98 kB / 0.5529 GB, free: 8.578 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-05/0.3929, allocations: 40.92 kB / 0.5529 GB, free: 8.535 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.3941, allocations: 0.6478 MB / 0.5536 GB, free: 7.887 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005518/0.3997, allocations: 4.209 MB / 0.5577 GB, free: 3.387 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009179/0.4006, allocations: 426.8 kB / 0.5581 GB, free: 2.969 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003535/0.401, allocations: 209.4 kB / 0.5583 GB, free: 2.762 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005187/0.4015, allocations: 0.5028 MB / 0.5588 GB, free: 2.148 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.4016, allocations: 38.89 kB / 0.5588 GB, free: 2.102 MB / 414.1 MB Notification: Performance of pre-optimization done (n=40): time 2.535e-06/0.4016, allocations: 0 / 0.5588 GB, free: 2.102 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.00343/0.405, allocations: 1.532 MB / 0.5603 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.506e-05/0.4051, allocations: 132.5 kB / 0.5604 GB, free: 360 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007323/0.4059, allocations: 0.5733 MB / 0.561 GB, free: 15.76 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/0.4059, allocations: 29.7 kB / 0.561 GB, free: 15.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002711/0.4062, allocations: 354.9 kB / 0.5614 GB, free: 15.38 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/0.4063, allocations: 165.7 kB / 0.5615 GB, free: 15.21 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/0.4066, allocations: 142.5 kB / 0.5616 GB, free: 15.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.4067, allocations: 374.7 kB / 0.562 GB, free: 14.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003917/0.4071, allocations: 221.9 kB / 0.5622 GB, free: 14.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006171/0.4078, allocations: 0.5279 MB / 0.5627 GB, free: 13.82 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.4088, allocations: 0.7718 MB / 0.5635 GB, free: 12.92 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.4088, allocations: 0 / 0.5635 GB, free: 12.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001883/0.4107, allocations: 0.9448 MB / 0.5644 GB, free: 11.96 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.4108, allocations: 8 kB / 0.5644 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.4108, allocations: 12 kB / 0.5644 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.4119, allocations: 265.3 kB / 0.5647 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.4124, allocations: 123.8 kB / 0.5648 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.4134, allocations: 0.8682 MB / 0.5656 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005296/0.4139, allocations: 31.94 kB / 0.5657 GB, free: 10.63 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.747e-05/0.414, allocations: 39.98 kB / 0.5657 GB, free: 10.59 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003406/0.4144, allocations: 239.9 kB / 0.5659 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.4145, allocations: 63.25 kB / 0.566 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001376/0.4159, allocations: 0.7236 MB / 0.5667 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.4159, allocations: 8 kB / 0.5667 GB, free: 9.555 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4159, allocations: 0 / 0.5667 GB, free: 9.555 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.416, allocations: 3.984 kB / 0.5667 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002294/0.4183, allocations: 1.404 MB / 0.5681 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.4183, allocations: 0 / 0.5681 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009998/0.4193, allocations: 195.7 kB / 0.5683 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002504/0.4195, allocations: 61 kB / 0.5683 GB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/0.4196, allocations: 12 kB / 0.5684 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00241/0.422, allocations: 2.982 MB / 0.5713 GB, free: 4.543 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.422, allocations: 3.984 kB / 0.5713 GB, free: 4.539 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.4236, allocations: 1.001 MB / 0.5722 GB, free: 3.492 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004152/0.4241, allocations: 200.2 kB / 0.5724 GB, free: 3.277 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/0.4242, allocations: 8.062 kB / 0.5724 GB, free: 3.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004194/0.4246, allocations: 20 kB / 0.5725 GB, free: 3.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.4247, allocations: 39.88 kB / 0.5725 GB, free: 3.211 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.623e-05/0.4248, allocations: 24 kB / 0.5725 GB, free: 3.188 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000567/0.4254, allocations: 423 kB / 0.5729 GB, free: 2.773 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4254, allocations: 0 / 0.5729 GB, free: 2.773 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009065/0.4263, allocations: 204 kB / 0.5731 GB, free: 2.574 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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.002303/0.4286, allocations: 1.671 MB / 0.5748 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.43, allocations: 0.6162 MB / 0.5754 GB, free: 252 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.299e-06/0.43, allocations: 0 / 0.5754 GB, free: 252 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.4313, allocations: 482.8 kB / 0.5758 GB, free: 15.76 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/0.4334, allocations: 372.8 kB / 0.5762 GB, free: 15.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.4441, allocations: 6.524 MB / 0.5825 GB, free: 8.484 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005899/0.4447, allocations: 0.9385 MB / 0.5835 GB, free: 7.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007459/0.4454, allocations: 209.7 kB / 0.5837 GB, free: 7.328 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000362/0.4458, allocations: 231.4 kB / 0.5839 GB, free: 7.102 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4458, allocations: 0 / 0.5839 GB, free: 7.102 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05667/0.5025, allocations: 22.45 MB / 0.6058 GB, free: 1.012 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.49, allocations: 15.28 kB / 0.6058 GB, free: 1 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearColdWater/LinearColdWater.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches