Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",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.001377/0.001377, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001629/0.001629, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.385/1.385, allocations: 222.9 MB / 242.3 MB, free: 15.2 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.2164/0.2164, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001707/0.001708, allocations: 59 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.129, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03369/0.1627, allocations: 28.12 MB / 497.5 MB, free: 2.043 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01652/0.1793, allocations: 13.31 MB / 0.4988 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005387/0.1798, allocations: 7.938 kB / 0.4988 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008906/0.1807, allocations: 246.4 kB / 0.4991 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01129/0.1921, allocations: 3.674 MB / 0.5026 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2102/0.4024, allocations: 2.351 MB / 0.5049 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.4036, allocations: 0.8928 MB / 0.5058 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004105/0.404, allocations: 245 kB / 0.506 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007467/0.4048, allocations: 439.7 kB / 0.5065 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003215/0.4051, allocations: 271.1 kB / 0.5067 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.127e-05/0.4052, allocations: 32.62 kB / 0.5068 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01294/0.4181, allocations: 7.059 MB / 0.5136 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.4183, allocations: 102.9 kB / 0.5137 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004085/0.4188, allocations: 221.9 kB / 0.514 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01075/0.4295, allocations: 4.407 MB / 0.5183 GB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4295, allocations: 0 / 0.5183 GB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.4296, allocations: 2.031 kB / 0.5183 GB, free: 13.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.4296, allocations: 3.562 kB / 0.5183 GB, free: 13.25 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.004086/0.4337, allocations: 1.224 MB / 0.5195 GB, free: 12.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.4337, allocations: 10.47 kB / 0.5195 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.217e-05/0.4338, allocations: 66.83 kB / 0.5195 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001696/0.4355, allocations: 214.3 kB / 0.5197 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004586/0.436, allocations: 366.4 kB / 0.5201 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.436, allocations: 27.91 kB / 0.5201 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.7e-05/0.4361, allocations: 26.88 kB / 0.5201 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.4375, allocations: 0.5794 MB / 0.5207 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.4375, allocations: 3.656 kB / 0.5207 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.156e-05/0.4376, allocations: 20.62 kB / 0.5207 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.4376, allocations: 7.75 kB / 0.5207 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.4391, allocations: 0.5233 MB / 0.5212 GB, free: 12.1 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.002767/0.4419, allocations: 2.628 MB / 0.5238 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.4435, allocations: 461.2 kB / 0.5243 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004049/0.4439, allocations: 189 kB / 0.5244 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04718/0.4911, allocations: 24.21 MB / 0.5481 GB, free: 5.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.369e-05/0.4911, allocations: 45.2 kB / 0.5481 GB, free: 5.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.465e-06/0.4912, allocations: 0 / 0.5481 GB, free: 5.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002785/0.4939, allocations: 0.7872 MB / 0.5489 GB, free: 4.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.494, allocations: 102.8 kB / 0.549 GB, free: 4.613 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003454/0.4944, allocations: 316.1 kB / 0.5493 GB, free: 4.355 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.233e-05/0.4944, allocations: 29.33 kB / 0.5493 GB, free: 4.324 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.4946, allocations: 206.9 kB / 0.5495 GB, free: 4.168 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.011e-05/0.4946, allocations: 86.38 kB / 0.5496 GB, free: 4.094 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.4947, allocations: 66.59 kB / 0.5497 GB, free: 4.047 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.4949, allocations: 341.2 kB / 0.55 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003853/0.4953, allocations: 145.4 kB / 0.5501 GB, free: 3.617 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004488/0.4957, allocations: 232.4 kB / 0.5503 GB, free: 3.395 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007662/0.4965, allocations: 365.1 kB / 0.5507 GB, free: 3.105 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4965, allocations: 0 / 0.5507 GB, free: 3.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009515/0.4975, allocations: 422.3 kB / 0.5511 GB, free: 2.789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.4975, allocations: 4 kB / 0.5511 GB, free: 2.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.4975, allocations: 4 kB / 0.5511 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.4975, allocations: 7.938 kB / 0.5511 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003161/0.4979, allocations: 82.88 kB / 0.5512 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.4979, allocations: 4 kB / 0.5512 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002934/0.4982, allocations: 55.44 kB / 0.5512 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.144e-05/0.4982, allocations: 19.05 kB / 0.5513 GB, free: 2.637 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: 5 (Opening.y,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.0001932/0.4984, allocations: 150.7 kB / 0.5514 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.233e-05/0.4985, allocations: 39.52 kB / 0.5514 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002403/0.5009, allocations: 1.904 MB / 0.5533 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.087e-05/0.501, allocations: 35.88 kB / 0.5533 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.501, allocations: 0 / 0.5533 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.501, allocations: 5.953 kB / 0.5533 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.502, allocations: 1.014 MB / 0.5543 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.5021, allocations: 0 / 0.5543 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003052/0.5024, allocations: 75.12 kB / 0.5544 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.5024, allocations: 4 kB / 0.5544 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.5024, allocations: 4 kB / 0.5544 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.5024, allocations: 7.938 kB / 0.5544 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.5024, allocations: 0 / 0.5544 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.5039, allocations: 1.076 MB / 0.5555 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.504, allocations: 163.9 kB / 0.5556 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.003e-05/0.5041, allocations: 19.75 kB / 0.5557 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002612/0.5044, allocations: 36.78 kB / 0.5557 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.667e-05/0.5045, allocations: 27.95 kB / 0.5557 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.5045, allocations: 15.98 kB / 0.5557 GB, free: 14.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003311/0.5048, allocations: 327.1 kB / 0.556 GB, free: 13.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5048, allocations: 0 / 0.556 GB, free: 13.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004787/0.5096, allocations: 0.9877 MB / 0.557 GB, free: 12.88 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: 19 ($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,Opening.y) * 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.008501/0.5182, allocations: 2.719 MB / 0.5597 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001729/0.5199, allocations: 0.6077 MB / 0.5603 GB, free: 9.648 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.5199, allocations: 0 / 0.5603 GB, free: 9.648 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007052/0.5206, allocations: 0.5083 MB / 0.5607 GB, free: 9.145 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.522, allocations: 220.5 kB / 0.561 GB, free: 8.938 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009214/0.5312, allocations: 5.006 MB / 0.5658 GB, free: 3.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.5317, allocations: 0.9599 MB / 0.5668 GB, free: 2.836 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005073/0.5323, allocations: 280.1 kB / 0.5671 GB, free: 2.574 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003033/0.5326, allocations: 255.3 kB / 0.5673 GB, free: 2.324 MB / 414.1 MB Notification: Performance of SimCode: time 1.263e-06/0.5326, allocations: 0 / 0.5673 GB, free: 2.324 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08144/0.614, allocations: 46.53 MB / 0.6127 GB, free: 4.027 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.812/10.43, allocations: 16.45 kB / 0.6127 GB, free: 4.016 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_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_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches