Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_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.00166/0.00166, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001892/0.001892, allocations: 179.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.42/1.42, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2229/0.2229, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3468, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03312/0.38, allocations: 28.13 MB / 0.5459 GB, free: 13.72 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01746/0.3975, allocations: 13.3 MB / 0.5589 GB, free: 2.598 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000433/0.398, allocations: 15.88 kB / 0.5589 GB, free: 2.582 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008405/0.3988, allocations: 250.4 kB / 0.5591 GB, free: 2.336 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01388/0.4128, allocations: 3.666 MB / 0.5627 GB, free: 14.67 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007944/0.4208, allocations: 2.367 MB / 0.565 GB, free: 12.31 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001395/0.4222, allocations: 0.9041 MB / 0.5659 GB, free: 11.4 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000426/0.4226, allocations: 244.8 kB / 0.5661 GB, free: 11.16 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008389/0.4235, allocations: 442.2 kB / 0.5666 GB, free: 10.73 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004247/0.4239, allocations: 274.9 kB / 0.5668 GB, free: 10.46 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.022e-05/0.424, allocations: 32 kB / 0.5669 GB, free: 10.43 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01576/0.4397, allocations: 7.219 MB / 0.5739 GB, free: 3.199 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002531/0.44, allocations: 103.7 kB / 0.574 GB, free: 3.098 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000405/0.4404, allocations: 226.9 kB / 0.5742 GB, free: 2.875 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0121/0.4526, allocations: 4.423 MB / 0.5785 GB, free: 14.44 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.4526, allocations: 0 / 0.5785 GB, free: 14.44 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4526, allocations: 0 / 0.5785 GB, free: 14.44 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.926e-06/0.4526, allocations: 0 / 0.5785 GB, free: 14.44 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.003379/0.456, allocations: 1.275 MB / 0.5798 GB, free: 13.11 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.4561, allocations: 16.02 kB / 0.5798 GB, free: 13.1 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.502e-05/0.4562, allocations: 58.73 kB / 0.5799 GB, free: 13.03 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001762/0.4579, allocations: 224.4 kB / 0.5801 GB, free: 12.81 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006223/0.4586, allocations: 379.5 kB / 0.5804 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.4586, allocations: 25.03 kB / 0.5805 GB, free: 12.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/0.4587, allocations: 36.12 kB / 0.5805 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.4603, allocations: 0.5862 MB / 0.5811 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.4603, allocations: 3.938 kB / 0.5811 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.932e-05/0.4604, allocations: 12 kB / 0.5811 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.4604, allocations: 8 kB / 0.5811 GB, free: 11.69 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/0.4622, allocations: 0.5484 MB / 0.5816 GB, free: 11.14 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.003254/0.4655, allocations: 2.625 MB / 0.5842 GB, free: 8.281 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.4672, allocations: 470.1 kB / 0.5846 GB, free: 7.812 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005131/0.4677, allocations: 200.7 kB / 0.5848 GB, free: 7.613 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05216/0.5199, allocations: 24.31 MB / 0.6086 GB, free: 12.41 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.852e-05/0.5199, allocations: 46.5 kB / 0.6086 GB, free: 12.35 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.134e-06/0.52, allocations: 4 kB / 0.6086 GB, free: 12.35 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003093/0.5231, allocations: 0.813 MB / 0.6094 GB, free: 11.53 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.428e-05/0.5232, allocations: 106.8 kB / 0.6095 GB, free: 11.4 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004334/0.5236, allocations: 320.4 kB / 0.6098 GB, free: 11.07 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.803e-05/0.5237, allocations: 33.7 kB / 0.6099 GB, free: 11.04 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.5239, allocations: 208.5 kB / 0.6101 GB, free: 10.82 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.786e-05/0.524, allocations: 87.25 kB / 0.6101 GB, free: 10.74 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.5241, allocations: 73.64 kB / 0.6102 GB, free: 10.66 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.5243, allocations: 338.8 kB / 0.6105 GB, free: 10.32 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004537/0.5247, allocations: 151.9 kB / 0.6107 GB, free: 10.17 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005646/0.5253, allocations: 251 kB / 0.6109 GB, free: 9.887 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009564/0.5263, allocations: 369.1 kB / 0.6113 GB, free: 9.492 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.5263, allocations: 0 / 0.6113 GB, free: 9.492 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001137/0.5274, allocations: 453.8 kB / 0.6117 GB, free: 9.043 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.5275, allocations: 4 kB / 0.6117 GB, free: 9.039 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.5275, allocations: 4 kB / 0.6117 GB, free: 9.035 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.5275, allocations: 7.938 kB / 0.6117 GB, free: 9.027 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003594/0.5279, allocations: 84.19 kB / 0.6118 GB, free: 8.945 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.5279, allocations: 11.94 kB / 0.6118 GB, free: 8.934 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000289/0.5282, allocations: 47.77 kB / 0.6119 GB, free: 8.887 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.5282, allocations: 19.98 kB / 0.6119 GB, free: 8.867 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: 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.0002121/0.5285, allocations: 161.7 kB / 0.612 GB, free: 8.699 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.939e-05/0.5285, allocations: 35.81 kB / 0.6121 GB, free: 8.664 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002718/0.5313, allocations: 1.917 MB / 0.6139 GB, free: 6.734 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.38e-05/0.5313, allocations: 31.89 kB / 0.614 GB, free: 6.703 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5313, allocations: 0 / 0.614 GB, free: 6.703 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.5313, allocations: 3.984 kB / 0.614 GB, free: 6.699 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.5326, allocations: 1.019 MB / 0.615 GB, free: 5.629 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.5326, allocations: 0 / 0.615 GB, free: 5.629 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003493/0.5329, allocations: 75.88 kB / 0.615 GB, free: 5.555 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.862e-06/0.5329, allocations: 11.98 kB / 0.615 GB, free: 5.543 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.533, allocations: 11.94 kB / 0.6151 GB, free: 5.531 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.533, allocations: 4 kB / 0.6151 GB, free: 5.527 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.533, allocations: 0 / 0.6151 GB, free: 5.527 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/0.5347, allocations: 1.097 MB / 0.6161 GB, free: 4.414 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.5349, allocations: 172.3 kB / 0.6163 GB, free: 4.227 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.975e-05/0.535, allocations: 23.77 kB / 0.6163 GB, free: 4.203 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00027/0.5352, allocations: 27.97 kB / 0.6163 GB, free: 4.176 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.5353, allocations: 31.95 kB / 0.6164 GB, free: 4.145 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.5354, allocations: 19.98 kB / 0.6164 GB, free: 4.125 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003964/0.5358, allocations: 323.1 kB / 0.6167 GB, free: 3.809 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5358, allocations: 0 / 0.6167 GB, free: 3.809 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002875/0.5387, allocations: 1.01 MB / 0.6177 GB, free: 2.797 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: 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.006673/0.5454, allocations: 2.74 MB / 0.6204 GB, free: 32 kB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001437/0.5468, allocations: 0.6076 MB / 0.621 GB, free: 15.43 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.5468, allocations: 4 kB / 0.621 GB, free: 15.42 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007853/0.5476, allocations: 0.5249 MB / 0.6215 GB, free: 14.89 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.5489, allocations: 214.2 kB / 0.6217 GB, free: 14.69 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008652/0.5575, allocations: 5.029 MB / 0.6266 GB, free: 9.516 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006421/0.5582, allocations: 0.9677 MB / 0.6275 GB, free: 8.523 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006368/0.5589, allocations: 282 kB / 0.6278 GB, free: 8.258 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003894/0.5593, allocations: 259.3 kB / 0.6281 GB, free: 8.004 MB / 494.1 MB Notification: Performance of SimCode: time 1.523e-06/0.5593, allocations: 0 / 0.6281 GB, free: 8.004 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08904/0.6483, allocations: 46.72 MB / 0.6737 GB, free: 9.449 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.91, allocations: 1.031 kB / 0.6737 GB, free: 9.449 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches