Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|p_start|T_start|h_start|X_start.1.|volume.ports.1..m_flow|volume.ports.1..p|volume.ports.1..h_outflow|volume.ports.2..m_flow|volume.ports.2..p|volume.ports.2..h_outflow|volume.ports_H_flow.1.|volume.ports_H_flow.2.|volume.ports_E_flow.1.|volume.ports_E_flow.2.|volume.ports_penetration.1.|volume.ports_penetration.2.|volume.portsData_diameter.1.|volume.portsData_diameter.2.|volume.portsData_height.1.|volume.portsData_height.2.|volume.portsData_zeta_in.1.|volume.portsData_zeta_in.2.|volume.portsData_zeta_out.1.|volume.portsData_zeta_out.2.|fixedMassFlowRate.ports.1..m_flow|fixedMassFlowRate.ports.1..p|fixedMassFlowRate.ports.1..h_outflow|shortPipe.port_b.m_flow|shortPipe.port_b.p|shortPipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47") Notification: Performance of loadModel(ModelicaTest): time 2.423/2.423, allocations: 269 MB / 284.1 MB, free: 3.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.776e-05/2.809e-05, allocations: 3.984 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1368, allocations: 61.9 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47): time 0.411/0.5479, allocations: 16.44 MB / 427.4 MB, free: 3.426 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.009773/0.5577, allocations: 4.313 MB / 431.7 MB, free: 3.277 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001288/0.5591, allocations: 27.62 kB / 431.7 MB, free: 3.262 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.5601, allocations: 236.9 kB / 432 MB, free: 3.203 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00492/0.5651, allocations: 1.171 MB / 433.1 MB, free: 3.113 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004356/0.5694, allocations: 1.032 MB / 434.2 MB, free: 2.898 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002641/0.5721, allocations: 0.8535 MB / 435 MB, free: 2.566 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000972/0.5731, allocations: 333.5 kB / 435.3 MB, free: 2.48 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008025/0.5812, allocations: 2.729 MB / 438.1 MB, free: 2.051 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003212/0.5845, allocations: 1.031 MB / 439.1 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004246/0.5888, allocations: 1.12 MB / 440.2 MB, free: 1.66 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006638/0.5895, allocations: 45.5 kB / 440.3 MB, free: 1.66 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005441/0.5901, allocations: 213.1 kB / 440.5 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005321/0.5906, allocations: 78.78 kB / 440.5 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003005/0.5936, allocations: 0.9636 MB / 441.5 MB, free: 1.426 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.5937, allocations: 0.9688 kB / 441.5 MB, free: 1.426 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.5937, allocations: 0 / 441.5 MB, free: 1.426 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.175e-05/0.5938, allocations: 0 / 441.5 MB, free: 1.426 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002744/0.5965, allocations: 0.9132 MB / 442.4 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.5966, allocations: 8.75 kB / 442.4 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001609/0.5982, allocations: 146.8 kB / 442.6 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.5997, allocations: 0.4967 MB / 443.1 MB, free: 408 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001399/0.5998, allocations: 100.6 kB / 443.2 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001392/0.6, allocations: 50.97 kB / 443.2 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002346/0.6023, allocations: 0.8262 MB / 444 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.242e-05/0.6024, allocations: 1.344 kB / 444 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001285/0.6025, allocations: 27.39 kB / 444.1 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/0.6027, allocations: 40.25 kB / 444.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002102/0.6048, allocations: 0.6055 MB / 444.7 MB, free: 15.61 MB / 362.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.008145/0.613, allocations: 4.712 MB / 449.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.6142, allocations: 330.2 kB / 449.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004555/0.6147, allocations: 416.8 kB / 450.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.1e-05/0.6147, allocations: 37.91 kB / 450.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 3.096e-06/0.6147, allocations: 0 / 450.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.007001/0.6218, allocations: 1.543 MB / 451.7 MB, free: 9.469 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.6219, allocations: 136.5 kB / 451.9 MB, free: 9.309 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/0.6232, allocations: 0.5757 MB / 452.4 MB, free: 8.969 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001564/0.6233, allocations: 31.27 kB / 452.5 MB, free: 8.934 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000407/0.6238, allocations: 427.2 kB / 452.9 MB, free: 8.539 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.624, allocations: 128.4 kB / 453 MB, free: 8.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.784e-05/0.624, allocations: 15.09 kB / 453 MB, free: 8.418 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.6242, allocations: 337.9 kB / 453.4 MB, free: 8.086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006126/0.6248, allocations: 198.6 kB / 453.6 MB, free: 7.992 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008723/0.6257, allocations: 0.4976 MB / 454.1 MB, free: 7.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007936/0.6265, allocations: 288.9 kB / 454.3 MB, free: 7.336 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-06/0.6266, allocations: 7.062 kB / 454.3 MB, free: 7.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002372/0.6289, allocations: 0.8216 MB / 455.2 MB, free: 6.895 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.629, allocations: 8.656 kB / 455.2 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.989e-05/0.629, allocations: 9.875 kB / 455.2 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001987/0.631, allocations: 283.9 kB / 455.5 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007669/0.6318, allocations: 116.7 kB / 455.6 MB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001816/0.6336, allocations: 1.4 MB / 457 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.6347, allocations: 38.11 kB / 457 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.6348, allocations: 38.38 kB / 457.1 MB, free: 5.465 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005721/0.6354, allocations: 241.1 kB / 457.3 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001782/0.6356, allocations: 73.97 kB / 457.4 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002612/0.6382, allocations: 0.7085 MB / 458.1 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.6382, allocations: 3.75 kB / 458.1 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.6383, allocations: 1.531 kB / 458.1 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.6383, allocations: 7.938 kB / 458.1 MB, free: 4.797 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003288/0.6416, allocations: 1.211 MB / 459.3 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.6416, allocations: 1.375 kB / 459.3 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003342/0.642, allocations: 39.12 kB / 459.3 MB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001328/0.6433, allocations: 207.1 kB / 459.5 MB, free: 3.793 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.457e-05/0.6434, allocations: 8.125 kB / 459.5 MB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001523/0.6449, allocations: 1.295 MB / 460.8 MB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.6449, allocations: 5.5 kB / 460.8 MB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002252/0.6472, allocations: 0.8311 MB / 461.7 MB, free: 2.039 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005485/0.6478, allocations: 189.8 kB / 461.9 MB, free: 1.867 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001793/0.648, allocations: 6.969 kB / 461.9 MB, free: 1.863 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007195/0.6487, allocations: 28 kB / 461.9 MB, free: 1.848 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.273e-05/0.6488, allocations: 23.28 kB / 461.9 MB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.852e-05/0.6489, allocations: 21.05 kB / 461.9 MB, free: 1.832 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008352/0.6497, allocations: 450.4 kB / 462.4 MB, free: 1.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6497, allocations: 4 kB / 462.4 MB, free: 1.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001245/0.651, allocations: 241.7 kB / 462.6 MB, free: 1.527 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008316/0.6518, allocations: 273.5 kB / 462.9 MB, free: 1.355 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.6535, allocations: 0.5014 MB / 463.4 MB, free: 1.129 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.6535, allocations: 0 / 463.4 MB, free: 1.129 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007956/0.6543, allocations: 221.8 kB / 463.6 MB, free: 1.035 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002609/0.6569, allocations: 313.9 kB / 463.9 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003405/0.6603, allocations: 1.516 MB / 465.4 MB, free: 15.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006382/0.661, allocations: 0.9393 MB / 466.4 MB, free: 15.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000336/0.6614, allocations: 70.02 kB / 466.4 MB, free: 15.01 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6614, allocations: 0 / 466.4 MB, free: 15.01 MB / 378.7 MB Notification: Performance of Templates: time 0.03477/0.6962, allocations: 16.19 MB / 482.6 MB, free: 15.01 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47CalcHelperMain.cpp:26: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47AlgLoopMain.cpp:15: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47Algloop124.cpp:72:65: error: use of undeclared identifier '_Closure6_f__nonlinear' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure6_f__nonlinear(_functions, /*box double*/_system->_volume_P_vessel_ps_static_(2), /*box double*/_system->_volume_P_ports2_P_h_outflow_), 243.15, 373.15, 1e-13, tmp182); ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47CalcHelperMain.cpp:26: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47AlgLoopMain.cpp:21: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47Algloop71.cpp:72:65: error: use of undeclared identifier '_Closure7_f__nonlinear' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure7_f__nonlinear(_functions, /*box double*/_system->_volume_P_vessel_ps_static_(2), /*box double*/_system->_volume_P_ports2_P_h_outflow_), 243.15, 373.15, 1e-13, tmp194); ^ 2 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47CalcHelperMain.o] Error 1