Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystem.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005053/0.0005056, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1056, allocations: 44.5 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.301/8.407, allocations: 2.625 GB / 2.926 GB, free: 76.72 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003584/8.407, allocations: 84.09 kB / 2.927 GB, free: 76.68 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.631/12.04, allocations: 0.7028 GB / 3.629 GB, free: 10.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.186e-06/12.04, allocations: 0 / 3.629 GB, free: 10.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001463/12.04, allocations: 39.94 kB / 3.629 GB, free: 10.64 MB / 426.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.01354/12.05, allocations: 2.845 MB / 3.632 GB, free: 7.754 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/12.05, allocations: 8.031 kB / 3.632 GB, free: 7.746 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006153/12.06, allocations: 0.5652 MB / 3.633 GB, free: 7.184 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003791/12.06, allocations: 0.9802 MB / 3.634 GB, free: 6.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003083/12.06, allocations: 190.6 kB / 3.634 GB, free: 5.977 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006059/12.06, allocations: 114.9 kB / 3.634 GB, free: 5.867 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006697/12.07, allocations: 2.024 MB / 3.636 GB, free: 3.715 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.999e-05/12.07, allocations: 7.844 kB / 3.636 GB, free: 3.707 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002837/12.07, allocations: 58.48 kB / 3.636 GB, free: 3.656 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001413/12.07, allocations: 77.38 kB / 3.636 GB, free: 3.582 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006552/12.08, allocations: 1.745 MB / 3.638 GB, free: 1.828 MB / 426.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.02339/12.1, allocations: 9.329 MB / 3.647 GB, free: 7.926 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005538/12.11, allocations: 1.474 MB / 3.648 GB, free: 6.41 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5495/12.66, allocations: 63.38 MB / 3.71 GB, free: 22.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003694/12.66, allocations: 1.076 MB / 3.711 GB, free: 22.35 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 4.268e-06/12.66, allocations: 0 / 3.711 GB, free: 22.35 MB / 458.7 MB Notification: Performance of matching and sorting (n=121): time 0.027/12.69, allocations: 6.502 MB / 3.718 GB, free: 20.99 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001929/12.69, allocations: 303.4 kB / 3.718 GB, free: 20.64 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001858/12.69, allocations: 1.038 MB / 3.719 GB, free: 20.48 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000325/12.69, allocations: 51.05 kB / 3.719 GB, free: 20.45 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004773/12.69, allocations: 0.5578 MB / 3.719 GB, free: 20.18 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005417/12.69, allocations: 416.1 kB / 3.72 GB, free: 19.98 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/12.69, allocations: 29.31 kB / 3.72 GB, free: 19.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002109/12.69, allocations: 371.8 kB / 3.72 GB, free: 19.66 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001793/12.69, allocations: 0.6292 MB / 3.721 GB, free: 19.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001992/12.69, allocations: 1.039 MB / 3.722 GB, free: 19.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001949/12.7, allocations: 0.7362 MB / 3.723 GB, free: 19.18 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/12.7, allocations: 2.875 kB / 3.723 GB, free: 19.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.005867/12.7, allocations: 2.066 MB / 3.725 GB, free: 19.03 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002827/12.7, allocations: 429.8 kB / 3.725 GB, free: 18.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.045e-05/12.7, allocations: 9.406 kB / 3.725 GB, free: 18.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01161/12.71, allocations: 0.9964 MB / 3.726 GB, free: 18.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002376/12.72, allocations: 298.4 kB / 3.726 GB, free: 18.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005296/12.72, allocations: 4.041 MB / 3.73 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00252/12.72, allocations: 133.2 kB / 3.73 GB, free: 15.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002056/12.72, allocations: 76.69 kB / 3.73 GB, free: 15.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/12.72, allocations: 2.875 kB / 3.73 GB, free: 15.32 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005172/12.73, allocations: 1.813 MB / 3.732 GB, free: 15.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.136e-05/12.73, allocations: 13.47 kB / 3.732 GB, free: 15.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01031/12.74, allocations: 0.7339 MB / 3.733 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00236/12.74, allocations: 315.6 kB / 3.733 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009623/12.75, allocations: 6.745 MB / 3.74 GB, free: 26.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001887/12.75, allocations: 120.3 kB / 3.74 GB, free: 26.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/12.75, allocations: 70.94 kB / 3.74 GB, free: 26.11 MB / 474.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.001272/12.76, allocations: 466.1 kB / 3.74 GB, free: 25.92 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004123/12.76, allocations: 135.4 kB / 3.741 GB, free: 25.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009654/12.77, allocations: 4.943 MB / 3.745 GB, free: 25.39 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.402e-05/12.77, allocations: 53.8 kB / 3.745 GB, free: 25.39 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/12.77, allocations: 0 / 3.745 GB, free: 25.39 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.51e-05/12.77, allocations: 10.66 kB / 3.745 GB, free: 25.39 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/12.78, allocations: 6.734 MB / 3.752 GB, free: 24.85 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-05/12.78, allocations: 0 / 3.752 GB, free: 24.85 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001432/12.78, allocations: 180.7 kB / 3.752 GB, free: 24.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0075/12.79, allocations: 1.368 MB / 3.754 GB, free: 24.75 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003707/12.79, allocations: 38.06 kB / 3.754 GB, free: 24.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00541/12.79, allocations: 4.46 MB / 3.758 GB, free: 21.62 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/12.79, allocations: 5.75 kB / 3.758 GB, free: 21.62 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0102/12.8, allocations: 4.867 MB / 3.763 GB, free: 21.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00156/12.81, allocations: 0.5455 MB / 3.763 GB, free: 20.91 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004649/12.81, allocations: 34.08 kB / 3.763 GB, free: 20.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001957/12.81, allocations: 110.8 kB / 3.763 GB, free: 20.89 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003688/12.81, allocations: 124.4 kB / 3.764 GB, free: 20.89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001552/12.81, allocations: 47.91 kB / 3.764 GB, free: 20.89 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001962/12.81, allocations: 0.9883 MB / 3.765 GB, free: 20.77 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.6e-07/12.81, allocations: 0 / 3.765 GB, free: 20.77 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009488/12.82, allocations: 2.095 MB / 3.767 GB, free: 20.68 MB / 474.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.01264/12.83, allocations: 2.332 MB / 3.769 GB, free: 20.32 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00998/12.84, allocations: 3.4 MB / 3.772 GB, free: 19.91 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/12.84, allocations: 1.5 kB / 3.772 GB, free: 19.91 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004213/12.85, allocations: 1.486 MB / 3.774 GB, free: 19.89 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005649/12.85, allocations: 0.6354 MB / 3.774 GB, free: 19.85 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/12.86, allocations: 5.262 MB / 3.779 GB, free: 17.62 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001379/12.87, allocations: 1.534 MB / 3.781 GB, free: 16.87 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007977/12.87, allocations: 130.8 kB / 3.781 GB, free: 16.86 MB / 474.7 MB Notification: Performance of SimCode: time 1.132e-06/12.87, allocations: 0 / 3.781 GB, free: 16.86 MB / 474.7 MB Notification: Performance of Templates: time 0.4815/13.35, allocations: 92.31 MB / 3.871 GB, free: 68.2 MB / 474.7 MB make -j1 -f Modelica_3.2.2_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.2_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.2_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.2_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.2_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o] Error 1\n'