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.001121/0.001121, allocations: 100.4 kB / 16.4 MB, free: 6.488 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.001082/0.001082, allocations: 188.2 kB / 17.34 MB, free: 5.734 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.312/1.312, 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.2009/0.2009, 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.001589/0.001589, allocations: 66.03 kB / 441.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.102, allocations: 57.79 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03223/0.1342, allocations: 28.15 MB / 0.5149 GB, free: 28 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.017/0.1513, allocations: 13.31 MB / 0.5279 GB, free: 2.676 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005411/0.1519, allocations: 11.94 kB / 0.5279 GB, free: 2.664 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009242/0.1529, allocations: 242.4 kB / 0.5281 GB, free: 2.426 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2532/0.4061, allocations: 3.655 MB / 0.5317 GB, free: 4.523 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006162/0.4122, allocations: 2.364 MB / 0.534 GB, free: 4.508 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00143/0.4137, allocations: 0.8972 MB / 0.5349 GB, free: 4.508 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004723/0.4142, allocations: 249.2 kB / 0.5351 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000797/0.415, allocations: 453.6 kB / 0.5355 GB, free: 4.488 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003252/0.4153, allocations: 270.4 kB / 0.5358 GB, free: 4.488 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.435e-05/0.4154, allocations: 33.59 kB / 0.5358 GB, free: 4.488 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01535/0.4307, allocations: 7.224 MB / 0.5429 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002202/0.431, allocations: 99.03 kB / 0.543 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004532/0.4315, allocations: 223.1 kB / 0.5432 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01049/0.442, allocations: 4.419 MB / 0.5475 GB, free: 4.285 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.442, allocations: 1.156 kB / 0.5475 GB, free: 4.285 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.442, allocations: 0 / 0.5475 GB, free: 4.285 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.056e-06/0.442, allocations: 0 / 0.5475 GB, free: 4.285 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.003927/0.446, allocations: 1.278 MB / 0.5488 GB, free: 3.523 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.446, allocations: 14.2 kB / 0.5488 GB, free: 3.52 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.917e-05/0.4461, allocations: 67.98 kB / 0.5488 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001677/0.4478, allocations: 213.8 kB / 0.549 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000538/0.4483, allocations: 383 kB / 0.5494 GB, free: 3.211 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.4484, allocations: 27.75 kB / 0.5494 GB, free: 3.211 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/0.4484, allocations: 26.69 kB / 0.5495 GB, free: 3.211 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.4499, allocations: 0.5957 MB / 0.55 GB, free: 3.078 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.4499, allocations: 3.406 kB / 0.55 GB, free: 3.078 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.94e-05/0.4499, allocations: 16.59 kB / 0.5501 GB, free: 3.078 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.4499, allocations: 8.5 kB / 0.5501 GB, free: 3.078 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001579/0.4515, allocations: 0.5408 MB / 0.5506 GB, free: 3.074 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.002436/0.454, allocations: 2.631 MB / 0.5532 GB, free: 1.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.4555, allocations: 467.8 kB / 0.5536 GB, free: 1.133 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004404/0.4559, allocations: 198.9 kB / 0.5538 GB, free: 1.125 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0475/0.5035, allocations: 24.3 MB / 0.5775 GB, free: 14.17 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.5035, allocations: 33.25 kB / 0.5776 GB, free: 14.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 1.783e-06/0.5035, allocations: 0 / 0.5776 GB, free: 14.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002779/0.5063, allocations: 0.8228 MB / 0.5784 GB, free: 13.76 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/0.5064, allocations: 110.8 kB / 0.5785 GB, free: 13.63 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003366/0.5067, allocations: 310 kB / 0.5788 GB, free: 13.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.5068, allocations: 33.58 kB / 0.5788 GB, free: 13.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.5069, allocations: 216 kB / 0.579 GB, free: 13.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.361e-05/0.507, allocations: 79.97 kB / 0.5791 GB, free: 13.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.5071, allocations: 73.56 kB / 0.5792 GB, free: 13.06 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.5072, allocations: 344 kB / 0.5795 GB, free: 12.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000395/0.5076, allocations: 146 kB / 0.5796 GB, free: 12.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004597/0.5081, allocations: 242.2 kB / 0.5798 GB, free: 12.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000851/0.5089, allocations: 381.5 kB / 0.5802 GB, free: 12.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.509, allocations: 0 / 0.5802 GB, free: 12.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001038/0.51, allocations: 447.9 kB / 0.5806 GB, free: 11.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.51, allocations: 8 kB / 0.5806 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.5101, allocations: 4 kB / 0.5807 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.5101, allocations: 7.938 kB / 0.5807 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.5105, allocations: 88.11 kB / 0.5807 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.5105, allocations: 4 kB / 0.5807 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.5108, allocations: 52.31 kB / 0.5808 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.209e-05/0.5109, allocations: 16.62 kB / 0.5808 GB, free: 11.59 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.0002015/0.5111, allocations: 167.9 kB / 0.581 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.276e-05/0.5112, allocations: 35.77 kB / 0.581 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002337/0.5135, allocations: 1.916 MB / 0.5829 GB, free: 9.938 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.214e-05/0.5136, allocations: 39.81 kB / 0.5829 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5136, allocations: 4 kB / 0.5829 GB, free: 9.895 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.5136, allocations: 0 / 0.5829 GB, free: 9.895 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009882/0.5146, allocations: 1.013 MB / 0.5839 GB, free: 8.844 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.5146, allocations: 0 / 0.5839 GB, free: 8.844 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003274/0.5149, allocations: 75.11 kB / 0.584 GB, free: 8.773 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.5149, allocations: 6.719 kB / 0.584 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.515, allocations: 7.625 kB / 0.584 GB, free: 8.766 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.515, allocations: 7.938 kB / 0.584 GB, free: 8.758 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.515, allocations: 4 kB / 0.584 GB, free: 8.754 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.5165, allocations: 1.104 MB / 0.5851 GB, free: 7.633 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.5166, allocations: 168.3 kB / 0.5852 GB, free: 7.449 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.572e-05/0.5167, allocations: 27.77 kB / 0.5853 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002765/0.517, allocations: 31.91 kB / 0.5853 GB, free: 7.391 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.799e-05/0.5171, allocations: 35.95 kB / 0.5853 GB, free: 7.355 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.5171, allocations: 8 kB / 0.5853 GB, free: 7.348 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003333/0.5174, allocations: 327.1 kB / 0.5857 GB, free: 7.031 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5174, allocations: 3.844 kB / 0.5857 GB, free: 7.031 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003585/0.521, allocations: 1.002 MB / 0.5866 GB, free: 6.027 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.006871/0.5279, allocations: 2.743 MB / 0.5893 GB, free: 3.379 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.5292, allocations: 0.6064 MB / 0.5899 GB, free: 2.781 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.5292, allocations: 4 kB / 0.5899 GB, free: 2.777 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006787/0.5299, allocations: 0.5098 MB / 0.5904 GB, free: 2.277 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.531, allocations: 225.1 kB / 0.5906 GB, free: 2.062 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008329/0.5394, allocations: 5.047 MB / 0.5956 GB, free: 12.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000477/0.5399, allocations: 0.9677 MB / 0.5965 GB, free: 11.91 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004645/0.5404, allocations: 289.8 kB / 0.5968 GB, free: 11.64 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003008/0.5407, allocations: 255.3 kB / 0.597 GB, free: 11.39 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5407, allocations: 0 / 0.597 GB, free: 11.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07875/0.6194, allocations: 46.71 MB / 0.6426 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/11.28, allocations: 7.234 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