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.001459/0.001459, 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.001727/0.001727, 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.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.15 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.1968/0.1968, allocations: 44.19 MB / 336.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 59.91 kB / 470 MB, free: 1.871 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1182, allocations: 60.83 MB / 0.5184 GB, free: 4.98 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.2693/0.3875, allocations: 28.13 MB / 0.5459 GB, free: 37.84 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01226/0.3998, allocations: 13.3 MB / 0.5589 GB, free: 34.09 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003159/0.4002, allocations: 8.969 kB / 0.5589 GB, free: 34.09 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007002/0.4009, allocations: 258 kB / 0.5591 GB, free: 34.04 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008424/0.4093, allocations: 3.671 MB / 0.5627 GB, free: 33.38 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006127/0.4155, allocations: 2.376 MB / 0.565 GB, free: 32.58 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.4165, allocations: 0.8977 MB / 0.5659 GB, free: 32.37 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000331/0.4168, allocations: 252.2 kB / 0.5662 GB, free: 32.34 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006362/0.4175, allocations: 445.9 kB / 0.5666 GB, free: 32.21 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002396/0.4177, allocations: 277.9 kB / 0.5668 GB, free: 32.13 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.424e-05/0.4178, allocations: 35.38 kB / 0.5669 GB, free: 32.12 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01436/0.4322, allocations: 7.221 MB / 0.5739 GB, free: 31.96 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002645/0.4325, allocations: 104 kB / 0.574 GB, free: 31.94 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004452/0.4329, allocations: 221 kB / 0.5742 GB, free: 31.88 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01609/0.449, allocations: 4.416 MB / 0.5786 GB, free: 30.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4491, allocations: 1.062 kB / 0.5786 GB, free: 30.98 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4491, allocations: 0.6094 kB / 0.5786 GB, free: 30.98 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.4491, allocations: 0 / 0.5786 GB, free: 30.98 MB / 462.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.005527/0.4546, allocations: 1.285 MB / 0.5798 GB, free: 30.13 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.4547, allocations: 8.344 kB / 0.5798 GB, free: 30.13 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.332e-05/0.4548, allocations: 69.2 kB / 0.5799 GB, free: 30.07 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001787/0.4566, allocations: 210.8 kB / 0.5801 GB, free: 30.04 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006773/0.4572, allocations: 380.7 kB / 0.5805 GB, free: 29.75 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.543e-05/0.4573, allocations: 26.09 kB / 0.5805 GB, free: 29.73 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.115e-05/0.4574, allocations: 27.34 kB / 0.5805 GB, free: 29.73 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.459, allocations: 0.5937 MB / 0.5811 GB, free: 29.46 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.4591, allocations: 1.375 kB / 0.5811 GB, free: 29.46 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/0.4591, allocations: 16.55 kB / 0.5811 GB, free: 29.45 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.4591, allocations: 9.844 kB / 0.5811 GB, free: 29.45 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.4609, allocations: 0.5449 MB / 0.5816 GB, free: 29.32 MB / 462.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.002836/0.4637, allocations: 2.633 MB / 0.5842 GB, free: 27.09 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.4653, allocations: 468.2 kB / 0.5847 GB, free: 26.96 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004644/0.4658, allocations: 195.8 kB / 0.5848 GB, free: 26.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04803/0.5138, allocations: 24.32 MB / 0.6086 GB, free: 8.402 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.5139, allocations: 36.88 kB / 0.6086 GB, free: 8.359 MB / 462.1 MB Notification: Performance of pre-optimization done (n=25): time 3.136e-06/0.5139, allocations: 1.688 kB / 0.6086 GB, free: 8.359 MB / 462.1 MB Notification: Performance of matching and sorting (n=25): time 0.002897/0.5168, allocations: 0.827 MB / 0.6094 GB, free: 7.941 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.5168, allocations: 105.8 kB / 0.6095 GB, free: 7.816 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003087/0.5172, allocations: 315.3 kB / 0.6098 GB, free: 7.605 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.5172, allocations: 34.94 kB / 0.6099 GB, free: 7.566 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.5173, allocations: 208.1 kB / 0.6101 GB, free: 7.379 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.757e-05/0.5174, allocations: 89.22 kB / 0.6102 GB, free: 7.301 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.85e-05/0.5175, allocations: 71.05 kB / 0.6102 GB, free: 7.254 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.725e-05/0.5175, allocations: 339.1 kB / 0.6105 GB, free: 6.922 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004006/0.5179, allocations: 149.6 kB / 0.6107 GB, free: 6.852 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004401/0.5184, allocations: 240.4 kB / 0.6109 GB, free: 6.664 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007999/0.5192, allocations: 379.5 kB / 0.6113 GB, free: 6.418 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.5192, allocations: 4 kB / 0.6113 GB, free: 6.414 MB / 462.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001019/0.5202, allocations: 452.3 kB / 0.6117 GB, free: 6.18 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.5203, allocations: 5.188 kB / 0.6117 GB, free: 6.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.5203, allocations: 4.281 kB / 0.6117 GB, free: 6.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.5203, allocations: 7.844 kB / 0.6117 GB, free: 6.176 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003436/0.5206, allocations: 90.53 kB / 0.6118 GB, free: 6.148 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.5207, allocations: 4.562 kB / 0.6118 GB, free: 6.148 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003189/0.521, allocations: 57.16 kB / 0.6119 GB, free: 6.113 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.529e-05/0.521, allocations: 19.05 kB / 0.6119 GB, free: 6.105 MB / 462.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.0001497/0.5212, allocations: 156 kB / 0.612 GB, free: 5.965 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.862e-05/0.5213, allocations: 36.95 kB / 0.6121 GB, free: 5.945 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002063/0.5233, allocations: 1.909 MB / 0.6139 GB, free: 4.844 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.263e-05/0.5234, allocations: 37.02 kB / 0.614 GB, free: 4.816 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.5234, allocations: 0.5625 kB / 0.614 GB, free: 4.816 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.5234, allocations: 3.984 kB / 0.614 GB, free: 4.812 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008079/0.5242, allocations: 1.021 MB / 0.615 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.5242, allocations: 0.8125 kB / 0.615 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003236/0.5246, allocations: 76.62 kB / 0.6151 GB, free: 4.047 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.5246, allocations: 3.031 kB / 0.6151 GB, free: 4.047 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.5246, allocations: 10.2 kB / 0.6151 GB, free: 4.039 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.5246, allocations: 10.75 kB / 0.6151 GB, free: 4.031 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.5246, allocations: 0 / 0.6151 GB, free: 4.031 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.5259, allocations: 1.103 MB / 0.6162 GB, free: 3.383 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.526, allocations: 166.1 kB / 0.6163 GB, free: 3.223 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.7e-05/0.5261, allocations: 27.41 kB / 0.6163 GB, free: 3.203 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002797/0.5264, allocations: 30.19 kB / 0.6164 GB, free: 3.188 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.742e-05/0.5265, allocations: 33.8 kB / 0.6164 GB, free: 3.168 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.5265, allocations: 12.39 kB / 0.6164 GB, free: 3.164 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000296/0.5268, allocations: 328.9 kB / 0.6167 GB, free: 2.965 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5268, allocations: 4 kB / 0.6167 GB, free: 2.961 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004868/0.5317, allocations: 1.005 MB / 0.6177 GB, free: 2.055 MB / 462.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.009912/0.5416, allocations: 2.734 MB / 0.6204 GB, free: 15.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.5432, allocations: 0.6121 MB / 0.621 GB, free: 14.71 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.5432, allocations: 0 / 0.621 GB, free: 14.71 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007457/0.544, allocations: 0.5205 MB / 0.6215 GB, free: 14.19 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/0.5453, allocations: 219 kB / 0.6217 GB, free: 14 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.5566, allocations: 5.026 MB / 0.6266 GB, free: 8.836 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005186/0.5571, allocations: 0.9677 MB / 0.6275 GB, free: 7.836 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005224/0.5577, allocations: 274.8 kB / 0.6278 GB, free: 7.582 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003232/0.558, allocations: 259.3 kB / 0.6281 GB, free: 7.328 MB / 478.1 MB Notification: Performance of SimCode: time 7.61e-07/0.558, allocations: 0 / 0.6281 GB, free: 7.328 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08188/0.6399, allocations: 46.73 MB / 0.6737 GB, free: 9.047 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.49, allocations: 5.094 kB / 0.6737 GB, free: 9.043 MB / 0.5137 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