Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001416/0.001416, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001652/0.001652, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.4 MB, free: 9.043 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2309/0.2309, allocations: 46.11 MB / 343.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 77.06 kB / 417.2 MB, free: 19.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1121, allocations: 62.45 MB / 479.6 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume): time 0.04292/0.1551, allocations: 36.82 MB / 0.5043 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2697/0.4249, allocations: 16.87 MB / 0.5208 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007518/0.4257, allocations: 20.56 kB / 0.5208 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001191/0.4269, allocations: 387.6 kB / 0.5212 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01203/0.439, allocations: 3.582 MB / 0.5247 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008032/0.447, allocations: 2.849 MB / 0.5275 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002732/0.4497, allocations: 1.808 MB / 0.5292 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009736/0.4507, allocations: 0.5315 MB / 0.5297 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001697/0.4525, allocations: 0.7616 MB / 0.5305 GB, free: 8.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008764/0.4533, allocations: 0.598 MB / 0.5311 GB, free: 8.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.4535, allocations: 72.94 kB / 0.5311 GB, free: 8.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01541/0.4689, allocations: 7.36 MB / 0.5383 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003877/0.4693, allocations: 253.1 kB / 0.5386 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005642/0.4699, allocations: 427.2 kB / 0.539 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01142/0.4813, allocations: 5.083 MB / 0.5439 GB, free: 2.453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.4814, allocations: 0 / 0.5439 GB, free: 2.453 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.4814, allocations: 0 / 0.5439 GB, free: 2.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.4814, allocations: 0 / 0.5439 GB, free: 2.453 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.004091/0.4855, allocations: 1.605 MB / 0.5455 GB, free: 1.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.4856, allocations: 10.59 kB / 0.5455 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001231/0.4857, allocations: 113.3 kB / 0.5456 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002846/0.4886, allocations: 362 kB / 0.546 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006795/0.4892, allocations: 0.527 MB / 0.5465 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.901e-05/0.4893, allocations: 111.6 kB / 0.5466 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.774e-05/0.4894, allocations: 60.56 kB / 0.5467 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002439/0.4919, allocations: 1.136 MB / 0.5478 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.4919, allocations: 4 kB / 0.5478 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.183e-05/0.492, allocations: 26.11 kB / 0.5478 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-05/0.4921, allocations: 33.3 kB / 0.5478 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002663/0.4947, allocations: 1.055 MB / 0.5489 GB, free: 14.53 MB / 398.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.00656/0.5013, allocations: 5.005 MB / 0.5537 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002744/0.5041, allocations: 0.9239 MB / 0.5546 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007408/0.5048, allocations: 381.9 kB / 0.555 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04893/0.5538, allocations: 26.77 MB / 0.5812 GB, free: 9.715 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.484e-05/0.5539, allocations: 35 kB / 0.5812 GB, free: 9.672 MB / 430.1 MB Notification: Performance of pre-optimization done (n=47): time 2.514e-06/0.5539, allocations: 0 / 0.5812 GB, free: 9.672 MB / 430.1 MB Notification: Performance of matching and sorting (n=47): time 0.007168/0.561, allocations: 1.973 MB / 0.5831 GB, free: 7.648 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.593e-05/0.5612, allocations: 115.2 kB / 0.5832 GB, free: 7.512 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008412/0.562, allocations: 0.5949 MB / 0.5838 GB, free: 6.91 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.022e-05/0.5621, allocations: 33.7 kB / 0.5838 GB, free: 6.871 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002566/0.5624, allocations: 326.3 kB / 0.5841 GB, free: 6.551 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.5625, allocations: 153.8 kB / 0.5843 GB, free: 6.402 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002471/0.5628, allocations: 134.2 kB / 0.5844 GB, free: 6.266 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.563, allocations: 370.8 kB / 0.5848 GB, free: 5.895 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000716/0.5637, allocations: 327.6 kB / 0.5851 GB, free: 5.578 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008215/0.5645, allocations: 493.6 kB / 0.5856 GB, free: 5.031 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.566, allocations: 0.7357 MB / 0.5863 GB, free: 4.234 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.566, allocations: 4 kB / 0.5863 GB, free: 4.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002383/0.5684, allocations: 1.047 MB / 0.5873 GB, free: 3.168 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.5684, allocations: 7.938 kB / 0.5873 GB, free: 3.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.5685, allocations: 4 kB / 0.5873 GB, free: 3.156 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.5697, allocations: 421.8 kB / 0.5877 GB, free: 2.738 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004527/0.5702, allocations: 119.8 kB / 0.5878 GB, free: 2.621 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/0.5722, allocations: 1.627 MB / 0.5894 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008093/0.573, allocations: 119.2 kB / 0.5895 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.391e-05/0.5731, allocations: 27.98 kB / 0.5896 GB, free: 0.7969 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.0004054/0.5735, allocations: 221.7 kB / 0.5898 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.5738, allocations: 63.25 kB / 0.5898 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004422/0.5782, allocations: 3.274 MB / 0.593 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.824e-05/0.5782, allocations: 43.88 kB / 0.5931 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.5783, allocations: 0 / 0.5931 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.5783, allocations: 3.984 kB / 0.5931 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001739/0.58, allocations: 1.568 MB / 0.5946 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.58, allocations: 0 / 0.5946 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003418/0.5804, allocations: 75.94 kB / 0.5947 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/0.5818, allocations: 0.8818 MB / 0.5955 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.119e-05/0.5819, allocations: 12 kB / 0.5956 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002549/0.5845, allocations: 2.287 MB / 0.5978 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.5845, allocations: 11.86 kB / 0.5978 GB, free: 8.262 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00329/0.5878, allocations: 2.265 MB / 0.6 GB, free: 5.973 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005012/0.5883, allocations: 291 kB / 0.6003 GB, free: 5.668 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001863/0.5885, allocations: 35.62 kB / 0.6003 GB, free: 5.633 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006704/0.5892, allocations: 59.94 kB / 0.6004 GB, free: 5.574 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.5894, allocations: 64.47 kB / 0.6004 GB, free: 5.508 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.409e-05/0.5894, allocations: 20 kB / 0.6005 GB, free: 5.488 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000646/0.5901, allocations: 0.5185 MB / 0.601 GB, free: 4.969 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5901, allocations: 0 / 0.601 GB, free: 4.969 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003668/0.5938, allocations: 1.167 MB / 0.6021 GB, free: 3.801 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.01006/0.6038, allocations: 3.802 MB / 0.6058 GB, free: 84 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003145/0.607, allocations: 1.211 MB / 0.607 GB, free: 14.87 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.6071, allocations: 9.125 kB / 0.607 GB, free: 14.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00152/0.6086, allocations: 0.8729 MB / 0.6079 GB, free: 13.99 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/0.6105, allocations: 375.5 kB / 0.6082 GB, free: 13.63 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01405/0.6246, allocations: 9.16 MB / 0.6172 GB, free: 4.266 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006335/0.6253, allocations: 1.157 MB / 0.6183 GB, free: 3.082 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007493/0.626, allocations: 354.8 kB / 0.6186 GB, free: 2.738 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004421/0.6265, allocations: 411.3 kB / 0.619 GB, free: 2.336 MB / 462.1 MB Notification: Performance of SimCode: time 4.41e-07/0.6265, allocations: 0 / 0.619 GB, free: 2.336 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09477/0.7213, allocations: 60.82 MB / 0.6784 GB, free: 5.719 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004177/0.7217, allocations: 291.2 kB / 0.6787 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.093/5.814, allocations: 2.672 kB / 0.6787 GB, free: 5.328 MB / 0.5137 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches