Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage") Notification: Performance of loadModel(ModelicaTest): time 2.512/2.512, allocations: 269 MB / 284.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.111e-05, allocations: 8 kB / 349 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1353, allocations: 61.89 MB / 410.9 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage): time 0.4498/0.5852, allocations: 34.38 MB / 445.3 MB, free: 10.79 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03329/0.6185, allocations: 16.29 MB / 461.6 MB, free: 15.79 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001437/0.62, allocations: 29.84 kB / 461.6 MB, free: 15.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001859/0.6219, allocations: 388.3 kB / 462 MB, free: 15.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01868/0.6406, allocations: 3.641 MB / 465.7 MB, free: 12.29 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01141/0.6521, allocations: 2.621 MB / 468.3 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002474/0.6546, allocations: 0.8361 MB / 469.1 MB, free: 9.633 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007893/0.6554, allocations: 311.9 kB / 469.4 MB, free: 9.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002055/0.6575, allocations: 0.5849 MB / 470 MB, free: 9.078 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01397/0.6715, allocations: 5.809 MB / 475.8 MB, free: 6.711 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02101/0.6926, allocations: 7.09 MB / 482.9 MB, free: 15.61 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002954/0.6956, allocations: 432 kB / 483.3 MB, free: 15.19 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004856/0.6961, allocations: 147.5 kB / 483.5 MB, free: 15.04 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005032/0.6966, allocations: 84 kB / 483.5 MB, free: 14.96 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009647/0.7063, allocations: 3.38 MB / 486.9 MB, free: 11.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.7063, allocations: 0 / 486.9 MB, free: 11.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.7063, allocations: 4 kB / 486.9 MB, free: 11.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.049e-05/0.7064, allocations: 0 / 486.9 MB, free: 11.57 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.005289/0.7117, allocations: 1.466 MB / 488.4 MB, free: 10.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.7117, allocations: 11.97 kB / 488.4 MB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00337/0.7151, allocations: 314.7 kB / 488.7 MB, free: 9.734 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/0.7164, allocations: 0.5083 MB / 489.2 MB, free: 9.184 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.976e-05/0.7165, allocations: 49.31 kB / 489.3 MB, free: 9.137 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.7167, allocations: 59.91 kB / 489.3 MB, free: 9.078 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003871/0.7206, allocations: 0.9906 MB / 490.3 MB, free: 8.027 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/0.7207, allocations: 0 / 490.3 MB, free: 8.027 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.7208, allocations: 28 kB / 490.3 MB, free: 8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.517e-05/0.7209, allocations: 28.94 kB / 490.4 MB, free: 7.973 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004197/0.7251, allocations: 0.9053 MB / 491.3 MB, free: 7.066 MB / 394.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.007836/0.7329, allocations: 4.565 MB / 495.8 MB, free: 2.082 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004117/0.7371, allocations: 0.8078 MB / 496.7 MB, free: 1.266 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1941/0.9313, allocations: 56.33 MB / 0.54 GB, free: 2.305 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.312e-05/0.9314, allocations: 42.98 kB / 0.5401 GB, free: 2.25 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 5.18e-06/0.9314, allocations: 0 / 0.5401 GB, free: 2.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=52): time 0.01105/0.9424, allocations: 2.307 MB / 0.5423 GB, free: 15.89 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.725e-05/0.9426, allocations: 115.2 kB / 0.5424 GB, free: 15.75 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009073/0.9435, allocations: 458.1 kB / 0.5429 GB, free: 15.29 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.911e-05/0.9436, allocations: 33.7 kB / 0.5429 GB, free: 15.25 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003223/0.9439, allocations: 362.6 kB / 0.5432 GB, free: 14.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002363/0.9442, allocations: 169.5 kB / 0.5434 GB, free: 14.73 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.101e-05/0.9443, allocations: 12 kB / 0.5434 GB, free: 14.72 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.9444, allocations: 334.8 kB / 0.5437 GB, free: 14.38 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.9456, allocations: 281.1 kB / 0.544 GB, free: 14.11 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.947, allocations: 450.1 kB / 0.5444 GB, free: 13.61 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/0.9483, allocations: 318 kB / 0.5447 GB, free: 13.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.93e-05/0.9484, allocations: 4 kB / 0.5447 GB, free: 13.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.004018/0.9524, allocations: 0.9485 MB / 0.5457 GB, free: 12.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007536/0.9532, allocations: 1.74 MB / 0.5474 GB, free: 10.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.302e-05/0.9532, allocations: 15.94 kB / 0.5474 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003389/0.9566, allocations: 419.4 kB / 0.5478 GB, free: 10.04 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009765/0.9576, allocations: 135.8 kB / 0.5479 GB, free: 9.906 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002456/0.9601, allocations: 0.9269 MB / 0.5488 GB, free: 8.953 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.9614, allocations: 91.83 kB / 0.5489 GB, free: 8.863 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.9615, allocations: 39.98 kB / 0.5489 GB, free: 8.824 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.9615, allocations: 4 kB / 0.5489 GB, free: 8.82 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004432/0.966, allocations: 0.9272 MB / 0.5499 GB, free: 7.887 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.966, allocations: 4 kB / 0.5499 GB, free: 7.883 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002351/0.9684, allocations: 331.4 kB / 0.5502 GB, free: 7.559 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009868/0.9694, allocations: 135.8 kB / 0.5503 GB, free: 7.426 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/0.9717, allocations: 0.8723 MB / 0.5512 GB, free: 6.527 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.9727, allocations: 99.81 kB / 0.5512 GB, free: 6.43 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.91e-05/0.9729, allocations: 32 kB / 0.5513 GB, free: 6.398 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005491/0.9734, allocations: 213.7 kB / 0.5515 GB, free: 6.18 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.9736, allocations: 63.25 kB / 0.5515 GB, free: 6.117 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006327/0.98, allocations: 2.921 MB / 0.5544 GB, free: 3.176 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-05/0.9801, allocations: 39.94 kB / 0.5544 GB, free: 3.137 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.9801, allocations: 4 kB / 0.5544 GB, free: 3.133 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.9801, allocations: 7.984 kB / 0.5544 GB, free: 3.125 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008241/0.9884, allocations: 4.101 MB / 0.5585 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/0.9885, allocations: 7.984 kB / 0.5585 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/0.9899, allocations: 167.8 kB / 0.5586 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000492/0.9904, allocations: 68.73 kB / 0.5587 GB, free: 14.72 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.508e-05/0.9905, allocations: 16 kB / 0.5587 GB, free: 14.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009303/0.9914, allocations: 1.181 MB / 0.5599 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.9915, allocations: 0 / 0.5599 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006109/0.9976, allocations: 2.609 MB / 0.5624 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007431/0.9984, allocations: 334.7 kB / 0.5627 GB, free: 10.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001976/0.9986, allocations: 12 kB / 0.5627 GB, free: 10.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009645/0.9996, allocations: 72 kB / 0.5628 GB, free: 10.41 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.9998, allocations: 52.48 kB / 0.5628 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.869e-05/0.9999, allocations: 27.98 kB / 0.5629 GB, free: 10.34 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000969/1.001, allocations: 463 kB / 0.5633 GB, free: 9.887 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.001, allocations: 0 / 0.5633 GB, free: 9.887 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004965/1.006, allocations: 1.292 MB / 0.5646 GB, free: 8.594 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 25 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.region3boundary,$cse15.region3boundary,$cse17.phase,$cse17.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007791/1.014, allocations: 1.402 MB / 0.5659 GB, free: 7.191 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006112/1.02, allocations: 1.507 MB / 0.5674 GB, free: 5.688 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.02, allocations: 4 kB / 0.5674 GB, free: 5.684 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002302/1.022, allocations: 0.8599 MB / 0.5683 GB, free: 4.824 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002972/1.025, allocations: 325 kB / 0.5686 GB, free: 4.512 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00645/1.032, allocations: 3.157 MB / 0.5717 GB, free: 1.316 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009919/1.033, allocations: 1.166 MB / 0.5728 GB, free: 124 kB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003874/1.033, allocations: 63.42 kB / 0.5729 GB, free: 60 kB / 490.7 MB Notification: Performance of SimCode: time 1.363e-06/1.033, allocations: 8 kB / 0.5729 GB, free: 52 kB / 490.7 MB Notification: Performance of Templates: time 0.4185/1.452, allocations: 39.06 MB / 0.611 GB, free: 177 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.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.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageFunctions.cpp:6391:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp406, tmp407); ^~~~~~~~~~~~~~~~~~~~~~~~ /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 'OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.o] Error 1