Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve") Notification: Performance of loadModel(ModelicaTest): time 2.416/2.416, allocations: 269 MB / 284.1 MB, free: 3.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.423e-05/3.406e-05, allocations: 7.984 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1331, allocations: 61.88 MB / 410.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve): time 0.4145/0.5477, allocations: 34.38 MB / 445.3 MB, free: 10.77 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03357/0.5813, allocations: 16.31 MB / 461.6 MB, free: 15.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001423/0.5828, allocations: 30.78 kB / 461.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001997/0.5848, allocations: 383 kB / 462 MB, free: 15.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01581/0.6007, allocations: 3.642 MB / 465.7 MB, free: 12.32 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01128/0.612, allocations: 2.612 MB / 468.3 MB, free: 10.27 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00251/0.6145, allocations: 0.8435 MB / 469.1 MB, free: 9.668 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007324/0.6153, allocations: 310.8 kB / 469.4 MB, free: 9.465 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001886/0.6172, allocations: 0.588 MB / 470 MB, free: 9.109 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01441/0.6316, allocations: 6.034 MB / 476 MB, free: 6.52 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0206/0.6523, allocations: 7.082 MB / 483.1 MB, free: 15.43 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002932/0.6553, allocations: 436 kB / 483.5 MB, free: 15 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004333/0.6557, allocations: 151.5 kB / 483.7 MB, free: 14.85 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004899/0.6562, allocations: 84 kB / 483.8 MB, free: 14.77 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009662/0.6659, allocations: 3.379 MB / 487.2 MB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.666, allocations: 0 / 487.2 MB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.666, allocations: 0 / 487.2 MB, free: 11.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.666, allocations: 0 / 487.2 MB, free: 11.38 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.00531/0.6713, allocations: 1.462 MB / 488.6 MB, free: 9.871 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.6714, allocations: 19.97 kB / 488.6 MB, free: 9.852 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003391/0.6748, allocations: 306.8 kB / 488.9 MB, free: 9.551 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001306/0.6761, allocations: 0.5162 MB / 489.5 MB, free: 8.992 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.555e-05/0.6763, allocations: 45.31 kB / 489.5 MB, free: 8.949 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/0.6764, allocations: 59.91 kB / 489.6 MB, free: 8.891 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003868/0.6803, allocations: 0.9866 MB / 490.5 MB, free: 7.848 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.426e-05/0.6804, allocations: 3.938 kB / 490.5 MB, free: 7.844 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.6805, allocations: 27.98 kB / 490.6 MB, free: 7.816 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.055e-05/0.6806, allocations: 21.31 kB / 490.6 MB, free: 7.793 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00439/0.685, allocations: 0.9221 MB / 491.5 MB, free: 6.867 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.008668/0.6937, allocations: 4.465 MB / 496 MB, free: 1.996 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004108/0.6978, allocations: 0.799 MB / 496.8 MB, free: 1.195 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1962/0.894, allocations: 56.32 MB / 0.5401 GB, free: 2.238 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.761e-05/0.8941, allocations: 39 kB / 0.5402 GB, free: 2.191 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 3.576e-06/0.8941, allocations: 0 / 0.5402 GB, free: 2.191 MB / 458.7 MB Notification: Performance of matching and sorting (n=52): time 0.0119/0.906, allocations: 2.364 MB / 0.5425 GB, free: 15.75 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.739e-05/0.9062, allocations: 115.2 kB / 0.5426 GB, free: 15.61 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009409/0.9071, allocations: 474.1 kB / 0.5431 GB, free: 15.14 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.869e-05/0.9072, allocations: 37.7 kB / 0.5431 GB, free: 15.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002933/0.9075, allocations: 350.7 kB / 0.5434 GB, free: 14.75 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000266/0.9078, allocations: 185.4 kB / 0.5436 GB, free: 14.57 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.395e-05/0.9079, allocations: 12 kB / 0.5436 GB, free: 14.56 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.9081, allocations: 330.8 kB / 0.5439 GB, free: 14.23 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.9093, allocations: 269.1 kB / 0.5442 GB, free: 13.96 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.9106, allocations: 442.6 kB / 0.5446 GB, free: 13.46 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.9119, allocations: 306 kB / 0.5449 GB, free: 13.17 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.9119, allocations: 4 kB / 0.5449 GB, free: 13.17 MB / 474.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003817/0.9158, allocations: 0.9174 MB / 0.5458 GB, free: 12.24 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007258/0.9165, allocations: 1.835 MB / 0.5476 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/0.9165, allocations: 8 kB / 0.5476 GB, free: 10.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003437/0.92, allocations: 442.5 kB / 0.548 GB, free: 9.824 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009749/0.921, allocations: 131.8 kB / 0.5481 GB, free: 9.695 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002216/0.9233, allocations: 0.9318 MB / 0.5491 GB, free: 8.738 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/0.9246, allocations: 95.78 kB / 0.5491 GB, free: 8.645 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.9247, allocations: 32.08 kB / 0.5492 GB, free: 8.613 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.9248, allocations: 4 kB / 0.5492 GB, free: 8.609 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004082/0.9289, allocations: 0.8849 MB / 0.55 GB, free: 7.719 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.9289, allocations: 7.984 kB / 0.5501 GB, free: 7.711 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00205/0.931, allocations: 323.6 kB / 0.5504 GB, free: 7.395 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009566/0.932, allocations: 131.8 kB / 0.5505 GB, free: 7.266 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/0.9339, allocations: 0.8763 MB / 0.5513 GB, free: 6.363 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009374/0.9348, allocations: 95.88 kB / 0.5514 GB, free: 6.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.709e-05/0.9349, allocations: 24 kB / 0.5515 GB, free: 6.246 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (54): * Single equations (assignments): 53 * 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 {4 19} Notification: Performance of prepare postOptimizeDAE: time 0.0005031/0.9354, allocations: 209.7 kB / 0.5517 GB, free: 6.031 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002089/0.9357, allocations: 71.14 kB / 0.5517 GB, free: 5.961 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006031/0.9417, allocations: 2.771 MB / 0.5544 GB, free: 3.168 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-05/0.9418, allocations: 35.94 kB / 0.5545 GB, free: 3.133 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.9418, allocations: 0 / 0.5545 GB, free: 3.133 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.9418, allocations: 7.984 kB / 0.5545 GB, free: 3.125 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008289/0.9501, allocations: 3.823 MB / 0.5582 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.9502, allocations: 0 / 0.5582 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/0.9514, allocations: 159.8 kB / 0.5584 GB, free: 15.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006191/0.952, allocations: 97.55 kB / 0.5584 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.409e-05/0.9521, allocations: 16 kB / 0.5585 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/0.9532, allocations: 1.132 MB / 0.5596 GB, free: 13.79 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.9533, allocations: 0 / 0.5596 GB, free: 13.79 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005593/0.9589, allocations: 2.305 MB / 0.5618 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007638/0.9597, allocations: 366.7 kB / 0.5622 GB, free: 11.07 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002117/0.9599, allocations: 12 kB / 0.5622 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009551/0.9609, allocations: 71.91 kB / 0.5623 GB, free: 10.99 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/0.9611, allocations: 52.48 kB / 0.5623 GB, free: 10.94 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.618e-05/0.9612, allocations: 23.98 kB / 0.5623 GB, free: 10.92 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001184/0.9624, allocations: 0.5654 MB / 0.5629 GB, free: 10.36 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.9624, allocations: 4 kB / 0.5629 GB, free: 10.35 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00479/0.9672, allocations: 1.308 MB / 0.5642 GB, free: 9.043 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: 21 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse12.phase,$cse12.region,$cse16.phase,$cse16.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 (62): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007849/0.9751, allocations: 1.383 MB / 0.5655 GB, free: 7.652 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00524/0.9803, allocations: 1.409 MB / 0.5669 GB, free: 6.246 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.9804, allocations: 0 / 0.5669 GB, free: 6.246 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002214/0.9826, allocations: 0.7663 MB / 0.5676 GB, free: 5.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003/0.9857, allocations: 345.5 kB / 0.568 GB, free: 5.148 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006075/0.9918, allocations: 3.01 MB / 0.5709 GB, free: 2.105 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000956/0.9928, allocations: 1.15 MB / 0.572 GB, free: 0.9258 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000384/0.9932, allocations: 67.42 kB / 0.5721 GB, free: 0.8594 MB / 490.7 MB Notification: Performance of SimCode: time 1.322e-06/0.9932, allocations: 0 / 0.5721 GB, free: 0.8594 MB / 490.7 MB Notification: Performance of Templates: time 0.4247/1.418, allocations: 39.18 MB / 0.6103 GB, free: 176.8 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.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.TestWaterPumpCheckValveCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveFunctions.cpp:6357:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp410, tmp411); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.TestWaterPumpCheckValveCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveCalcHelperMain.o] Error 1