Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.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.Vessels.TestVolume,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",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.002019/0.002019, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.002414/0.002415, allocations: 194 kB / 18.12 MB, free: 5.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.434/1.434, allocations: 222.9 MB / 241.8 MB, free: 15.56 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.2255/0.2255, allocations: 44.17 MB / 336.1 MB, free: 3.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001292, allocations: 56.16 kB / 407.8 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1221, allocations: 60.82 MB / 468.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume): time 0.04759/0.1698, allocations: 37.41 MB / 0.4942 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2878/0.4576, allocations: 17.84 MB / 0.5116 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008055/0.4584, allocations: 22.81 kB / 0.5116 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001267/0.4597, allocations: 379 kB / 0.512 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01167/0.4714, allocations: 3.262 MB / 0.5152 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009906/0.4813, allocations: 2.661 MB / 0.5178 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003918/0.4853, allocations: 2.421 MB / 0.5201 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001066/0.4864, allocations: 490 kB / 0.5206 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001458/0.4878, allocations: 0.6721 MB / 0.5213 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007876/0.4886, allocations: 0.5891 MB / 0.5218 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.4887, allocations: 39.25 kB / 0.5219 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01734/0.5061, allocations: 7.337 MB / 0.529 GB, free: 9.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003466/0.5065, allocations: 219.3 kB / 0.5292 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007392/0.5072, allocations: 392.1 kB / 0.5296 GB, free: 9.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01205/0.5193, allocations: 5.028 MB / 0.5345 GB, free: 6.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.5193, allocations: 2.375 kB / 0.5345 GB, free: 6.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5193, allocations: 0 / 0.5345 GB, free: 6.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.5193, allocations: 0 / 0.5345 GB, free: 6.957 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.004079/0.5234, allocations: 1.607 MB / 0.5361 GB, free: 5.836 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.5235, allocations: 12.44 kB / 0.5361 GB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.5236, allocations: 111.1 kB / 0.5362 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002679/0.5263, allocations: 371.2 kB / 0.5366 GB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006511/0.5269, allocations: 0.5195 MB / 0.5371 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.815e-05/0.527, allocations: 112.9 kB / 0.5372 GB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-05/0.5271, allocations: 61.5 kB / 0.5372 GB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002331/0.5295, allocations: 1.135 MB / 0.5384 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.5295, allocations: 0 / 0.5384 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.403e-05/0.5296, allocations: 24.5 kB / 0.5384 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.016e-05/0.5296, allocations: 34.77 kB / 0.5384 GB, free: 4.324 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/0.532, allocations: 1.053 MB / 0.5394 GB, free: 3.816 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.005813/0.5379, allocations: 5.012 MB / 0.5443 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002706/0.5406, allocations: 0.9145 MB / 0.5452 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007469/0.5413, allocations: 389.5 kB / 0.5456 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04788/0.5892, allocations: 24.23 MB / 0.5693 GB, free: 2.926 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.731e-05/0.5893, allocations: 50.92 kB / 0.5693 GB, free: 2.867 MB / 414.1 MB Notification: Performance of pre-optimization done (n=47): time 3.065e-06/0.5893, allocations: 0 / 0.5693 GB, free: 2.867 MB / 414.1 MB Notification: Performance of matching and sorting (n=47): time 0.007114/0.5965, allocations: 1.966 MB / 0.5712 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.5965, allocations: 111.2 kB / 0.5713 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007829/0.5973, allocations: 0.5964 MB / 0.5719 GB, free: 120 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.492e-05/0.5974, allocations: 37.7 kB / 0.5719 GB, free: 76 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/0.5976, allocations: 318.3 kB / 0.5723 GB, free: 15.76 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.5978, allocations: 156.2 kB / 0.5724 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002355/0.5981, allocations: 130.2 kB / 0.5725 GB, free: 15.48 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.5982, allocations: 378.7 kB / 0.5729 GB, free: 15.1 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007211/0.5989, allocations: 325.1 kB / 0.5732 GB, free: 14.78 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008211/0.5998, allocations: 481.6 kB / 0.5737 GB, free: 14.25 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.6012, allocations: 0.7381 MB / 0.5744 GB, free: 13.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.106e-06/0.6012, allocations: 4 kB / 0.5744 GB, free: 13.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002316/0.6036, allocations: 1.051 MB / 0.5754 GB, free: 12.38 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.6036, allocations: 11.88 kB / 0.5754 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.6036, allocations: 8 kB / 0.5754 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/0.6048, allocations: 421.8 kB / 0.5758 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004557/0.6053, allocations: 115.8 kB / 0.5759 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001946/0.6073, allocations: 1.627 MB / 0.5775 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007276/0.608, allocations: 103.3 kB / 0.5776 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.741e-05/0.6081, allocations: 31.98 kB / 0.5777 GB, free: 10.02 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 9 (Volume.regularFlow[1],Volume.regularFlow[2],Sink.medium.phase,FlowSource.medium.phase,Volume.inFlow[2],Volume.inFlow[1],Volume.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,1), (3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003812/0.6085, allocations: 230.1 kB / 0.5779 GB, free: 9.781 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.6087, allocations: 67.38 kB / 0.5779 GB, free: 9.715 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004895/0.6136, allocations: 3.263 MB / 0.5811 GB, free: 6.457 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.106e-05/0.6137, allocations: 43.92 kB / 0.5812 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.6137, allocations: 0 / 0.5812 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.6137, allocations: 3.984 kB / 0.5812 GB, free: 6.41 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001945/0.6157, allocations: 1.572 MB / 0.5827 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.6157, allocations: 0 / 0.5827 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003674/0.6161, allocations: 79.86 kB / 0.5828 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001619/0.6177, allocations: 0.8932 MB / 0.5837 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.019e-05/0.6178, allocations: 12.75 kB / 0.5837 GB, free: 3.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002629/0.6204, allocations: 2.286 MB / 0.5859 GB, free: 1.484 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.6204, allocations: 7.969 kB / 0.5859 GB, free: 1.477 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003578/0.624, allocations: 2.271 MB / 0.5881 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005366/0.6246, allocations: 295 kB / 0.5884 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000209/0.6248, allocations: 36.5 kB / 0.5884 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006831/0.6255, allocations: 51.94 kB / 0.5885 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/0.6257, allocations: 64.47 kB / 0.5886 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.862e-05/0.6257, allocations: 23.98 kB / 0.5886 GB, free: 14.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007063/0.6264, allocations: 0.5146 MB / 0.5891 GB, free: 14.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6264, allocations: 0 / 0.5891 GB, free: 14.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003914/0.6304, allocations: 1.163 MB / 0.5902 GB, free: 13.03 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: 27 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,1), (3,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009401/0.6398, allocations: 3.802 MB / 0.5939 GB, free: 9.293 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002581/0.6424, allocations: 1.13 MB / 0.595 GB, free: 8.168 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.6424, allocations: 0 / 0.595 GB, free: 8.168 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001768/0.6442, allocations: 0.8694 MB / 0.5959 GB, free: 7.301 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002652/0.6469, allocations: 357.5 kB / 0.5962 GB, free: 6.957 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01684/0.6637, allocations: 9.148 MB / 0.6052 GB, free: 13.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007455/0.6645, allocations: 1.15 MB / 0.6063 GB, free: 12.43 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008819/0.6654, allocations: 364.6 kB / 0.6066 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005015/0.6659, allocations: 407.3 kB / 0.607 GB, free: 11.68 MB / 462.1 MB Notification: Performance of SimCode: time 6.92e-07/0.6659, allocations: 0 / 0.607 GB, free: 11.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09615/0.7621, allocations: 59.87 MB / 0.6655 GB, free: 68 kB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002625/0.7624, allocations: 292.2 kB / 0.6658 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.868/5.63, allocations: 4 kB / 0.6658 GB, free: 15.68 MB / 0.5137 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestVolume/TestVolume.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches