Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixingVolume1.medium.T|mixingVolume2.medium.T",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixingVolume1.medium.T|mixingVolume2.medium.T",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.001439, allocations: 197.7 kB / 16.79 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 226.5 MB / 244.1 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008093/0.0008093, allocations: 105.2 kB / 296.1 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3447/0.3447, allocations: 44.83 MB / 392.9 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002935/0.0002937, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.3492, allocations: 62.95 MB / 0.5165 GB, free: 37.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6157/0.9649, allocations: 304.2 MB / 0.8136 GB, free: 16.14 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.9652, allocations: 89.7 kB / 0.8136 GB, free: 16.09 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5841/1.549, allocations: 154.9 MB / 0.9649 GB, free: 128.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.565e-06/1.549, allocations: 0 / 0.9649 GB, free: 128.3 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.676e-05/1.549, allocations: 28 kB / 0.9649 GB, free: 128.2 MB / 0.5261 GB 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.003598/1.553, allocations: 1.136 MB / 0.966 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/1.553, allocations: 8.031 kB / 0.966 GB, free: 127 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008836/1.554, allocations: 115.9 kB / 0.9661 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001483/1.556, allocations: 0.627 MB / 0.9668 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/1.556, allocations: 248.2 kB / 0.967 GB, free: 126 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002502/1.556, allocations: 83.92 kB / 0.9671 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002282/1.558, allocations: 1.291 MB / 0.9683 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.608e-05/1.558, allocations: 7.938 kB / 0.9683 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001887/1.559, allocations: 40 kB / 0.9684 GB, free: 124.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.129e-05/1.559, allocations: 41.3 kB / 0.9684 GB, free: 124.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001838/1.561, allocations: 0.9298 MB / 0.9693 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007233/1.568, allocations: 6.59 MB / 0.9758 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004891/1.568, allocations: 304.1 kB / 0.9761 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002385/1.569, allocations: 166.8 kB / 0.9762 GB, free: 116 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002404/1.571, allocations: 2.826 MB / 0.979 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/1.571, allocations: 42.73 kB / 0.979 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 2.344e-06/1.571, allocations: 3.984 kB / 0.979 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=34): time 0.002381/1.573, allocations: 1.102 MB / 0.9801 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/1.573, allocations: 55.41 kB / 0.9801 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/1.574, allocations: 0.8717 MB / 0.981 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.302e-05/1.575, allocations: 33.7 kB / 0.981 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003071/1.575, allocations: 0.5744 MB / 0.9816 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.276e-05/1.575, allocations: 126.3 kB / 0.9817 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.129e-05/1.575, allocations: 24 kB / 0.9817 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001313/1.575, allocations: 406.6 kB / 0.9821 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003704/1.576, allocations: 242.5 kB / 0.9824 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006457/1.576, allocations: 0.9505 MB / 0.9833 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/1.577, allocations: 1.319 MB / 0.9846 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-05/1.577, allocations: 8 kB / 0.9846 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001817/1.579, allocations: 1.192 MB / 0.9857 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/1.579, allocations: 16 kB / 0.9858 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.498e-05/1.579, allocations: 32 kB / 0.9858 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.315e-05/1.579, allocations: 36.06 kB / 0.9858 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007341/1.58, allocations: 279.5 kB / 0.9861 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.903e-05/1.58, allocations: 47.8 kB / 0.9861 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008811/1.581, allocations: 67.83 kB / 0.9862 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/1.581, allocations: 79.98 kB / 0.9863 GB, free: 104.4 MB / 0.5261 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005033/1.582, allocations: 330.1 kB / 0.9866 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/1.582, allocations: 98.83 kB / 0.9867 GB, free: 104 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008541/1.583, allocations: 474 kB / 0.9871 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/1.583, allocations: 8 kB / 0.9871 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/1.583, allocations: 0 / 0.9871 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/1.583, allocations: 0 / 0.9871 GB, free: 103.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/1.584, allocations: 1.225 MB / 0.9883 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/1.584, allocations: 4 kB / 0.9883 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002638/1.585, allocations: 75.83 kB / 0.9884 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/1.585, allocations: 4 kB / 0.9884 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/1.585, allocations: 8 kB / 0.9884 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/1.585, allocations: 11.88 kB / 0.9884 GB, free: 102 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/1.585, allocations: 4.188 kB / 0.9884 GB, free: 102 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008156/1.586, allocations: 0.6443 MB / 0.9891 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003486/1.586, allocations: 207.8 kB / 0.9893 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/1.586, allocations: 15.92 kB / 0.9893 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004852/1.587, allocations: 19.94 kB / 0.9893 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.263e-05/1.587, allocations: 23.97 kB / 0.9893 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.259e-05/1.587, allocations: 27.97 kB / 0.9894 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0006817/1.587, allocations: 0.5851 MB / 0.9899 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.2e-07/1.587, allocations: 0 / 0.9899 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001352/1.589, allocations: 315.8 kB / 0.9902 GB, free: 100.1 MB / 0.5261 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009824/1.59, allocations: 430.7 kB / 0.9906 GB, free: 99.73 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001021/1.591, allocations: 0.6252 MB / 0.9912 GB, free: 99.11 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/1.591, allocations: 4 kB / 0.9913 GB, free: 99.11 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002108/1.591, allocations: 145.3 kB / 0.9914 GB, free: 98.96 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/1.593, allocations: 407.2 kB / 0.9918 GB, free: 98.58 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002927/1.596, allocations: 1.801 MB / 0.9935 GB, free: 96.72 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005421/1.597, allocations: 0.9934 MB / 0.9945 GB, free: 95.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/1.597, allocations: 83.42 kB / 0.9946 GB, free: 95.61 MB / 0.5261 GB Notification: Performance of SimCode: time 1.653e-06/1.597, allocations: 0 / 0.9946 GB, free: 95.61 MB / 0.5261 GB Notification: Performance of Templates: time 0.02278/1.62, allocations: 15.01 MB / 1.009 GB, free: 80.67 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestMixingVolumes/TestMixingVolumes.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches