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.001147/0.001147, allocations: 117.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 208.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 75.88 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3096, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.02185/0.3315, allocations: 20.36 MB / 0.5504 GB, free: 13.01 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006476/0.338, allocations: 4.29 MB / 0.5546 GB, free: 9.07 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000835/0.3388, allocations: 19.88 kB / 0.5546 GB, free: 9.051 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.3399, allocations: 310 kB / 0.5549 GB, free: 8.746 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002576/0.3426, allocations: 0.8706 MB / 0.5558 GB, free: 7.871 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002663/0.3452, allocations: 0.9085 MB / 0.5567 GB, free: 6.969 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002494/0.3478, allocations: 1.801 MB / 0.5584 GB, free: 5.16 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009325/0.3487, allocations: 465.4 kB / 0.5589 GB, free: 4.703 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002151/0.3509, allocations: 0.9418 MB / 0.5598 GB, free: 3.758 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001242/0.3521, allocations: 0.6305 MB / 0.5604 GB, free: 3.125 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002238/0.3524, allocations: 60 kB / 0.5604 GB, free: 3.066 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001094/0.3535, allocations: 311.6 kB / 0.5607 GB, free: 2.762 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004309/0.3539, allocations: 263.3 kB / 0.561 GB, free: 2.504 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007865/0.3547, allocations: 394.2 kB / 0.5614 GB, free: 2.117 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002025/0.3567, allocations: 1.09 MB / 0.5624 GB, free: 1.027 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.3568, allocations: 4 kB / 0.5624 GB, free: 1.023 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3568, allocations: 0 / 0.5624 GB, free: 1.023 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.877e-05/0.3568, allocations: 0 / 0.5624 GB, free: 1.023 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.002817/0.3596, allocations: 1.067 MB / 0.5635 GB, free: 15.9 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.3597, allocations: 12.03 kB / 0.5635 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002042/0.3599, allocations: 98.61 kB / 0.5636 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004701/0.3604, allocations: 100.4 kB / 0.5637 GB, free: 15.69 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.3615, allocations: 0.5253 MB / 0.5642 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.3616, allocations: 104.9 kB / 0.5643 GB, free: 15.01 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.3618, allocations: 56.08 kB / 0.5643 GB, free: 14.96 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.363, allocations: 0.8252 MB / 0.5652 GB, free: 14.06 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.3631, allocations: 0 / 0.5652 GB, free: 14.06 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.76e-05/0.3632, allocations: 24 kB / 0.5652 GB, free: 14.04 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-05/0.3632, allocations: 36.98 kB / 0.5652 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.3643, allocations: 0.6478 MB / 0.5658 GB, free: 13.35 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.004878/0.3692, allocations: 4.214 MB / 0.57 GB, free: 8.848 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008726/0.3701, allocations: 411 kB / 0.5704 GB, free: 8.441 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003314/0.3704, allocations: 209.4 kB / 0.5706 GB, free: 8.234 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004892/0.3709, allocations: 0.5028 MB / 0.571 GB, free: 7.621 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.371, allocations: 38.83 kB / 0.5711 GB, free: 7.574 MB / 430.1 MB Notification: Performance of pre-optimization done (n=40): time 1.833e-06/0.371, allocations: 4 kB / 0.5711 GB, free: 7.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=45): time 0.003223/0.3742, allocations: 1.533 MB / 0.5726 GB, free: 5.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.3743, allocations: 132.5 kB / 0.5727 GB, free: 5.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006606/0.375, allocations: 0.5771 MB / 0.5733 GB, free: 5.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.853e-05/0.375, allocations: 37.7 kB / 0.5733 GB, free: 5.188 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000258/0.3753, allocations: 359.9 kB / 0.5737 GB, free: 4.832 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.3754, allocations: 170.6 kB / 0.5738 GB, free: 4.664 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.3756, allocations: 138.6 kB / 0.5739 GB, free: 4.523 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.3758, allocations: 382.7 kB / 0.5743 GB, free: 4.141 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004075/0.3762, allocations: 221.9 kB / 0.5745 GB, free: 3.926 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005944/0.3768, allocations: 0.5201 MB / 0.575 GB, free: 3.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.3778, allocations: 0.7796 MB / 0.5758 GB, free: 2.363 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.3778, allocations: 4 kB / 0.5758 GB, free: 2.359 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001813/0.3797, allocations: 0.9378 MB / 0.5767 GB, free: 1.414 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.3797, allocations: 14.38 kB / 0.5767 GB, free: 1.402 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.3797, allocations: 12 kB / 0.5767 GB, free: 1.391 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001128/0.3808, allocations: 264.6 kB / 0.577 GB, free: 1.129 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.3813, allocations: 135.8 kB / 0.5771 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009308/0.3822, allocations: 0.8657 MB / 0.578 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004631/0.3827, allocations: 28.06 kB / 0.578 GB, free: 80 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.659e-05/0.3828, allocations: 32 kB / 0.578 GB, free: 48 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.0003163/0.3831, allocations: 245.5 kB / 0.5783 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.3832, allocations: 71.58 kB / 0.5783 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.3846, allocations: 0.7152 MB / 0.579 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.3846, allocations: 4 kB / 0.579 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.3846, allocations: 7.938 kB / 0.579 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.3846, allocations: 0 / 0.579 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/0.3868, allocations: 1.393 MB / 0.5804 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.3868, allocations: 4 kB / 0.5804 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009987/0.3878, allocations: 196 kB / 0.5806 GB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002494/0.3881, allocations: 60.69 kB / 0.5806 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-05/0.3881, allocations: 15.98 kB / 0.5807 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002413/0.3905, allocations: 2.976 MB / 0.5836 GB, free: 9.996 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.3906, allocations: 7.969 kB / 0.5836 GB, free: 9.988 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.3921, allocations: 1.001 MB / 0.5845 GB, free: 8.941 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002767/0.3924, allocations: 200.6 kB / 0.5847 GB, free: 8.727 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.3925, allocations: 23.98 kB / 0.5848 GB, free: 8.703 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003901/0.3929, allocations: 12 kB / 0.5848 GB, free: 8.691 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.361e-05/0.393, allocations: 43.83 kB / 0.5848 GB, free: 8.648 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.756e-05/0.3931, allocations: 19.98 kB / 0.5848 GB, free: 8.629 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004822/0.3936, allocations: 423.1 kB / 0.5852 GB, free: 8.211 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3936, allocations: 0 / 0.5852 GB, free: 8.211 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007965/0.3944, allocations: 211.8 kB / 0.5854 GB, free: 8.004 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.002148/0.3965, allocations: 1.684 MB / 0.5871 GB, free: 6.277 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.3977, allocations: 0.6089 MB / 0.5877 GB, free: 5.668 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3977, allocations: 0 / 0.5877 GB, free: 5.668 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.3989, allocations: 490 kB / 0.5881 GB, free: 5.176 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.4005, allocations: 377.9 kB / 0.5885 GB, free: 4.816 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009556/0.4101, allocations: 6.552 MB / 0.5949 GB, free: 13.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005444/0.4106, allocations: 0.9423 MB / 0.5958 GB, free: 12.91 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006869/0.4114, allocations: 198.9 kB / 0.596 GB, free: 12.73 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003431/0.4117, allocations: 235.4 kB / 0.5962 GB, free: 12.5 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4117, allocations: 0 / 0.5962 GB, free: 12.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05381/0.4655, allocations: 22.15 MB / 0.6179 GB, free: 6.676 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.33, allocations: 15 kB / 0.6179 GB, free: 6.668 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