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.001173/0.001173, allocations: 103.3 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.001192/0.001192, allocations: 191.8 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.332/1.332, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.1958/0.1958, allocations: 43.52 MB / 313.9 MB, free: 0.5273 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.001448/0.001448, allocations: 66.89 kB / 382.8 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07683/0.07829, allocations: 57.78 MB / 440.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.0269/0.1052, allocations: 28.14 MB / 468.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01651/0.1218, allocations: 13.31 MB / 482.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004347/0.1223, allocations: 7.938 kB / 482.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009538/0.1233, allocations: 254.4 kB / 482.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01074/0.1341, allocations: 3.653 MB / 486 MB, free: 9.297 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006445/0.1405, allocations: 2.368 MB / 488.3 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.1418, allocations: 0.8886 MB / 489.2 MB, free: 6.035 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004317/0.1422, allocations: 244.7 kB / 489.5 MB, free: 5.789 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008527/0.1431, allocations: 446.2 kB / 489.9 MB, free: 5.352 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003489/0.1434, allocations: 270.9 kB / 490.2 MB, free: 5.086 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.274e-05/0.1435, allocations: 32 kB / 490.2 MB, free: 5.055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01436/0.1579, allocations: 7.059 MB / 497.3 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000225/0.1582, allocations: 95.72 kB / 497.4 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003631/0.1585, allocations: 222.9 kB / 497.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01178/0.1703, allocations: 4.417 MB / 0.4902 GB, free: 9.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.1704, allocations: 0 / 0.4902 GB, free: 9.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1704, allocations: 4 kB / 0.4902 GB, free: 9.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1704, allocations: 0 / 0.4902 GB, free: 9.246 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.003066/0.1735, allocations: 1.236 MB / 0.4914 GB, free: 7.961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.1735, allocations: 11.89 kB / 0.4914 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.177e-05/0.1736, allocations: 70.72 kB / 0.4915 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00166/0.1753, allocations: 216.2 kB / 0.4917 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005141/0.1758, allocations: 359.3 kB / 0.4921 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.361e-05/0.1758, allocations: 29.03 kB / 0.4921 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.744e-05/0.1759, allocations: 28.12 kB / 0.4921 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.1775, allocations: 0.5862 MB / 0.4927 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.1775, allocations: 4 kB / 0.4927 GB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.48e-05/0.1776, allocations: 16 kB / 0.4927 GB, free: 6.566 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.1776, allocations: 8 kB / 0.4927 GB, free: 6.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.1793, allocations: 0.5445 MB / 0.4932 GB, free: 6.012 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.00368/0.1829, allocations: 2.64 MB / 0.4958 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.1845, allocations: 458.2 kB / 0.4963 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000643/0.1852, allocations: 205.6 kB / 0.4965 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04955/0.2347, allocations: 24.21 MB / 0.5201 GB, free: 7.379 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.143e-05/0.2348, allocations: 46.48 kB / 0.5201 GB, free: 7.324 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/0.2348, allocations: 0 / 0.5201 GB, free: 7.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003047/0.2379, allocations: 0.8283 MB / 0.521 GB, free: 6.488 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/0.238, allocations: 106.8 kB / 0.5211 GB, free: 6.359 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/0.2383, allocations: 304.6 kB / 0.5213 GB, free: 6.059 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.2384, allocations: 29.7 kB / 0.5214 GB, free: 6.023 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.2385, allocations: 216.1 kB / 0.5216 GB, free: 5.805 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.662e-05/0.2386, allocations: 82.83 kB / 0.5217 GB, free: 5.723 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.2388, allocations: 77.59 kB / 0.5217 GB, free: 5.641 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.2389, allocations: 334.8 kB / 0.5221 GB, free: 5.305 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004533/0.2394, allocations: 151.9 kB / 0.5222 GB, free: 5.156 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005017/0.2399, allocations: 239 kB / 0.5224 GB, free: 4.883 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009071/0.2408, allocations: 377.1 kB / 0.5228 GB, free: 4.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2408, allocations: 0 / 0.5228 GB, free: 4.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001135/0.2419, allocations: 445.8 kB / 0.5232 GB, free: 4.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.242, allocations: 5.25 kB / 0.5232 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.242, allocations: 4 kB / 0.5232 GB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.242, allocations: 7.938 kB / 0.5232 GB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003658/0.2424, allocations: 91.86 kB / 0.5233 GB, free: 3.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.617e-06/0.2424, allocations: 4 kB / 0.5233 GB, free: 3.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003084/0.2427, allocations: 55.81 kB / 0.5234 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/0.2428, allocations: 12 kB / 0.5234 GB, free: 3.863 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.0001834/0.2429, allocations: 165.9 kB / 0.5235 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.953e-05/0.243, allocations: 31.62 kB / 0.5236 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002519/0.2456, allocations: 1.928 MB / 0.5255 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.844e-05/0.2456, allocations: 31.94 kB / 0.5255 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.2456, allocations: 0 / 0.5255 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.2456, allocations: 0 / 0.5255 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009871/0.2466, allocations: 1.023 MB / 0.5265 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.2466, allocations: 0 / 0.5265 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000343/0.247, allocations: 83.8 kB / 0.5266 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.247, allocations: 0 / 0.5266 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.175e-05/0.247, allocations: 11.94 kB / 0.5266 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.247, allocations: 0 / 0.5266 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.247, allocations: 3.984 kB / 0.5266 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1603/0.4073, allocations: 1.094 MB / 0.5276 GB, free: 93.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.4075, allocations: 164.8 kB / 0.5278 GB, free: 93.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.31e-05/0.4076, allocations: 29.48 kB / 0.5278 GB, free: 93.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003088/0.4079, allocations: 29.48 kB / 0.5279 GB, free: 93.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.408, allocations: 33.8 kB / 0.5279 GB, free: 93.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.408, allocations: 14.06 kB / 0.5279 GB, free: 93.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003463/0.4084, allocations: 329.3 kB / 0.5282 GB, free: 93.72 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4084, allocations: 0.6562 kB / 0.5282 GB, free: 93.72 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002584/0.411, allocations: 0.9896 MB / 0.5292 GB, free: 93.69 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.005879/0.4169, allocations: 2.706 MB / 0.5318 GB, free: 92.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.4185, allocations: 0.6326 MB / 0.5324 GB, free: 92.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.4185, allocations: 0.9688 kB / 0.5324 GB, free: 92.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006569/0.4192, allocations: 0.5218 MB / 0.533 GB, free: 92.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.4204, allocations: 224.4 kB / 0.5332 GB, free: 92.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007146/0.4275, allocations: 5.062 MB / 0.5381 GB, free: 90.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.428, allocations: 0.9675 MB / 0.5391 GB, free: 90.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005251/0.4285, allocations: 285.1 kB / 0.5393 GB, free: 90.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/0.4288, allocations: 260.3 kB / 0.5396 GB, free: 89.87 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4288, allocations: 0 / 0.5396 GB, free: 89.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06527/0.4941, allocations: 46.66 MB / 0.5851 GB, free: 49.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.36, allocations: 19.62 kB / 0.5852 GB, free: 49.27 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 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.mat","/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