Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001062/0.001062, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2367/0.2367, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 71.89 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3367, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.02351/0.3602, allocations: 20.36 MB / 0.5504 GB, free: 13 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007084/0.3674, allocations: 4.294 MB / 0.5546 GB, free: 9.035 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008621/0.3683, allocations: 19.88 kB / 0.5546 GB, free: 9.016 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001024/0.3693, allocations: 317.9 kB / 0.5549 GB, free: 8.703 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002117/0.3715, allocations: 0.8667 MB / 0.5558 GB, free: 7.832 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002502/0.374, allocations: 0.901 MB / 0.5566 GB, free: 6.938 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002307/0.3763, allocations: 1.809 MB / 0.5584 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006988/0.377, allocations: 461.4 kB / 0.5589 GB, free: 4.668 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002125/0.3792, allocations: 0.9379 MB / 0.5598 GB, free: 3.727 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001097/0.3803, allocations: 0.6422 MB / 0.5604 GB, free: 3.082 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.3804, allocations: 60 kB / 0.5605 GB, free: 3.023 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009454/0.3813, allocations: 303.6 kB / 0.5607 GB, free: 2.727 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002992/0.3817, allocations: 259.3 kB / 0.561 GB, free: 2.473 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004531/0.3821, allocations: 398.2 kB / 0.5614 GB, free: 2.082 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001683/0.3838, allocations: 1.09 MB / 0.5624 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.3838, allocations: 0 / 0.5624 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3838, allocations: 0 / 0.5624 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.3839, allocations: 4 kB / 0.5624 GB, free: 0.9883 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.002459/0.3863, allocations: 1.074 MB / 0.5635 GB, free: 15.86 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.209e-05/0.3864, allocations: 12.03 kB / 0.5635 GB, free: 15.85 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.3866, allocations: 94.7 kB / 0.5636 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003564/0.3869, allocations: 100.4 kB / 0.5637 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009654/0.3879, allocations: 0.5292 MB / 0.5642 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.388, allocations: 105 kB / 0.5643 GB, free: 14.97 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.3881, allocations: 52.08 kB / 0.5644 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.3898, allocations: 0.8213 MB / 0.5652 GB, free: 14.03 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.3898, allocations: 0 / 0.5652 GB, free: 14.03 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-05/0.3899, allocations: 24 kB / 0.5652 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.383e-05/0.39, allocations: 44.97 kB / 0.5652 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.391, allocations: 0.6438 MB / 0.5658 GB, free: 13.31 MB / 430.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.005431/0.3965, allocations: 4.202 MB / 0.57 GB, free: 8.82 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009203/0.3974, allocations: 419.9 kB / 0.5704 GB, free: 8.402 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003223/0.3978, allocations: 209.4 kB / 0.5706 GB, free: 8.195 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006184/0.3984, allocations: 0.5028 MB / 0.571 GB, free: 7.582 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/0.3985, allocations: 42.89 kB / 0.5711 GB, free: 7.531 MB / 430.1 MB Notification: Performance of pre-optimization done (n=40): time 2.225e-06/0.3985, allocations: 0 / 0.5711 GB, free: 7.531 MB / 430.1 MB Notification: Performance of matching and sorting (n=45): time 0.003253/0.4017, allocations: 1.53 MB / 0.5726 GB, free: 5.945 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.735e-05/0.4018, allocations: 140.5 kB / 0.5727 GB, free: 5.777 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006692/0.4025, allocations: 0.5771 MB / 0.5733 GB, free: 5.188 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.289e-05/0.4026, allocations: 33.7 kB / 0.5733 GB, free: 5.148 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002481/0.4028, allocations: 359.9 kB / 0.5737 GB, free: 4.793 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.403, allocations: 166.6 kB / 0.5738 GB, free: 4.629 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.4032, allocations: 138.6 kB / 0.5739 GB, free: 4.488 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003133/0.4035, allocations: 378.7 kB / 0.5743 GB, free: 4.109 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003787/0.4039, allocations: 229.8 kB / 0.5745 GB, free: 3.887 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000578/0.4045, allocations: 0.5201 MB / 0.575 GB, free: 3.23 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009984/0.4055, allocations: 0.7757 MB / 0.5758 GB, free: 2.328 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.4055, allocations: 4 kB / 0.5758 GB, free: 2.324 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001791/0.4073, allocations: 0.9418 MB / 0.5767 GB, free: 1.375 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.4073, allocations: 12 kB / 0.5767 GB, free: 1.363 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.4073, allocations: 8 kB / 0.5767 GB, free: 1.355 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/0.4084, allocations: 264.6 kB / 0.577 GB, free: 1.094 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004172/0.4089, allocations: 127.8 kB / 0.5771 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009624/0.4098, allocations: 0.8667 MB / 0.578 GB, free: 80 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004727/0.4103, allocations: 31.98 kB / 0.578 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-05/0.4104, allocations: 32 kB / 0.578 GB, free: 16 kB / 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.0003576/0.4108, allocations: 248.9 kB / 0.5782 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.4109, allocations: 71.58 kB / 0.5783 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001328/0.4122, allocations: 0.7135 MB / 0.579 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.768e-05/0.4122, allocations: 4 kB / 0.579 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.4123, allocations: 4 kB / 0.579 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.4123, allocations: 3.984 kB / 0.579 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002012/0.4143, allocations: 1.401 MB / 0.5804 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.4143, allocations: 7.984 kB / 0.5804 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009556/0.4153, allocations: 192 kB / 0.5806 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000251/0.4155, allocations: 64.67 kB / 0.5806 GB, free: 13.22 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.4156, allocations: 12 kB / 0.5807 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002456/0.418, allocations: 2.98 MB / 0.5836 GB, free: 9.953 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.4181, allocations: 8 kB / 0.5836 GB, free: 9.945 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.4196, allocations: 1.001 MB / 0.5846 GB, free: 8.898 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003072/0.4199, allocations: 204.6 kB / 0.5847 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.009e-05/0.42, allocations: 8 kB / 0.5848 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003812/0.4204, allocations: 23.92 kB / 0.5848 GB, free: 8.648 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.452e-05/0.4205, allocations: 35.95 kB / 0.5848 GB, free: 8.613 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.465e-05/0.4205, allocations: 27.98 kB / 0.5848 GB, free: 8.586 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005334/0.4211, allocations: 423 kB / 0.5852 GB, free: 8.168 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.625e-06/0.4211, allocations: 0 / 0.5852 GB, free: 8.168 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008019/0.4219, allocations: 207.8 kB / 0.5854 GB, free: 7.965 MB / 446.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.002362/0.4243, allocations: 1.68 MB / 0.5871 GB, free: 6.242 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.4255, allocations: 0.6125 MB / 0.5877 GB, free: 5.629 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.4255, allocations: 0 / 0.5877 GB, free: 5.629 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.4267, allocations: 486.7 kB / 0.5881 GB, free: 5.141 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/0.4283, allocations: 381.7 kB / 0.5885 GB, free: 4.777 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008989/0.4373, allocations: 6.551 MB / 0.5949 GB, free: 13.84 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005012/0.4379, allocations: 0.9346 MB / 0.5958 GB, free: 12.88 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006732/0.4385, allocations: 209 kB / 0.596 GB, free: 12.69 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003251/0.4389, allocations: 235.4 kB / 0.5962 GB, free: 12.46 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4389, allocations: 0 / 0.5962 GB, free: 12.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05244/0.4913, allocations: 22.15 MB / 0.6179 GB, free: 6.633 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.18, allocations: 448 / 0.6179 GB, free: 6.633 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.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 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.csv","/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_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,volume.medium.p Variables in the result:time,volume.medium.T,volume.medium.p