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.001592/0.001592, allocations: 191 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 226.6 MB / 243.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008213/0.0008212, allocations: 103.9 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3169/0.3169, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002804/0.0002808, allocations: 8 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2966, allocations: 62.96 MB / 0.5159 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes): time 0.01211/0.3088, allocations: 16.72 MB / 0.5322 GB, free: 24.89 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006874/0.3157, allocations: 6.644 MB / 0.5387 GB, free: 20.16 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007279/0.3165, allocations: 22.31 kB / 0.5387 GB, free: 20.14 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008639/0.3173, allocations: 315 kB / 0.539 GB, free: 19.98 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.001413/0.3188, allocations: 0.694 MB / 0.5397 GB, free: 19.58 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002995/0.3218, allocations: 1.105 MB / 0.5408 GB, free: 19.04 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002824/0.3246, allocations: 3 MB / 0.5437 GB, free: 17.96 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008512/0.3255, allocations: 0.575 MB / 0.5443 GB, free: 17.75 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001607/0.3271, allocations: 0.9113 MB / 0.5452 GB, free: 17.43 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001029/0.3281, allocations: 0.7468 MB / 0.5459 GB, free: 17.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.3283, allocations: 47.25 kB / 0.5459 GB, free: 17.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00145/0.3297, allocations: 0.5244 MB / 0.5464 GB, free: 17 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004315/0.3302, allocations: 334.4 kB / 0.5468 GB, free: 16.89 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006329/0.3308, allocations: 496.4 kB / 0.5472 GB, free: 16.63 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001756/0.3326, allocations: 1.113 MB / 0.5483 GB, free: 16.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3326, allocations: 1.281 kB / 0.5483 GB, free: 16.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.3326, allocations: 0 / 0.5483 GB, free: 16.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.592e-05/0.3326, allocations: 3.938 kB / 0.5483 GB, free: 16.4 MB / 378.7 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.00231/0.3349, allocations: 1.104 MB / 0.5494 GB, free: 15.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.335, allocations: 8.375 kB / 0.5494 GB, free: 15.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000457/0.3355, allocations: 124.9 kB / 0.5495 GB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009459/0.3364, allocations: 0.5835 MB / 0.5501 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.3366, allocations: 245.9 kB / 0.5503 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.3367, allocations: 85.31 kB / 0.5504 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002008/0.3387, allocations: 1.302 MB / 0.5517 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.814e-05/0.3388, allocations: 6.375 kB / 0.5517 GB, free: 14.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.3389, allocations: 40.75 kB / 0.5517 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.249e-05/0.339, allocations: 42.11 kB / 0.5518 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001611/0.3406, allocations: 0.9624 MB / 0.5527 GB, free: 13.88 MB / 378.7 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.005839/0.3464, allocations: 7.102 MB / 0.5597 GB, free: 7.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005065/0.347, allocations: 302.2 kB / 0.5599 GB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002648/0.3472, allocations: 168.5 kB / 0.5601 GB, free: 7.426 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002019/0.3493, allocations: 2.827 MB / 0.5629 GB, free: 4.324 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.3493, allocations: 42.86 kB / 0.5629 GB, free: 4.277 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 1.964e-06/0.3493, allocations: 3.938 kB / 0.5629 GB, free: 4.273 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002129/0.3514, allocations: 1.112 MB / 0.564 GB, free: 3.543 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.824e-05/0.3515, allocations: 54.66 kB / 0.564 GB, free: 3.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009998/0.3525, allocations: 0.8691 MB / 0.5649 GB, free: 2.973 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.3525, allocations: 36.77 kB / 0.5649 GB, free: 2.934 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002657/0.3528, allocations: 0.5658 MB / 0.5655 GB, free: 2.422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.178e-05/0.3529, allocations: 143.8 kB / 0.5656 GB, free: 2.301 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.713e-05/0.3529, allocations: 21.09 kB / 0.5656 GB, free: 2.285 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.3531, allocations: 397.1 kB / 0.566 GB, free: 1.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003715/0.3534, allocations: 242.8 kB / 0.5663 GB, free: 1.797 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006241/0.3541, allocations: 0.9635 MB / 0.5672 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.3553, allocations: 1.312 MB / 0.5685 GB, free: 15.31 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.214e-05/0.3553, allocations: 7.031 kB / 0.5685 GB, free: 15.31 MB / 394.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001853/0.3572, allocations: 1.199 MB / 0.5697 GB, free: 14.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.3572, allocations: 15.12 kB / 0.5697 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.022e-05/0.3573, allocations: 26.47 kB / 0.5697 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.579e-05/0.3573, allocations: 34.34 kB / 0.5697 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007976/0.3581, allocations: 287.1 kB / 0.57 GB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.616e-05/0.3582, allocations: 54.19 kB / 0.57 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008106/0.359, allocations: 65.48 kB / 0.5701 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.3591, allocations: 74.45 kB / 0.5702 GB, free: 14.57 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005067/0.3596, allocations: 336.6 kB / 0.5705 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.3598, allocations: 86.34 kB / 0.5706 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008765/0.3607, allocations: 485.2 kB / 0.571 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.3607, allocations: 4.562 kB / 0.5711 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3607, allocations: 0 / 0.5711 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.3607, allocations: 0 / 0.5711 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/0.3625, allocations: 1.243 MB / 0.5723 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.3626, allocations: 1 kB / 0.5723 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.3629, allocations: 76.67 kB / 0.5723 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.3629, allocations: 3.094 kB / 0.5723 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.3629, allocations: 13.19 kB / 0.5724 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.221e-06/0.3629, allocations: 3.156 kB / 0.5724 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.363, allocations: 2.125 kB / 0.5724 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009655/0.3639, allocations: 0.6472 MB / 0.573 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003533/0.3643, allocations: 212.8 kB / 0.5732 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.898e-05/0.3644, allocations: 15.31 kB / 0.5732 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004134/0.3648, allocations: 23.67 kB / 0.5732 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.97e-05/0.3649, allocations: 23.88 kB / 0.5733 GB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.473e-05/0.3649, allocations: 23.61 kB / 0.5733 GB, free: 12.27 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008432/0.3658, allocations: 0.583 MB / 0.5738 GB, free: 11.74 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3658, allocations: 4 kB / 0.5739 GB, free: 11.74 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001287/0.3671, allocations: 307.8 kB / 0.5741 GB, free: 11.44 MB / 394.7 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 (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.0006917/0.3678, allocations: 323.4 kB / 0.5745 GB, free: 11.12 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.3688, allocations: 0.633 MB / 0.5751 GB, free: 10.49 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.3689, allocations: 0 / 0.5751 GB, free: 10.49 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.3691, allocations: 149.3 kB / 0.5752 GB, free: 10.35 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.3709, allocations: 390.5 kB / 0.5756 GB, free: 9.969 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.3732, allocations: 1.805 MB / 0.5773 GB, free: 8.109 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.3737, allocations: 0.9934 MB / 0.5783 GB, free: 7.086 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.3739, allocations: 87.42 kB / 0.5784 GB, free: 7 MB / 394.7 MB Notification: Performance of SimCode: time 5.61e-07/0.3739, allocations: 3.938 kB / 0.5784 GB, free: 6.996 MB / 394.7 MB Notification: Performance of Templates: time 0.02092/0.3948, allocations: 14.46 MB / 0.5925 GB, free: 8.605 MB / 410.7 MB 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/jenkins/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