Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 1.727/1.727, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003545, allocations: 8 kB / 233.8 MB, free: 3.094 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08497/0.08535, allocations: 38.77 MB / 272.5 MB, free: 12.25 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.378/7.464, allocations: 2.515 GB / 2.781 GB, free: 7.707 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/7.464, allocations: 87.08 kB / 2.781 GB, free: 7.664 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.643/11.11, allocations: 0.685 GB / 3.466 GB, free: 17.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/11.11, allocations: 0 / 3.466 GB, free: 17.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001038/11.11, allocations: 27.88 kB / 3.466 GB, free: 17.6 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: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.01224/11.12, allocations: 2.771 MB / 3.469 GB, free: 16.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/11.12, allocations: 14.8 kB / 3.469 GB, free: 16.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005346/11.12, allocations: 0.5111 MB / 3.47 GB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003046/11.13, allocations: 0.9767 MB / 3.47 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002086/11.13, allocations: 187.1 kB / 3.471 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002921/11.13, allocations: 119.3 kB / 3.471 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005511/11.13, allocations: 2.027 MB / 3.473 GB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.654e-05/11.13, allocations: 0.6875 kB / 3.473 GB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002294/11.13, allocations: 49.34 kB / 3.473 GB, free: 14.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000132/11.13, allocations: 88.64 kB / 3.473 GB, free: 14.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0053/11.14, allocations: 1.746 MB / 3.475 GB, free: 13.67 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.0178/11.16, allocations: 9.337 MB / 3.484 GB, free: 6.914 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004416/11.16, allocations: 1.475 MB / 3.485 GB, free: 6.301 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5149/11.68, allocations: 63.31 MB / 3.547 GB, free: 27.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003883/11.68, allocations: 1.076 MB / 3.548 GB, free: 26.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 5.17e-06/11.68, allocations: 1.859 kB / 3.548 GB, free: 26.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=121): time 0.0296/11.71, allocations: 6.502 MB / 3.554 GB, free: 25.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002124/11.71, allocations: 306.9 kB / 3.555 GB, free: 25.28 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002171/11.71, allocations: 1.034 MB / 3.556 GB, free: 25.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004664/11.71, allocations: 46.14 kB / 3.556 GB, free: 25.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006423/11.71, allocations: 0.5597 MB / 3.556 GB, free: 24.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008207/11.71, allocations: 417.4 kB / 3.557 GB, free: 24.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001905/11.71, allocations: 31.12 kB / 3.557 GB, free: 24.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000246/11.72, allocations: 362.8 kB / 3.557 GB, free: 24.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002015/11.72, allocations: 0.6314 MB / 3.558 GB, free: 24.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002163/11.72, allocations: 1.039 MB / 3.559 GB, free: 23.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002406/11.72, allocations: 0.7369 MB / 3.559 GB, free: 23.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-05/11.72, allocations: 5.984 kB / 3.559 GB, free: 23.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.007445/11.73, allocations: 2.066 MB / 3.561 GB, free: 23.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003162/11.73, allocations: 431 kB / 3.562 GB, free: 23.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/11.73, allocations: 16.16 kB / 3.562 GB, free: 23.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01222/11.74, allocations: 0.9924 MB / 3.563 GB, free: 23.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/11.74, allocations: 304.3 kB / 3.563 GB, free: 23.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005436/11.75, allocations: 4.034 MB / 3.567 GB, free: 19.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002844/11.75, allocations: 125 kB / 3.567 GB, free: 19.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002615/11.75, allocations: 82.08 kB / 3.567 GB, free: 19.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/11.75, allocations: 3.781 kB / 3.567 GB, free: 19.95 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005513/11.76, allocations: 1.811 MB / 3.569 GB, free: 19.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.421e-05/11.76, allocations: 10.59 kB / 3.569 GB, free: 19.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01055/11.77, allocations: 0.7289 MB / 3.57 GB, free: 19.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002548/11.77, allocations: 327.1 kB / 3.57 GB, free: 19.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009686/11.78, allocations: 6.752 MB / 3.577 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002061/11.78, allocations: 119.3 kB / 3.577 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003392/11.78, allocations: 72.09 kB / 3.577 GB, free: 14.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,reservoir.medium.phase,pumps.medium.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (159): * Single equations (assignments): 153 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 6,2 7,1 1,2 3,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.001572/11.79, allocations: 461.7 kB / 3.577 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005074/11.79, allocations: 137.1 kB / 3.577 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0115/11.8, allocations: 4.948 MB / 3.582 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.42e-05/11.8, allocations: 49.55 kB / 3.582 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/11.8, allocations: 2.125 kB / 3.582 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.374e-05/11.8, allocations: 11.47 kB / 3.582 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01569/11.81, allocations: 6.735 MB / 3.589 GB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.567e-05/11.81, allocations: 3.891 kB / 3.589 GB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/11.82, allocations: 176 kB / 3.589 GB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007732/11.82, allocations: 1.367 MB / 3.59 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004265/11.82, allocations: 37.56 kB / 3.59 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005613/11.83, allocations: 4.462 MB / 3.595 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/11.83, allocations: 4.25 kB / 3.595 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01437/11.84, allocations: 4.865 MB / 3.6 GB, free: 9.742 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002375/11.85, allocations: 0.5484 MB / 3.6 GB, free: 9.492 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009174/11.85, allocations: 29.56 kB / 3.6 GB, free: 9.492 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002907/11.85, allocations: 112.8 kB / 3.6 GB, free: 9.477 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004552/11.85, allocations: 126.1 kB / 3.6 GB, free: 9.473 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001831/11.85, allocations: 45.66 kB / 3.6 GB, free: 9.473 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002191/11.85, allocations: 0.9848 MB / 3.601 GB, free: 9.363 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.01e-07/11.85, allocations: 4 kB / 3.601 GB, free: 9.359 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01035/11.86, allocations: 2.076 MB / 3.603 GB, free: 9.273 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 1,1 6,2 9,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01367/11.88, allocations: 2.318 MB / 3.606 GB, free: 8.922 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01026/11.89, allocations: 3.401 MB / 3.609 GB, free: 8.504 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.248e-06/11.89, allocations: 3.75 kB / 3.609 GB, free: 8.504 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004723/11.89, allocations: 1.49 MB / 3.61 GB, free: 8.469 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006078/11.9, allocations: 0.6442 MB / 3.611 GB, free: 8.426 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/11.91, allocations: 5.248 MB / 3.616 GB, free: 6.223 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001403/11.91, allocations: 1.534 MB / 3.618 GB, free: 5.469 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008055/11.91, allocations: 131.1 kB / 3.618 GB, free: 5.465 MB / 410.7 MB Notification: Performance of SimCode: time 1.252e-06/11.91, allocations: 0 / 3.618 GB, free: 5.465 MB / 410.7 MB Notification: Performance of Templates: time 0.4902/12.4, allocations: 92.56 MB / 3.708 GB, free: 65.96 MB / 426.7 MB make -j1 -f Modelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystem.makefile b'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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystemInitialize.cpp:1717:104: error: use of undeclared identifier \'__HOM_LAMBDA_\'\n SystemDefaultImplementation::setRealStartValue(_pumps_P_m_flow_, division(_pumps_P_V_flow_,(division(__HOM_LAMBDA_,_pumps_P_rho_,!_initial,"pumps.rho") + division((1.0 - __HOM_LAMBDA_),_pumps_P_rho_nominal_,!_initial,"pumps.rho_nominal")),!_initial,"__HOM_LAMBDA / pumps.rho + (1.0 - __HOM_LAMBDA) / pumps.rho_nominal"), false);\n ^\n./OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystemInitialize.cpp:1717:173: error: use of undeclared identifier \'__HOM_LAMBDA_\'\n SystemDefaultImplementation::setRealStartValue(_pumps_P_m_flow_, division(_pumps_P_V_flow_,(division(__HOM_LAMBDA_,_pumps_P_rho_,!_initial,"pumps.rho") + division((1.0 - __HOM_LAMBDA_),_pumps_P_rho_nominal_,!_initial,"pumps.rho_nominal")),!_initial,"__HOM_LAMBDA / pumps.rho + (1.0 - __HOM_LAMBDA) / pumps.rho_nominal"), false);\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o] Error 1\n'