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.001099/0.001099, allocations: 103.6 kB / 16.27 MB, free: 6.41 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.001194/0.001195, allocations: 190.5 kB / 17.2 MB, free: 5.953 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.35/1.35, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.1922/0.1922, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 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.001544/0.001544, allocations: 74.72 kB / 382.8 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09148/0.09304, allocations: 57.79 MB / 440.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02929/0.1224, allocations: 28.13 MB / 468.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01621/0.1386, allocations: 13.31 MB / 482.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003693/0.139, allocations: 11.94 kB / 482.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007682/0.1399, allocations: 246.4 kB / 482.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008487/0.1484, allocations: 3.654 MB / 486 MB, free: 9.301 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005638/0.154, allocations: 2.364 MB / 488.3 MB, free: 6.934 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001056/0.1551, allocations: 0.8964 MB / 489.2 MB, free: 6.031 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004461/0.1555, allocations: 252.7 kB / 489.5 MB, free: 5.777 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007806/0.1563, allocations: 438.2 kB / 489.9 MB, free: 5.348 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004119/0.1568, allocations: 266.9 kB / 490.2 MB, free: 5.086 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.879e-05/0.1568, allocations: 36 kB / 490.2 MB, free: 5.051 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01196/0.1688, allocations: 7.059 MB / 497.3 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.169, allocations: 95.72 kB / 497.4 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002688/0.1692, allocations: 226.9 kB / 497.6 MB, free: 13.67 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008159/0.1774, allocations: 4.409 MB / 0.4902 GB, free: 9.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1774, allocations: 0 / 0.4902 GB, free: 9.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1774, allocations: 4 kB / 0.4902 GB, free: 9.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.1775, allocations: 4 kB / 0.4902 GB, free: 9.242 MB / 382.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.003041/0.1805, allocations: 1.24 MB / 0.4914 GB, free: 7.953 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.1806, allocations: 11.89 kB / 0.4914 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.904e-05/0.1807, allocations: 70.72 kB / 0.4915 GB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001708/0.1824, allocations: 216.2 kB / 0.4917 GB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005049/0.1829, allocations: 359.3 kB / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.414e-05/0.1829, allocations: 25.03 kB / 0.4921 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.33e-05/0.183, allocations: 36.12 kB / 0.4921 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.1846, allocations: 0.5862 MB / 0.4927 GB, free: 6.574 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1846, allocations: 4 kB / 0.4927 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.199e-05/0.1847, allocations: 12 kB / 0.4927 GB, free: 6.559 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.1847, allocations: 8 kB / 0.4927 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.1864, allocations: 0.5445 MB / 0.4933 GB, free: 6.004 MB / 382.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.003304/0.1898, allocations: 2.632 MB / 0.4958 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.1915, allocations: 463.2 kB / 0.4963 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004972/0.192, allocations: 204.7 kB / 0.4965 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05123/0.2433, allocations: 24.22 MB / 0.5201 GB, free: 7.367 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.2434, allocations: 38.5 kB / 0.5201 GB, free: 7.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.435e-06/0.2434, allocations: 0 / 0.5201 GB, free: 7.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003163/0.2465, allocations: 0.8283 MB / 0.521 GB, free: 6.484 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.922e-05/0.2466, allocations: 106.8 kB / 0.5211 GB, free: 6.355 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004649/0.2471, allocations: 304.6 kB / 0.5213 GB, free: 6.055 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.892e-05/0.2472, allocations: 29.7 kB / 0.5214 GB, free: 6.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/0.2474, allocations: 220.1 kB / 0.5216 GB, free: 5.797 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.366e-05/0.2475, allocations: 82.84 kB / 0.5217 GB, free: 5.715 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.2477, allocations: 69.59 kB / 0.5217 GB, free: 5.641 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.2478, allocations: 342.8 kB / 0.5221 GB, free: 5.297 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004681/0.2483, allocations: 143.9 kB / 0.5222 GB, free: 5.156 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005548/0.2489, allocations: 247 kB / 0.5224 GB, free: 4.875 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009376/0.2498, allocations: 377.1 kB / 0.5228 GB, free: 4.473 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.2499, allocations: 0 / 0.5228 GB, free: 4.473 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001135/0.251, allocations: 449.8 kB / 0.5232 GB, free: 4.027 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.251, allocations: 4 kB / 0.5232 GB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.251, allocations: 7.984 kB / 0.5232 GB, free: 4.016 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/0.2511, allocations: 7.938 kB / 0.5232 GB, free: 4.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003863/0.2515, allocations: 83.88 kB / 0.5233 GB, free: 3.926 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.2515, allocations: 4 kB / 0.5233 GB, free: 3.922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003365/0.2518, allocations: 51.78 kB / 0.5234 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.524e-05/0.2519, allocations: 19.98 kB / 0.5234 GB, free: 3.852 MB / 414.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.0002564/0.2521, allocations: 157.9 kB / 0.5235 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.2523, allocations: 35.62 kB / 0.5236 GB, free: 3.652 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002728/0.255, allocations: 1.928 MB / 0.5255 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.905e-05/0.2551, allocations: 31.95 kB / 0.5255 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.2551, allocations: 0 / 0.5255 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.2551, allocations: 0 / 0.5255 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.2562, allocations: 1.019 MB / 0.5265 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.2562, allocations: 4 kB / 0.5265 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.2565, allocations: 79.81 kB / 0.5266 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.2565, allocations: 0 / 0.5266 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.783e-05/0.2566, allocations: 15.92 kB / 0.5266 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2566, allocations: 0 / 0.5266 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2566, allocations: 0 / 0.5266 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1974/0.454, allocations: 1.095 MB / 0.5276 GB, free: 93.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.4542, allocations: 164.5 kB / 0.5278 GB, free: 93.78 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.622e-05/0.4543, allocations: 25.44 kB / 0.5278 GB, free: 93.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/0.4546, allocations: 34.08 kB / 0.5279 GB, free: 93.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.882e-05/0.4547, allocations: 31.98 kB / 0.5279 GB, free: 93.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.4547, allocations: 12.67 kB / 0.5279 GB, free: 93.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003317/0.4551, allocations: 325.3 kB / 0.5282 GB, free: 93.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4551, allocations: 0 / 0.5282 GB, free: 93.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002523/0.4576, allocations: 0.9955 MB / 0.5292 GB, free: 93.66 MB / 414.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.005775/0.4634, allocations: 2.714 MB / 0.5318 GB, free: 92.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.465, allocations: 0.6253 MB / 0.5324 GB, free: 92.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.465, allocations: 3.594 kB / 0.5324 GB, free: 92.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006603/0.4657, allocations: 0.5259 MB / 0.533 GB, free: 92.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.4669, allocations: 222 kB / 0.5332 GB, free: 92.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00776/0.4747, allocations: 5.066 MB / 0.5381 GB, free: 90.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004233/0.4752, allocations: 0.9645 MB / 0.5391 GB, free: 90.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006438/0.4758, allocations: 276.6 kB / 0.5393 GB, free: 90.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002909/0.4761, allocations: 261.4 kB / 0.5396 GB, free: 89.83 MB / 414.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4761, allocations: 3.469 kB / 0.5396 GB, free: 89.83 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06841/0.5445, allocations: 46.65 MB / 0.5851 GB, free: 49.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.02/10.57, allocations: 27.55 kB / 0.5852 GB, free: 49.25 MB / 414.1 MB (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