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.001373/0.001373, allocations: 100.8 kB / 16.4 MB, free: 6 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.001428/0.001428, allocations: 193.3 kB / 17.34 MB, free: 5.582 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.295/1.295, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2003/0.2003, allocations: 43.52 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.001538/0.001538, allocations: 73.8 kB / 441.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.103, allocations: 57.78 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03001/0.133, allocations: 28.15 MB / 0.5149 GB, free: 32 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.1496, allocations: 13.3 MB / 0.5279 GB, free: 2.684 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000474/0.1501, allocations: 11.94 kB / 0.5279 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007399/0.1509, allocations: 242.4 kB / 0.5281 GB, free: 2.434 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2287/0.3797, allocations: 3.656 MB / 0.5317 GB, free: 4.488 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005923/0.3856, allocations: 2.363 MB / 0.534 GB, free: 4.473 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.3868, allocations: 0.8988 MB / 0.5349 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003836/0.3872, allocations: 245.5 kB / 0.5351 GB, free: 4.457 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007153/0.388, allocations: 454.2 kB / 0.5355 GB, free: 4.453 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003129/0.3883, allocations: 269.2 kB / 0.5358 GB, free: 4.449 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.219e-05/0.3883, allocations: 33.41 kB / 0.5358 GB, free: 4.449 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01434/0.4027, allocations: 7.227 MB / 0.5429 GB, free: 4.43 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002228/0.4029, allocations: 103 kB / 0.543 GB, free: 4.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004206/0.4034, allocations: 218.1 kB / 0.5432 GB, free: 4.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01312/0.4165, allocations: 4.419 MB / 0.5475 GB, free: 4.246 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.4166, allocations: 0 / 0.5475 GB, free: 4.246 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4166, allocations: 0 / 0.5475 GB, free: 4.246 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.4166, allocations: 1.719 kB / 0.5475 GB, free: 4.246 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.004946/0.4215, allocations: 1.277 MB / 0.5488 GB, free: 3.484 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.4216, allocations: 13.48 kB / 0.5488 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.734e-05/0.4217, allocations: 68.95 kB / 0.5488 GB, free: 3.441 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001805/0.4235, allocations: 213.2 kB / 0.549 GB, free: 3.418 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006719/0.4242, allocations: 381.2 kB / 0.5494 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.273e-05/0.4242, allocations: 29.41 kB / 0.5494 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.585e-05/0.4243, allocations: 26.34 kB / 0.5495 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.4258, allocations: 0.5977 MB / 0.55 GB, free: 3.043 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.4258, allocations: 0.875 kB / 0.55 GB, free: 3.043 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.905e-05/0.4258, allocations: 14.78 kB / 0.5501 GB, free: 3.043 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.4258, allocations: 10.59 kB / 0.5501 GB, free: 3.043 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001627/0.4275, allocations: 0.5489 MB / 0.5506 GB, free: 3.039 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.002602/0.4301, allocations: 2.622 MB / 0.5532 GB, free: 1.121 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/0.4317, allocations: 470.7 kB / 0.5536 GB, free: 1.094 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004672/0.4321, allocations: 195.5 kB / 0.5538 GB, free: 1.086 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04916/0.4813, allocations: 24.3 MB / 0.5775 GB, free: 14.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.4814, allocations: 37.59 kB / 0.5776 GB, free: 14.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.4814, allocations: 0 / 0.5776 GB, free: 14.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.003002/0.4844, allocations: 0.8234 MB / 0.5784 GB, free: 13.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.4845, allocations: 108.4 kB / 0.5785 GB, free: 13.58 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003668/0.4849, allocations: 314.5 kB / 0.5788 GB, free: 13.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.944e-05/0.4849, allocations: 27.77 kB / 0.5788 GB, free: 13.29 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.4851, allocations: 213 kB / 0.579 GB, free: 13.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.446e-05/0.4852, allocations: 88.97 kB / 0.5791 GB, free: 13.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.4853, allocations: 67.19 kB / 0.5792 GB, free: 13.01 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4854, allocations: 344.5 kB / 0.5795 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004208/0.4858, allocations: 145.3 kB / 0.5796 GB, free: 12.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000527/0.4864, allocations: 246.2 kB / 0.5799 GB, free: 12.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008873/0.4873, allocations: 379.9 kB / 0.5802 GB, free: 12.04 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.4873, allocations: 0 / 0.5802 GB, free: 12.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001135/0.4884, allocations: 452.3 kB / 0.5806 GB, free: 11.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.4885, allocations: 4 kB / 0.5807 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.4885, allocations: 4 kB / 0.5807 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.4885, allocations: 7.938 kB / 0.5807 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/0.4888, allocations: 82.31 kB / 0.5807 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.4889, allocations: 7.188 kB / 0.5807 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000342/0.4892, allocations: 53.17 kB / 0.5808 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/0.4893, allocations: 19.56 kB / 0.5808 GB, free: 11.54 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.0001953/0.4895, allocations: 159.5 kB / 0.581 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.081e-05/0.4896, allocations: 46.3 kB / 0.581 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00246/0.492, allocations: 1.919 MB / 0.5829 GB, free: 9.895 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.902e-05/0.4921, allocations: 35.83 kB / 0.5829 GB, free: 9.859 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.4921, allocations: 0 / 0.5829 GB, free: 9.859 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.4921, allocations: 7.984 kB / 0.5829 GB, free: 9.852 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.4932, allocations: 1.01 MB / 0.5839 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.4932, allocations: 4 kB / 0.5839 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000341/0.4935, allocations: 79.73 kB / 0.584 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.4935, allocations: 0 / 0.584 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.4936, allocations: 8 kB / 0.584 GB, free: 8.715 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.4936, allocations: 3.938 kB / 0.584 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4936, allocations: 0 / 0.584 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.4952, allocations: 1.104 MB / 0.5851 GB, free: 7.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.4953, allocations: 168.3 kB / 0.5852 GB, free: 7.406 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.12e-05/0.4954, allocations: 24.59 kB / 0.5853 GB, free: 7.383 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002759/0.4957, allocations: 31.91 kB / 0.5853 GB, free: 7.352 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.4958, allocations: 35.95 kB / 0.5853 GB, free: 7.316 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.6e-05/0.4958, allocations: 11.98 kB / 0.5853 GB, free: 7.305 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003996/0.4962, allocations: 323.1 kB / 0.5857 GB, free: 6.992 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4962, allocations: 3.844 kB / 0.5857 GB, free: 6.992 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004108/0.5003, allocations: 0.9982 MB / 0.5866 GB, free: 5.992 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.008603/0.509, allocations: 2.751 MB / 0.5893 GB, free: 3.332 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001437/0.5104, allocations: 0.6076 MB / 0.5899 GB, free: 2.734 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.5105, allocations: 0 / 0.5899 GB, free: 2.734 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007963/0.5113, allocations: 0.5204 MB / 0.5904 GB, free: 2.223 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.5126, allocations: 217.8 kB / 0.5906 GB, free: 2.012 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009674/0.5223, allocations: 5.048 MB / 0.5956 GB, free: 12.85 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/0.5228, allocations: 0.9638 MB / 0.5965 GB, free: 11.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004691/0.5232, allocations: 274.8 kB / 0.5968 GB, free: 11.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003086/0.5236, allocations: 263.3 kB / 0.597 GB, free: 11.34 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5236, allocations: 0 / 0.597 GB, free: 11.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08469/0.6083, allocations: 46.71 MB / 0.6426 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.9, allocations: 15.23 kB / 0.6426 GB, free: 12.62 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