Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_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.001269/0.001269, allocations: 104.3 kB / 16.4 MB, free: 6.445 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.001339/0.001339, allocations: 192.2 kB / 17.34 MB, free: 5.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2129/0.2129, allocations: 43.53 MB / 314.1 MB, free: 444 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002127/0.002127, allocations: 67.89 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1134, allocations: 57.78 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03174/0.1452, allocations: 28.14 MB / 0.5149 GB, free: 56 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01711/0.1624, allocations: 13.29 MB / 0.5279 GB, free: 2.719 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003428/0.1627, allocations: 11.94 kB / 0.5279 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007905/0.1636, allocations: 246.4 kB / 0.5281 GB, free: 2.465 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2256/0.3892, allocations: 3.639 MB / 0.5317 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006058/0.3953, allocations: 2.366 MB / 0.534 GB, free: 4.516 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001194/0.3965, allocations: 0.8845 MB / 0.5348 GB, free: 4.516 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004059/0.3969, allocations: 246.9 kB / 0.5351 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007483/0.3977, allocations: 445.7 kB / 0.5355 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003314/0.398, allocations: 267.3 kB / 0.5357 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.035e-05/0.3981, allocations: 32.53 kB / 0.5358 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01568/0.4138, allocations: 7.219 MB / 0.5428 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002428/0.414, allocations: 101.9 kB / 0.5429 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005023/0.4146, allocations: 218.2 kB / 0.5431 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01363/0.4282, allocations: 4.409 MB / 0.5474 GB, free: 4.297 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.4283, allocations: 0 / 0.5474 GB, free: 4.297 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.4283, allocations: 4.25 kB / 0.5474 GB, free: 4.297 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.4283, allocations: 0 / 0.5474 GB, free: 4.297 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004933/0.4332, allocations: 1.266 MB / 0.5487 GB, free: 3.535 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.4333, allocations: 13.14 kB / 0.5487 GB, free: 3.531 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.089e-05/0.4334, allocations: 70.17 kB / 0.5488 GB, free: 3.492 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001758/0.4351, allocations: 214.9 kB / 0.549 GB, free: 3.469 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005396/0.4357, allocations: 374.2 kB / 0.5493 GB, free: 3.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/0.4357, allocations: 25.66 kB / 0.5493 GB, free: 3.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.133e-05/0.4358, allocations: 33.78 kB / 0.5494 GB, free: 3.227 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.4373, allocations: 0.5895 MB / 0.55 GB, free: 3.094 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.4373, allocations: 1.5 kB / 0.55 GB, free: 3.094 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.963e-05/0.4374, allocations: 9.875 kB / 0.55 GB, free: 3.094 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.4374, allocations: 11.34 kB / 0.55 GB, free: 3.094 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.4389, allocations: 0.5301 MB / 0.5505 GB, free: 3.09 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.002469/0.4414, allocations: 2.621 MB / 0.5531 GB, free: 1.176 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/0.4428, allocations: 461.2 kB / 0.5535 GB, free: 1.148 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004015/0.4433, allocations: 194.5 kB / 0.5537 GB, free: 1.137 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0493/0.4926, allocations: 24.3 MB / 0.5774 GB, free: 14.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.013e-05/0.4927, allocations: 37.59 kB / 0.5774 GB, free: 14.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.405e-06/0.4927, allocations: 0 / 0.5774 GB, free: 14.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002849/0.4955, allocations: 0.7884 MB / 0.5782 GB, free: 13.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.52e-05/0.4956, allocations: 106.8 kB / 0.5783 GB, free: 13.76 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003955/0.496, allocations: 315.9 kB / 0.5786 GB, free: 13.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.4961, allocations: 27.7 kB / 0.5786 GB, free: 13.47 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.4962, allocations: 208.7 kB / 0.5788 GB, free: 13.31 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.422e-05/0.4963, allocations: 88.95 kB / 0.5789 GB, free: 13.24 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.4964, allocations: 67.31 kB / 0.579 GB, free: 13.19 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.4966, allocations: 344.7 kB / 0.5793 GB, free: 12.86 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003911/0.497, allocations: 141.3 kB / 0.5795 GB, free: 12.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004638/0.4975, allocations: 233.6 kB / 0.5797 GB, free: 12.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008042/0.4983, allocations: 362.1 kB / 0.58 GB, free: 12.25 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4983, allocations: 7.938 kB / 0.58 GB, free: 12.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001021/0.4994, allocations: 418.2 kB / 0.5804 GB, free: 11.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.4994, allocations: 4 kB / 0.5804 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.4994, allocations: 4 kB / 0.5804 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/0.4994, allocations: 7.938 kB / 0.5804 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.4998, allocations: 81.97 kB / 0.5805 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.4998, allocations: 4 kB / 0.5805 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003145/0.5001, allocations: 55.69 kB / 0.5806 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.5001, allocations: 19.25 kB / 0.5806 GB, free: 11.77 MB / 446.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.000211/0.5004, allocations: 165.8 kB / 0.5808 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.101e-05/0.5005, allocations: 31.81 kB / 0.5808 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002514/0.503, allocations: 1.896 MB / 0.5826 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-05/0.503, allocations: 35.88 kB / 0.5827 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.503, allocations: 0 / 0.5827 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.5031, allocations: 0 / 0.5827 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.5042, allocations: 1.024 MB / 0.5837 GB, free: 9.074 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.5042, allocations: 0 / 0.5837 GB, free: 9.074 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003376/0.5046, allocations: 71.22 kB / 0.5837 GB, free: 9.008 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.5046, allocations: 4 kB / 0.5837 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.5046, allocations: 4 kB / 0.5837 GB, free: 9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.304e-06/0.5046, allocations: 7.938 kB / 0.5838 GB, free: 8.992 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.5047, allocations: 3.984 kB / 0.5838 GB, free: 8.988 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.5063, allocations: 1.078 MB / 0.5848 GB, free: 7.895 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001807/0.5065, allocations: 172.2 kB / 0.585 GB, free: 7.707 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.987e-05/0.5065, allocations: 19.84 kB / 0.585 GB, free: 7.688 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.5068, allocations: 31.92 kB / 0.585 GB, free: 7.656 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.5069, allocations: 35.89 kB / 0.5851 GB, free: 7.621 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.507, allocations: 11.98 kB / 0.5851 GB, free: 7.609 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003982/0.5074, allocations: 323.1 kB / 0.5854 GB, free: 7.297 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5074, allocations: 4 kB / 0.5854 GB, free: 7.293 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004305/0.5117, allocations: 0.9981 MB / 0.5864 GB, free: 6.293 MB / 446.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.009131/0.5208, allocations: 2.71 MB / 0.589 GB, free: 3.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001395/0.5223, allocations: 0.584 MB / 0.5896 GB, free: 3.105 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.5223, allocations: 0 / 0.5896 GB, free: 3.105 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007471/0.5231, allocations: 0.5157 MB / 0.5901 GB, free: 2.598 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.5243, allocations: 229.4 kB / 0.5903 GB, free: 2.383 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009886/0.5342, allocations: 4.993 MB / 0.5952 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005961/0.5349, allocations: 0.9599 MB / 0.5961 GB, free: 12.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005308/0.5354, allocations: 282.7 kB / 0.5964 GB, free: 12.03 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003323/0.5357, allocations: 259.3 kB / 0.5966 GB, free: 11.77 MB / 462.1 MB Notification: Performance of SimCode: time 6.82e-07/0.5357, allocations: 0 / 0.5966 GB, free: 11.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09202/0.6278, allocations: 46.52 MB / 0.6421 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.85, allocations: 12.06 kB / 0.6421 GB, free: 13.23 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches