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.001733/0.001733, allocations: 112.8 kB / 17.78 MB, free: 5.277 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.00196/0.00196, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.422/1.422, allocations: 222.9 MB / 242.4 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.2275/0.2275, allocations: 44.19 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 63.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3436, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03236/0.3759, allocations: 28.12 MB / 0.5459 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01743/0.3934, allocations: 13.3 MB / 0.5589 GB, free: 2.617 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004145/0.3939, allocations: 7.938 kB / 0.5589 GB, free: 2.609 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007921/0.3947, allocations: 254.4 kB / 0.5591 GB, free: 2.359 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0108/0.4055, allocations: 3.659 MB / 0.5627 GB, free: 14.7 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007797/0.4133, allocations: 2.368 MB / 0.565 GB, free: 12.34 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001626/0.415, allocations: 0.9002 MB / 0.5659 GB, free: 11.43 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000474/0.4155, allocations: 244.8 kB / 0.5661 GB, free: 11.19 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009176/0.4164, allocations: 438.2 kB / 0.5665 GB, free: 10.76 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00039/0.4168, allocations: 274.9 kB / 0.5668 GB, free: 10.49 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.158e-05/0.4169, allocations: 32 kB / 0.5668 GB, free: 10.46 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01642/0.4333, allocations: 7.212 MB / 0.5739 GB, free: 3.242 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000207/0.4336, allocations: 107.7 kB / 0.574 GB, free: 3.137 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003405/0.4339, allocations: 219 kB / 0.5742 GB, free: 2.922 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.4449, allocations: 4.416 MB / 0.5785 GB, free: 14.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.4449, allocations: 0 / 0.5785 GB, free: 14.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.188e-06/0.445, allocations: 4 kB / 0.5785 GB, free: 14.49 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.445, allocations: 0 / 0.5785 GB, free: 14.49 MB / 446.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.003259/0.4482, allocations: 1.263 MB / 0.5797 GB, free: 13.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.4483, allocations: 8.031 kB / 0.5797 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.787e-05/0.4484, allocations: 74.72 kB / 0.5798 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001766/0.4502, allocations: 216.4 kB / 0.58 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006961/0.4509, allocations: 375.5 kB / 0.5804 GB, free: 12.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/0.4509, allocations: 29.03 kB / 0.5804 GB, free: 12.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.048e-05/0.451, allocations: 32.12 kB / 0.5804 GB, free: 12.41 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.4526, allocations: 0.5783 MB / 0.581 GB, free: 11.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.4526, allocations: 7.938 kB / 0.581 GB, free: 11.78 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.367e-05/0.4527, allocations: 23.94 kB / 0.581 GB, free: 11.76 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.4527, allocations: 8 kB / 0.581 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.4544, allocations: 0.5211 MB / 0.5815 GB, free: 11.23 MB / 446.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.003411/0.4578, allocations: 2.629 MB / 0.5841 GB, free: 8.363 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/0.4594, allocations: 458.2 kB / 0.5845 GB, free: 7.906 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004686/0.4599, allocations: 192.7 kB / 0.5847 GB, free: 7.715 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05252/0.5124, allocations: 24.31 MB / 0.6085 GB, free: 12.52 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.5125, allocations: 38.56 kB / 0.6085 GB, free: 12.47 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 3.717e-06/0.5125, allocations: 0 / 0.6085 GB, free: 12.47 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002971/0.5155, allocations: 0.8013 MB / 0.6093 GB, free: 11.66 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.633e-05/0.5156, allocations: 106.8 kB / 0.6094 GB, free: 11.53 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003969/0.516, allocations: 304.6 kB / 0.6097 GB, free: 11.22 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.516, allocations: 29.7 kB / 0.6097 GB, free: 11.19 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.5162, allocations: 212.5 kB / 0.6099 GB, free: 10.97 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.346e-05/0.5163, allocations: 91.22 kB / 0.61 GB, free: 10.88 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.5164, allocations: 65.69 kB / 0.6101 GB, free: 10.81 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.5166, allocations: 346.8 kB / 0.6104 GB, free: 10.46 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004174/0.5171, allocations: 135.9 kB / 0.6105 GB, free: 10.33 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005141/0.5176, allocations: 235 kB / 0.6107 GB, free: 10.06 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008528/0.5184, allocations: 357.1 kB / 0.6111 GB, free: 9.68 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.5185, allocations: 4 kB / 0.6111 GB, free: 9.676 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001058/0.5195, allocations: 430 kB / 0.6115 GB, free: 9.25 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.5196, allocations: 15.94 kB / 0.6115 GB, free: 9.234 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.371e-06/0.5196, allocations: 0 / 0.6115 GB, free: 9.234 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.5196, allocations: 11.94 kB / 0.6115 GB, free: 9.223 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003342/0.5199, allocations: 75.89 kB / 0.6116 GB, free: 9.148 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.52, allocations: 7.984 kB / 0.6116 GB, free: 9.141 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.5202, allocations: 39.77 kB / 0.6116 GB, free: 9.102 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-05/0.5203, allocations: 19.98 kB / 0.6117 GB, free: 9.082 MB / 478.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.000235/0.5205, allocations: 157.8 kB / 0.6118 GB, free: 8.918 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.576e-05/0.5206, allocations: 39.77 kB / 0.6119 GB, free: 8.879 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002649/0.5233, allocations: 1.905 MB / 0.6137 GB, free: 6.961 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.443e-05/0.5233, allocations: 31.95 kB / 0.6137 GB, free: 6.93 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.5233, allocations: 0 / 0.6137 GB, free: 6.93 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.5233, allocations: 3.984 kB / 0.6137 GB, free: 6.926 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/0.5245, allocations: 1.016 MB / 0.6147 GB, free: 5.859 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.952e-06/0.5245, allocations: 3.984 kB / 0.6147 GB, free: 5.855 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003204/0.5248, allocations: 75.88 kB / 0.6148 GB, free: 5.781 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.5248, allocations: 0 / 0.6148 GB, free: 5.781 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.36e-05/0.5248, allocations: 11.94 kB / 0.6148 GB, free: 5.77 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.5249, allocations: 0 / 0.6148 GB, free: 5.77 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5249, allocations: 0 / 0.6148 GB, free: 5.77 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.5265, allocations: 1.081 MB / 0.6159 GB, free: 4.672 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.5267, allocations: 172.2 kB / 0.616 GB, free: 4.484 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.99e-05/0.5267, allocations: 23.78 kB / 0.6161 GB, free: 4.461 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.527, allocations: 23.97 kB / 0.6161 GB, free: 4.438 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.5271, allocations: 43.89 kB / 0.6161 GB, free: 4.395 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.5271, allocations: 8 kB / 0.6161 GB, free: 4.387 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004142/0.5276, allocations: 331 kB / 0.6165 GB, free: 4.062 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5276, allocations: 0 / 0.6165 GB, free: 4.062 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002674/0.5303, allocations: 0.9981 MB / 0.6174 GB, free: 3.062 MB / 478.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.006587/0.5369, allocations: 2.714 MB / 0.6201 GB, free: 336 kB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.5382, allocations: 0.5873 MB / 0.6207 GB, free: 15.74 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.5382, allocations: 4 kB / 0.6207 GB, free: 15.73 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007514/0.539, allocations: 0.5163 MB / 0.6212 GB, free: 15.21 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/0.5402, allocations: 212 kB / 0.6214 GB, free: 15.01 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008743/0.549, allocations: 4.966 MB / 0.6262 GB, free: 9.902 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006158/0.5496, allocations: 0.9677 MB / 0.6272 GB, free: 8.91 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005055/0.5501, allocations: 290 kB / 0.6274 GB, free: 8.637 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000348/0.5505, allocations: 251.4 kB / 0.6277 GB, free: 8.391 MB / 494.1 MB Notification: Performance of SimCode: time 1.242e-06/0.5505, allocations: 0 / 0.6277 GB, free: 8.391 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0901/0.6406, allocations: 46.55 MB / 0.6731 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/12.01, allocations: 9.094 kB / 0.6731 GB, free: 10 MB / 0.5294 GB (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