Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_3_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.001266/0.001267, allocations: 108.7 kB / 16.41 MB, free: 6.02 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.001237/0.001237, allocations: 192 kB / 17.34 MB, free: 5.605 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.404/1.404, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2099/0.2099, allocations: 43.53 MB / 314.1 MB, free: 448 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.00202/0.00202, allocations: 69.44 kB / 441.3 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09849/0.1005, allocations: 57.78 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03145/0.132, allocations: 28.14 MB / 0.5149 GB, free: 44 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01662/0.1487, allocations: 13.31 MB / 0.5279 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003534/0.1491, allocations: 11.94 kB / 0.5279 GB, free: 2.676 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007526/0.1499, allocations: 250.4 kB / 0.5281 GB, free: 2.43 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2206/0.3704, allocations: 3.636 MB / 0.5317 GB, free: 4.582 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007821/0.3783, allocations: 2.369 MB / 0.534 GB, free: 4.566 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001387/0.3797, allocations: 0.8959 MB / 0.5349 GB, free: 4.566 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005363/0.3802, allocations: 249.9 kB / 0.5351 GB, free: 4.555 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009025/0.3811, allocations: 443.5 kB / 0.5355 GB, free: 4.547 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003276/0.3815, allocations: 269.2 kB / 0.5358 GB, free: 4.547 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.177e-05/0.3815, allocations: 32.94 kB / 0.5358 GB, free: 4.547 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01356/0.3951, allocations: 7.222 MB / 0.5429 GB, free: 4.527 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.3953, allocations: 101.6 kB / 0.543 GB, free: 4.527 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003598/0.3957, allocations: 218.3 kB / 0.5432 GB, free: 4.527 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009464/0.4052, allocations: 4.425 MB / 0.5475 GB, free: 4.344 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4052, allocations: 0 / 0.5475 GB, free: 4.344 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4052, allocations: 0 / 0.5475 GB, free: 4.344 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.4052, allocations: 0 / 0.5475 GB, free: 4.344 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.003776/0.409, allocations: 1.279 MB / 0.5487 GB, free: 3.582 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.4091, allocations: 13.89 kB / 0.5488 GB, free: 3.578 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.969e-05/0.4091, allocations: 68.36 kB / 0.5488 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.4109, allocations: 210.7 kB / 0.549 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005661/0.4114, allocations: 379.6 kB / 0.5494 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.879e-05/0.4115, allocations: 27.69 kB / 0.5494 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.143e-05/0.4115, allocations: 27.03 kB / 0.5494 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.413, allocations: 0.5986 MB / 0.55 GB, free: 3.141 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.413, allocations: 2.328 kB / 0.55 GB, free: 3.141 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/0.4131, allocations: 16.19 kB / 0.55 GB, free: 3.141 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.4131, allocations: 7.656 kB / 0.55 GB, free: 3.141 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/0.4147, allocations: 0.5442 MB / 0.5506 GB, free: 3.137 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.002547/0.4173, allocations: 2.628 MB / 0.5531 GB, free: 1.219 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.4188, allocations: 469.5 kB / 0.5536 GB, free: 1.191 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004441/0.4192, allocations: 201 kB / 0.5538 GB, free: 1.184 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04911/0.4683, allocations: 24.3 MB / 0.5775 GB, free: 14.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/0.4684, allocations: 34.72 kB / 0.5775 GB, free: 14.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 1.833e-06/0.4684, allocations: 0 / 0.5775 GB, free: 14.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002966/0.4714, allocations: 0.8274 MB / 0.5784 GB, free: 13.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.778e-05/0.4715, allocations: 110.3 kB / 0.5785 GB, free: 13.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003856/0.4719, allocations: 311 kB / 0.5788 GB, free: 13.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.4719, allocations: 33.52 kB / 0.5788 GB, free: 13.37 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.4721, allocations: 210.7 kB / 0.579 GB, free: 13.21 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.255e-05/0.4722, allocations: 88.91 kB / 0.5791 GB, free: 13.13 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.4723, allocations: 70.06 kB / 0.5791 GB, free: 13.08 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.4725, allocations: 337.3 kB / 0.5795 GB, free: 12.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004346/0.4729, allocations: 148.1 kB / 0.5796 GB, free: 12.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005072/0.4735, allocations: 240.4 kB / 0.5798 GB, free: 12.42 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009083/0.4744, allocations: 382.2 kB / 0.5802 GB, free: 12.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.4744, allocations: 0 / 0.5802 GB, free: 12.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001097/0.4755, allocations: 451.3 kB / 0.5806 GB, free: 11.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.4755, allocations: 4 kB / 0.5806 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.4755, allocations: 7.984 kB / 0.5806 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.4756, allocations: 7.938 kB / 0.5806 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003607/0.4759, allocations: 85 kB / 0.5807 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.4759, allocations: 4 kB / 0.5807 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003315/0.4763, allocations: 54.56 kB / 0.5808 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.286e-05/0.4763, allocations: 19.11 kB / 0.5808 GB, free: 11.61 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: 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.0001978/0.4765, allocations: 160.8 kB / 0.581 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.761e-05/0.4766, allocations: 47.02 kB / 0.581 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002556/0.4792, allocations: 1.917 MB / 0.5829 GB, free: 9.938 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.264e-05/0.4792, allocations: 35.08 kB / 0.5829 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4792, allocations: 4 kB / 0.5829 GB, free: 9.902 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.4793, allocations: 0 / 0.5829 GB, free: 9.902 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.4804, allocations: 1.013 MB / 0.5839 GB, free: 8.852 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.4804, allocations: 7.438 kB / 0.5839 GB, free: 8.848 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003381/0.4808, allocations: 71.94 kB / 0.584 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.4808, allocations: 0 / 0.584 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.4808, allocations: 15.45 kB / 0.584 GB, free: 8.766 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.4808, allocations: 3.938 kB / 0.584 GB, free: 8.762 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.4808, allocations: 4 kB / 0.584 GB, free: 8.758 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.4825, allocations: 1.097 MB / 0.5851 GB, free: 7.641 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.4827, allocations: 172.2 kB / 0.5852 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.98e-05/0.4828, allocations: 23.78 kB / 0.5853 GB, free: 7.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/0.4831, allocations: 31.91 kB / 0.5853 GB, free: 7.398 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.4832, allocations: 31.95 kB / 0.5853 GB, free: 7.367 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.4833, allocations: 12 kB / 0.5853 GB, free: 7.355 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003841/0.4837, allocations: 327.1 kB / 0.5856 GB, free: 7.039 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4837, allocations: 3.844 kB / 0.5856 GB, free: 7.039 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003701/0.4874, allocations: 0.9982 MB / 0.5866 GB, free: 6.039 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: 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.008446/0.4958, allocations: 2.742 MB / 0.5893 GB, free: 3.383 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.4972, allocations: 0.6084 MB / 0.5899 GB, free: 2.785 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4973, allocations: 0 / 0.5899 GB, free: 2.785 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007963/0.4981, allocations: 0.5205 MB / 0.5904 GB, free: 2.273 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.4993, allocations: 224.8 kB / 0.5906 GB, free: 2.059 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.51, allocations: 5.044 MB / 0.5955 GB, free: 12.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006825/0.5107, allocations: 0.9677 MB / 0.5965 GB, free: 11.91 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005671/0.5113, allocations: 285.9 kB / 0.5968 GB, free: 11.64 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003923/0.5117, allocations: 255.3 kB / 0.597 GB, free: 11.39 MB / 462.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5117, allocations: 0 / 0.597 GB, free: 11.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08578/0.5975, allocations: 46.7 MB / 0.6426 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.88, allocations: 14.67 kB / 0.6426 GB, free: 12.67 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches