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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestMixingVolumes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestMixingVolumes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 191.9 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.239/1.239, allocations: 226.5 MB / 243.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007898/0.0007898, allocations: 103 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2865/0.2865, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002561/0.0002565, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2937, allocations: 62.96 MB / 0.516 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes): time 0.01142/0.3052, allocations: 16.72 MB / 0.5323 GB, free: 25.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006177/0.3114, allocations: 6.643 MB / 0.5388 GB, free: 20.37 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006677/0.3121, allocations: 22.72 kB / 0.5388 GB, free: 20.36 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007697/0.3129, allocations: 314.6 kB / 0.5391 GB, free: 20.19 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.001219/0.3142, allocations: 0.6956 MB / 0.5398 GB, free: 19.79 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002637/0.3168, allocations: 1.117 MB / 0.5409 GB, free: 19.24 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002484/0.3193, allocations: 2.991 MB / 0.5438 GB, free: 18.16 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000832/0.3201, allocations: 0.5774 MB / 0.5444 GB, free: 17.96 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001553/0.3217, allocations: 0.9156 MB / 0.5452 GB, free: 17.63 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.3228, allocations: 0.7511 MB / 0.546 GB, free: 17.36 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.3229, allocations: 46.59 kB / 0.546 GB, free: 17.36 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001241/0.3241, allocations: 0.5168 MB / 0.5465 GB, free: 17.21 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003667/0.3245, allocations: 334.2 kB / 0.5469 GB, free: 17.1 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005481/0.3251, allocations: 496.3 kB / 0.5473 GB, free: 16.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001542/0.3266, allocations: 1.114 MB / 0.5484 GB, free: 16.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3266, allocations: 3.938 kB / 0.5484 GB, free: 16.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3266, allocations: 1.219 kB / 0.5484 GB, free: 16.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.3267, allocations: 0 / 0.5484 GB, free: 16.61 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.002077/0.3288, allocations: 1.104 MB / 0.5495 GB, free: 15.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.3288, allocations: 13.89 kB / 0.5495 GB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001735/0.329, allocations: 140.8 kB / 0.5496 GB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004065/0.3294, allocations: 120.2 kB / 0.5498 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008585/0.3303, allocations: 0.5828 MB / 0.5503 GB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/0.3304, allocations: 246.8 kB / 0.5506 GB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.3306, allocations: 91.64 kB / 0.5506 GB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001882/0.3325, allocations: 1.307 MB / 0.5519 GB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.3325, allocations: 7.844 kB / 0.5519 GB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.747e-05/0.3326, allocations: 41.38 kB / 0.552 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.408e-05/0.3327, allocations: 39.28 kB / 0.552 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.3342, allocations: 0.9598 MB / 0.5529 GB, free: 13.99 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.005562/0.3398, allocations: 7.09 MB / 0.5599 GB, free: 7.648 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004621/0.3403, allocations: 309.8 kB / 0.5602 GB, free: 7.492 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.3405, allocations: 174.3 kB / 0.5603 GB, free: 7.402 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001884/0.3424, allocations: 2.826 MB / 0.5631 GB, free: 4.301 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.3425, allocations: 38.64 kB / 0.5631 GB, free: 4.258 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 1.894e-06/0.3425, allocations: 0 / 0.5631 GB, free: 4.258 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002016/0.3445, allocations: 1.116 MB / 0.5642 GB, free: 3.523 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.3445, allocations: 58.62 kB / 0.5643 GB, free: 3.457 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009211/0.3455, allocations: 0.8654 MB / 0.5651 GB, free: 2.953 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/0.3455, allocations: 32.83 kB / 0.5652 GB, free: 2.918 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.3458, allocations: 0.5693 MB / 0.5657 GB, free: 2.402 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.828e-05/0.3459, allocations: 136.1 kB / 0.5658 GB, free: 2.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.67e-05/0.3459, allocations: 21.25 kB / 0.5659 GB, free: 2.273 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.996e-05/0.346, allocations: 400.2 kB / 0.5662 GB, free: 1.895 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003698/0.3464, allocations: 242.1 kB / 0.5665 GB, free: 1.781 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006038/0.347, allocations: 0.9693 MB / 0.5674 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/0.3482, allocations: 1.316 MB / 0.5687 GB, free: 15.29 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/0.3482, allocations: 7.438 kB / 0.5687 GB, free: 15.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001704/0.3499, allocations: 1.191 MB / 0.5699 GB, free: 14.69 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.3499, allocations: 19.31 kB / 0.5699 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.709e-05/0.35, allocations: 29.62 kB / 0.5699 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.115e-05/0.35, allocations: 34.38 kB / 0.57 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007155/0.3507, allocations: 282.3 kB / 0.5702 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.002e-05/0.3508, allocations: 46.23 kB / 0.5703 GB, free: 14.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007336/0.3515, allocations: 69.3 kB / 0.5703 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-05/0.3516, allocations: 71.41 kB / 0.5704 GB, free: 14.56 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.0004083/0.3521, allocations: 335.7 kB / 0.5707 GB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.3522, allocations: 87.56 kB / 0.5708 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000799/0.353, allocations: 480.8 kB / 0.5713 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.353, allocations: 8.656 kB / 0.5713 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.353, allocations: 0 / 0.5713 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.353, allocations: 3.938 kB / 0.5713 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.3546, allocations: 1.242 MB / 0.5725 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.3546, allocations: 5.062 kB / 0.5725 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.3549, allocations: 68.78 kB / 0.5726 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.3549, allocations: 3.531 kB / 0.5726 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.3549, allocations: 12.73 kB / 0.5726 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.355, allocations: 7.438 kB / 0.5726 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.355, allocations: 1 kB / 0.5726 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008421/0.3558, allocations: 0.6532 MB / 0.5732 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002689/0.3561, allocations: 212.7 kB / 0.5734 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.14e-05/0.3562, allocations: 8 kB / 0.5734 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.3566, allocations: 23.89 kB / 0.5735 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.613e-05/0.3566, allocations: 28.03 kB / 0.5735 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.677e-05/0.3567, allocations: 23.98 kB / 0.5735 GB, free: 12.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006667/0.3574, allocations: 0.5811 MB / 0.5741 GB, free: 11.59 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3574, allocations: 0 / 0.5741 GB, free: 11.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001092/0.3585, allocations: 303.9 kB / 0.5744 GB, free: 11.29 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.001571/0.3601, allocations: 1.426 MB / 0.5758 GB, free: 9.832 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009442/0.361, allocations: 0.6302 MB / 0.5764 GB, free: 9.207 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.361, allocations: 0 / 0.5764 GB, free: 9.207 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001986/0.3612, allocations: 148.4 kB / 0.5765 GB, free: 9.062 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/0.3631, allocations: 394.4 kB / 0.5769 GB, free: 8.68 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007107/0.3702, allocations: 5.293 MB / 0.5821 GB, free: 2.867 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005637/0.3708, allocations: 0.9933 MB / 0.583 GB, free: 1.844 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000403/0.3712, allocations: 315.3 kB / 0.5833 GB, free: 1.535 MB / 394.7 MB Notification: Performance of SimCode: time 5.51e-07/0.3712, allocations: 0 / 0.5833 GB, free: 1.535 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.984/4.356, allocations: 15.66 MB / 0.5986 GB, free: 1.883 MB / 410.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestMixingVolumes_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestMixingVolumes.fmu > 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