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_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 2.028/2.028, allocations: 224.7 MB / 241.1 MB, free: 1.648 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.735e-05/2.729e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 50.42 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.09301/0.202, allocations: 53.37 MB / 398.3 MB, free: 3.422 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.4305/0.6326, allocations: 22.58 MB / 420.9 MB, free: 5.926 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002217/0.6348, allocations: 47.72 kB / 421 MB, free: 5.922 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002323/0.6372, allocations: 0.569 MB / 421.5 MB, free: 5.918 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01862/0.6559, allocations: 4.587 MB / 426.1 MB, free: 5.809 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01216/0.6681, allocations: 2.899 MB / 429 MB, free: 5.723 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004298/0.6724, allocations: 1.741 MB / 430.8 MB, free: 5.633 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001566/0.674, allocations: 0.7444 MB / 431.5 MB, free: 5.352 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02493/0.699, allocations: 9.371 MB / 440.9 MB, free: 4.211 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03467/0.7337, allocations: 15.07 MB / 456 MB, free: 6.98 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02467/0.7585, allocations: 8.11 MB / 464.1 MB, free: 204 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003761/0.7623, allocations: 0.504 MB / 464.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001081/0.7634, allocations: 381 kB / 464.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009353/0.7644, allocations: 167.9 kB / 465.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01331/0.7777, allocations: 4.592 MB / 469.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7778, allocations: 0 / 469.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.7778, allocations: 4 kB / 469.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.898e-05/0.7778, allocations: 0 / 469.7 MB, free: 10.89 MB / 362.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.009637/0.7875, allocations: 2.238 MB / 471.9 MB, free: 8.613 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.7876, allocations: 12.03 kB / 472 MB, free: 8.602 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005049/0.7926, allocations: 484.5 kB / 472.4 MB, free: 8.129 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002511/0.7952, allocations: 0.8594 MB / 473.3 MB, free: 7.277 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000263/0.7955, allocations: 187.5 kB / 473.5 MB, free: 7.082 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003767/0.7959, allocations: 120.4 kB / 473.6 MB, free: 6.969 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006549/0.8024, allocations: 1.994 MB / 475.6 MB, free: 4.871 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.247e-05/0.8026, allocations: 6.625 kB / 475.6 MB, free: 4.867 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002423/0.8028, allocations: 55.27 kB / 475.6 MB, free: 4.816 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001616/0.803, allocations: 80.72 kB / 475.7 MB, free: 4.738 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006639/0.8096, allocations: 1.777 MB / 477.5 MB, free: 2.973 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.02132/0.831, allocations: 9.324 MB / 486.8 MB, free: 9.117 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005336/0.8364, allocations: 1.499 MB / 488.3 MB, free: 7.582 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2348/1.071, allocations: 64.3 MB / 0.5397 GB, free: 15.76 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007167/1.078, allocations: 1.075 MB / 0.5407 GB, free: 14.67 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 7.975e-06/1.079, allocations: 7.875 kB / 0.5407 GB, free: 14.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=121): time 0.0473/1.126, allocations: 6.592 MB / 0.5472 GB, free: 7.918 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002419/1.126, allocations: 299.7 kB / 0.5474 GB, free: 7.559 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003101/1.129, allocations: 0.9143 MB / 0.5483 GB, free: 6.629 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004083/1.13, allocations: 49.7 kB / 0.5484 GB, free: 6.574 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008071/1.131, allocations: 0.5687 MB / 0.5489 GB, free: 6.004 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008418/1.131, allocations: 413.8 kB / 0.5493 GB, free: 5.605 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002236/1.132, allocations: 32 kB / 0.5494 GB, free: 5.574 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002598/1.132, allocations: 370.8 kB / 0.5497 GB, free: 5.203 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003636/1.136, allocations: 0.6324 MB / 0.5503 GB, free: 4.574 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003957/1.14, allocations: 1.052 MB / 0.5514 GB, free: 3.359 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002928/1.143, allocations: 0.7374 MB / 0.5521 GB, free: 2.629 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-05/1.143, allocations: 7.938 kB / 0.5521 GB, free: 2.621 MB / 458.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.01106/1.154, allocations: 2.098 MB / 0.5541 GB, free: 0.5156 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00272/1.157, allocations: 4.448 MB / 0.5585 GB, free: 11.72 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.657e-05/1.157, allocations: 12 kB / 0.5585 GB, free: 11.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01708/1.174, allocations: 1.008 MB / 0.5595 GB, free: 10.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003701/1.178, allocations: 295.5 kB / 0.5598 GB, free: 10.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008/1.186, allocations: 4.033 MB / 0.5637 GB, free: 6.211 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003812/1.19, allocations: 127.9 kB / 0.5638 GB, free: 6.086 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005263/1.19, allocations: 79.91 kB / 0.5639 GB, free: 6.008 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/1.19, allocations: 4 kB / 0.5639 GB, free: 6.004 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01085/1.201, allocations: 1.975 MB / 0.5658 GB, free: 4.012 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.488e-05/1.201, allocations: 8 kB / 0.5658 GB, free: 4.004 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01476/1.216, allocations: 0.8785 MB / 0.5667 GB, free: 3.109 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003457/1.219, allocations: 299.5 kB / 0.567 GB, free: 2.816 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3735/1.593, allocations: 3.356 MB / 0.5703 GB, free: 186.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002088/1.595, allocations: 119.9 kB / 0.5704 GB, free: 186.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003334/1.595, allocations: 75.02 kB / 0.5704 GB, free: 186.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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,reservoir.medium.phase,pumps.medium.phase,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * 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: 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.001379/1.597, allocations: 378.9 kB / 0.5708 GB, free: 186.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005019/1.597, allocations: 136.5 kB / 0.5709 GB, free: 186.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01301/1.61, allocations: 4.964 MB / 0.5758 GB, free: 185.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.681e-05/1.611, allocations: 50.11 kB / 0.5758 GB, free: 185.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.969e-05/1.611, allocations: 2.188 kB / 0.5758 GB, free: 185.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-05/1.611, allocations: 9.109 kB / 0.5758 GB, free: 185.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0164/1.627, allocations: 6.759 MB / 0.5824 GB, free: 182.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.481e-05/1.627, allocations: 0 / 0.5824 GB, free: 182.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/1.629, allocations: 180.1 kB / 0.5826 GB, free: 182.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007092/1.636, allocations: 1.372 MB / 0.584 GB, free: 182.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003866/1.636, allocations: 43.62 kB / 0.584 GB, free: 182.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005011/1.641, allocations: 4.453 MB / 0.5883 GB, free: 178.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/1.641, allocations: 3.938 kB / 0.5883 GB, free: 178.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/1.652, allocations: 4.947 MB / 0.5932 GB, free: 176.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001604/1.654, allocations: 0.5395 MB / 0.5937 GB, free: 175.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000593/1.654, allocations: 27.64 kB / 0.5937 GB, free: 175.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00219/1.657, allocations: 105.3 kB / 0.5938 GB, free: 175.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004517/1.657, allocations: 123.7 kB / 0.594 GB, free: 175.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001899/1.657, allocations: 53.12 kB / 0.594 GB, free: 175.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002041/1.659, allocations: 0.9844 MB / 0.595 GB, free: 175 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.659, allocations: 0 / 0.595 GB, free: 175 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00704/1.666, allocations: 1.895 MB / 0.5968 GB, free: 174.3 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.level,reservoir.medium.T,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,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.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) * 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.008608/1.675, allocations: 1.692 MB / 0.5985 GB, free: 173 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01072/1.686, allocations: 3.138 MB / 0.6015 GB, free: 169.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.504e-05/1.686, allocations: 2.625 kB / 0.6015 GB, free: 169.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004663/1.691, allocations: 1.495 MB / 0.603 GB, free: 168.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005776/1.696, allocations: 0.6424 MB / 0.6036 GB, free: 167.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/1.708, allocations: 5.227 MB / 0.6087 GB, free: 162.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/1.709, allocations: 1.541 MB / 0.6102 GB, free: 161.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007475/1.71, allocations: 131.4 kB / 0.6104 GB, free: 160.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.222e-06/1.71, allocations: 0 / 0.6104 GB, free: 160.9 MB / 474.7 MB Notification: Performance of Templates: time 0.1379/1.848, allocations: 88.69 MB / 0.697 GB, free: 72.25 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem.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 OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystemFunctions.cpp:752:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp286, tmp287); ^~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/ArrayOperations.h:91:6: note: candidate function not viable: no known conversion from 'double' to 'const BaseArray' for 1st argument void add_array_scalar(const BaseArray& inputArray, T b, BaseArray& outputArray); ^ 1 error generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o] Error 1