Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",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.00115/0.00115, allocations: 104.1 kB / 17.63 MB, free: 5.344 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.001149/0.001149, allocations: 192 kB / 18.56 MB, free: 4.434 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.36/1.36, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2022/0.2022, allocations: 44.19 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.91 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1122, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03035/0.1427, allocations: 28.13 MB / 497.5 MB, free: 2.031 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01569/0.1584, allocations: 13.31 MB / 0.4988 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005009/0.1589, allocations: 11.94 kB / 0.4988 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008113/0.1598, allocations: 254.3 kB / 0.4991 GB, free: 4.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01173/0.1715, allocations: 3.661 MB / 0.5027 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2232/0.3947, allocations: 2.355 MB / 0.505 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001434/0.3962, allocations: 0.9021 MB / 0.5058 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005368/0.3967, allocations: 252 kB / 0.5061 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001031/0.3978, allocations: 440.2 kB / 0.5065 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004182/0.3982, allocations: 272 kB / 0.5068 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.31e-05/0.3983, allocations: 37.28 kB / 0.5068 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0161/0.4144, allocations: 7.052 MB / 0.5137 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002977/0.4147, allocations: 103 kB / 0.5138 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005618/0.4153, allocations: 215.8 kB / 0.514 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01466/0.43, allocations: 4.425 MB / 0.5183 GB, free: 13.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.43, allocations: 1.375 kB / 0.5183 GB, free: 13.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.43, allocations: 0.6562 kB / 0.5183 GB, free: 13.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.43, allocations: 0 / 0.5183 GB, free: 13.21 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005637/0.4357, allocations: 1.238 MB / 0.5195 GB, free: 12.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.4357, allocations: 9.875 kB / 0.5195 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.26e-05/0.4358, allocations: 72.94 kB / 0.5196 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001784/0.4376, allocations: 212 kB / 0.5198 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005095/0.4382, allocations: 360.9 kB / 0.5201 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.49e-05/0.4382, allocations: 26.41 kB / 0.5202 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.699e-05/0.4383, allocations: 28.91 kB / 0.5202 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/0.4398, allocations: 0.5982 MB / 0.5208 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.4399, allocations: 0 / 0.5208 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.614e-05/0.4399, allocations: 15.59 kB / 0.5208 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.4399, allocations: 7.812 kB / 0.5208 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/0.4418, allocations: 0.5471 MB / 0.5213 GB, free: 12.06 MB / 382.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.003091/0.4449, allocations: 2.632 MB / 0.5239 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.4465, allocations: 468.2 kB / 0.5244 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000432/0.4469, allocations: 192.8 kB / 0.5245 GB, free: 9.961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04775/0.4947, allocations: 24.21 MB / 0.5482 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/0.4948, allocations: 42.62 kB / 0.5482 GB, free: 5.289 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.194e-06/0.4948, allocations: 0 / 0.5482 GB, free: 5.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003111/0.4979, allocations: 0.8249 MB / 0.549 GB, free: 4.613 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.335e-05/0.498, allocations: 106.8 kB / 0.5491 GB, free: 4.484 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003576/0.4984, allocations: 307.1 kB / 0.5494 GB, free: 4.234 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.536e-05/0.4984, allocations: 32.77 kB / 0.5494 GB, free: 4.199 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.4985, allocations: 209.5 kB / 0.5496 GB, free: 4.039 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.325e-05/0.4986, allocations: 85 kB / 0.5497 GB, free: 3.969 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.4987, allocations: 71.62 kB / 0.5498 GB, free: 3.914 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4989, allocations: 347.7 kB / 0.5501 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004226/0.4993, allocations: 145.7 kB / 0.5503 GB, free: 3.477 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004895/0.4998, allocations: 239.7 kB / 0.5505 GB, free: 3.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008516/0.5007, allocations: 382.5 kB / 0.5509 GB, free: 2.941 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.5007, allocations: 8 kB / 0.5509 GB, free: 2.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001054/0.5017, allocations: 438.1 kB / 0.5513 GB, free: 2.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.5018, allocations: 11.47 kB / 0.5513 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.5018, allocations: 0 / 0.5513 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.5018, allocations: 7.938 kB / 0.5513 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003659/0.5022, allocations: 90.92 kB / 0.5514 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.5022, allocations: 7.25 kB / 0.5514 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.5025, allocations: 54.66 kB / 0.5514 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.5026, allocations: 15.38 kB / 0.5515 GB, free: 2.445 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002149/0.5028, allocations: 155.1 kB / 0.5516 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.058e-05/0.5029, allocations: 31.62 kB / 0.5516 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002485/0.5054, allocations: 1.929 MB / 0.5535 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.073e-05/0.5054, allocations: 35.88 kB / 0.5536 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.5054, allocations: 3.938 kB / 0.5536 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.5055, allocations: 11.98 kB / 0.5536 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.5065, allocations: 1.008 MB / 0.5546 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.5065, allocations: 0 / 0.5546 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003389/0.5069, allocations: 77.98 kB / 0.5546 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.5069, allocations: 0 / 0.5546 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.5069, allocations: 8 kB / 0.5546 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.5069, allocations: 5.812 kB / 0.5546 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5069, allocations: 4 kB / 0.5547 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.5085, allocations: 1.095 MB / 0.5557 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/0.5086, allocations: 167.8 kB / 0.5559 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.369e-05/0.5087, allocations: 32.17 kB / 0.5559 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002765/0.509, allocations: 31.91 kB / 0.5559 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.184e-05/0.5091, allocations: 27.95 kB / 0.556 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.5091, allocations: 12.88 kB / 0.556 GB, free: 13.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000346/0.5095, allocations: 331.1 kB / 0.5563 GB, free: 13.58 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5095, allocations: 3.844 kB / 0.5563 GB, free: 13.58 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004105/0.5136, allocations: 0.9838 MB / 0.5573 GB, free: 12.59 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009263/0.5229, allocations: 2.741 MB / 0.5599 GB, free: 9.938 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.5249, allocations: 0.6292 MB / 0.5606 GB, free: 9.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/0.5249, allocations: 0 / 0.5606 GB, free: 9.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009263/0.5258, allocations: 0.5154 MB / 0.5611 GB, free: 8.812 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.5272, allocations: 224.8 kB / 0.5613 GB, free: 8.605 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009391/0.5366, allocations: 5.063 MB / 0.5662 GB, free: 3.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.5371, allocations: 0.9599 MB / 0.5672 GB, free: 2.449 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005228/0.5376, allocations: 285.2 kB / 0.5674 GB, free: 2.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003161/0.5379, allocations: 255.4 kB / 0.5677 GB, free: 1.93 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5379, allocations: 4 kB / 0.5677 GB, free: 1.926 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08063/0.6186, allocations: 46.69 MB / 0.6133 GB, free: 3.461 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/10.83, allocations: 11.86 kB / 0.6133 GB, free: 3.453 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches