Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.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.TestMixingVolumes,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestMixingVolumes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestMixingVolumes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001719/0.00172, allocations: 121.6 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002092/0.002092, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2122/0.2122, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 71.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3318, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes): time 0.01805/0.3498, allocations: 17.74 MB / 0.5478 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008948/0.3588, allocations: 7.014 MB / 0.5547 GB, free: 8.961 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008359/0.3597, allocations: 19.88 kB / 0.5547 GB, free: 8.941 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001003/0.3607, allocations: 381.6 kB / 0.5551 GB, free: 8.566 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001582/0.3623, allocations: 0.6917 MB / 0.5557 GB, free: 7.871 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003465/0.3658, allocations: 1.332 MB / 0.557 GB, free: 6.551 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002741/0.3686, allocations: 2.531 MB / 0.5595 GB, free: 4.016 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009021/0.3695, allocations: 0.6663 MB / 0.5602 GB, free: 3.332 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001668/0.3712, allocations: 1.063 MB / 0.5612 GB, free: 2.266 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.3722, allocations: 0.7551 MB / 0.5619 GB, free: 1.508 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001666/0.3724, allocations: 88 kB / 0.562 GB, free: 1.422 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001351/0.3737, allocations: 0.5656 MB / 0.5626 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003585/0.3741, allocations: 375 kB / 0.5629 GB, free: 500 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006037/0.3747, allocations: 0.5173 MB / 0.5634 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002151/0.3769, allocations: 1.619 MB / 0.565 GB, free: 14.35 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.3769, allocations: 0 / 0.565 GB, free: 14.35 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.3769, allocations: 3.984 kB / 0.565 GB, free: 14.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.3769, allocations: 0 / 0.565 GB, free: 14.34 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.002389/0.3793, allocations: 1.312 MB / 0.5663 GB, free: 12.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.3794, allocations: 8.031 kB / 0.5663 GB, free: 12.97 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001519/0.3795, allocations: 143.2 kB / 0.5664 GB, free: 12.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000443/0.38, allocations: 128.3 kB / 0.5666 GB, free: 12.7 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009081/0.3809, allocations: 0.6149 MB / 0.5672 GB, free: 12.04 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001791/0.3811, allocations: 248.8 kB / 0.5674 GB, free: 11.76 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.3812, allocations: 92.06 kB / 0.5675 GB, free: 11.67 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.383, allocations: 1.293 MB / 0.5688 GB, free: 10.24 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.101e-05/0.383, allocations: 7.938 kB / 0.5688 GB, free: 10.23 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.864e-05/0.3832, allocations: 51.97 kB / 0.5688 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.188e-05/0.3832, allocations: 45.23 kB / 0.5689 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.3847, allocations: 0.961 MB / 0.5698 GB, free: 9.18 MB / 430.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.006321/0.391, allocations: 7.087 MB / 0.5767 GB, free: 1.625 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005283/0.3915, allocations: 312.4 kB / 0.577 GB, free: 1.312 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.3918, allocations: 173.4 kB / 0.5772 GB, free: 1.141 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002453/0.3943, allocations: 2.815 MB / 0.5799 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.3943, allocations: 42.8 kB / 0.58 GB, free: 13.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=28): time 1.703e-06/0.3943, allocations: 0 / 0.58 GB, free: 13.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.002179/0.3965, allocations: 1.125 MB / 0.5811 GB, free: 12.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.3966, allocations: 55.41 kB / 0.5811 GB, free: 12.53 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009815/0.3976, allocations: 0.872 MB / 0.582 GB, free: 11.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.3976, allocations: 37.7 kB / 0.582 GB, free: 11.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004148/0.398, allocations: 0.5882 MB / 0.5826 GB, free: 11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.777e-05/0.3981, allocations: 138.9 kB / 0.5827 GB, free: 10.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002792/0.3984, allocations: 242.7 kB / 0.5829 GB, free: 10.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.3986, allocations: 402.7 kB / 0.5833 GB, free: 10.22 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003928/0.399, allocations: 246.5 kB / 0.5836 GB, free: 9.984 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008817/0.3999, allocations: 0.9621 MB / 0.5845 GB, free: 8.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.4013, allocations: 1.316 MB / 0.5858 GB, free: 6.984 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.4013, allocations: 8 kB / 0.5858 GB, free: 6.977 MB / 446.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001829/0.4032, allocations: 1.22 MB / 0.587 GB, free: 5.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.4032, allocations: 19.94 kB / 0.587 GB, free: 5.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.498e-05/0.4032, allocations: 28 kB / 0.587 GB, free: 5.703 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.047e-05/0.4033, allocations: 32 kB / 0.5871 GB, free: 5.672 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007891/0.4041, allocations: 279.5 kB / 0.5873 GB, free: 5.398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.347e-05/0.4041, allocations: 51.8 kB / 0.5874 GB, free: 5.348 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006842/0.4048, allocations: 48 kB / 0.5874 GB, free: 5.301 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.27e-05/0.4049, allocations: 75.98 kB / 0.5875 GB, free: 5.227 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * Number of states: 0 () * Number of discrete variables: 12 (mixingVolume1.regularFlow[1],mixingVolume1.regularFlow[2],mixingVolume1.regularFlow[3],mixingVolume2.regularFlow[1],mixingVolume2.regularFlow[2],mixingVolume2.regularFlow[3],mixingVolume2.inFlow[3],mixingVolume2.inFlow[2],mixingVolume2.inFlow[1],mixingVolume1.inFlow[3],mixingVolume1.inFlow[2],mixingVolume1.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 154 * 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.0004317/0.4054, allocations: 333.1 kB / 0.5878 GB, free: 4.891 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.4055, allocations: 91.44 kB / 0.5879 GB, free: 4.801 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008678/0.4064, allocations: 490.4 kB / 0.5884 GB, free: 4.312 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.4064, allocations: 8 kB / 0.5884 GB, free: 4.305 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.4064, allocations: 0 / 0.5884 GB, free: 4.305 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4064, allocations: 3.984 kB / 0.5884 GB, free: 4.301 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001636/0.4081, allocations: 1.236 MB / 0.5896 GB, free: 2.953 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.4081, allocations: 7.969 kB / 0.5896 GB, free: 2.945 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002858/0.4084, allocations: 75.89 kB / 0.5897 GB, free: 2.871 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.4084, allocations: 0 / 0.5897 GB, free: 2.871 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.4084, allocations: 12 kB / 0.5897 GB, free: 2.859 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.4084, allocations: 0 / 0.5897 GB, free: 2.859 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4084, allocations: 4 kB / 0.5897 GB, free: 2.855 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009269/0.4094, allocations: 0.6412 MB / 0.5903 GB, free: 2.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.4097, allocations: 212.3 kB / 0.5905 GB, free: 1.953 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.4098, allocations: 12 kB / 0.5905 GB, free: 1.941 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.4102, allocations: 23.98 kB / 0.5905 GB, free: 1.918 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.4103, allocations: 24.03 kB / 0.5906 GB, free: 1.895 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.419e-05/0.4103, allocations: 19.98 kB / 0.5906 GB, free: 1.875 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007766/0.4111, allocations: 0.597 MB / 0.5912 GB, free: 1.266 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4111, allocations: 0 / 0.5912 GB, free: 1.266 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001334/0.4125, allocations: 303.7 kB / 0.5915 GB, free: 0.9688 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (mixingVolume1.medium.T,mixingVolume2.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001868/0.4143, allocations: 1.429 MB / 0.5929 GB, free: 15.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.4155, allocations: 0.6487 MB / 0.5935 GB, free: 14.86 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4155, allocations: 0 / 0.5935 GB, free: 14.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002203/0.4157, allocations: 146.4 kB / 0.5936 GB, free: 14.72 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/0.4175, allocations: 428.3 kB / 0.594 GB, free: 14.31 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009714/0.4272, allocations: 8.021 MB / 0.6019 GB, free: 5.414 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000568/0.4278, allocations: 0.9973 MB / 0.6028 GB, free: 4.387 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009278/0.4287, allocations: 317.7 kB / 0.6031 GB, free: 4.082 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003464/0.4291, allocations: 299.3 kB / 0.6034 GB, free: 3.789 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4291, allocations: 4 kB / 0.6034 GB, free: 3.785 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05667/0.4858, allocations: 24.72 MB / 0.6276 GB, free: 11.28 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.2/9.686, allocations: 7.25 kB / 0.6276 GB, free: 11.27 MB / 494.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestMixingVolumes.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestMixingVolumes/TestMixingVolumes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches