Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|housing.T|motor.inertiaRotor.phi|motor.inertiaRotor.w|motor.la.i",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer") Notification: Performance of loadModel(ModelicaTest): time 2.36/2.36, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.896e-05/2.89e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1263, allocations: 61.9 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer): time 0.4047/0.5312, allocations: 38.42 MB / 449.3 MB, free: 8.469 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03756/0.5688, allocations: 17.6 MB / 466.9 MB, free: 11.9 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002386/0.5712, allocations: 54.88 kB / 467 MB, free: 11.88 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00289/0.5742, allocations: 0.5825 MB / 467.6 MB, free: 11.36 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01777/0.592, allocations: 3.965 MB / 471.5 MB, free: 7.91 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01203/0.604, allocations: 2.733 MB / 474.3 MB, free: 5.754 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00458/0.6086, allocations: 1.405 MB / 475.7 MB, free: 4.75 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0017/0.6104, allocations: 0.7206 MB / 476.4 MB, free: 4.281 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002891/0.6133, allocations: 0.8488 MB / 477.3 MB, free: 3.801 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01518/0.6285, allocations: 6.1 MB / 483.4 MB, free: 15.52 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02198/0.6506, allocations: 7.211 MB / 490.6 MB, free: 8.301 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00345/0.6541, allocations: 464 kB / 491 MB, free: 7.848 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007178/0.6549, allocations: 258.9 kB / 491.3 MB, free: 7.594 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008976/0.6558, allocations: 168 kB / 491.4 MB, free: 7.43 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01211/0.6679, allocations: 4.392 MB / 495.8 MB, free: 3.027 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.668, allocations: 0 / 495.8 MB, free: 3.027 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.668, allocations: 3.938 kB / 495.8 MB, free: 3.023 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.39e-05/0.6681, allocations: 3.938 kB / 495.8 MB, free: 3.02 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: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.007579/0.6756, allocations: 2.052 MB / 497.9 MB, free: 0.9141 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.6757, allocations: 12.03 kB / 497.9 MB, free: 0.9023 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003891/0.6796, allocations: 401.7 kB / 498.3 MB, free: 0.5078 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002673/0.6823, allocations: 0.8951 MB / 499.2 MB, free: 15.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.6825, allocations: 110.7 kB / 499.3 MB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003708/0.6829, allocations: 139.8 kB / 499.4 MB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006469/0.6894, allocations: 1.677 MB / 0.4894 GB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-05/0.6896, allocations: 7.938 kB / 0.4894 GB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002366/0.6898, allocations: 59.95 kB / 0.4894 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.188e-05/0.6899, allocations: 46.36 kB / 0.4895 GB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006658/0.6966, allocations: 1.379 MB / 0.4908 GB, free: 12.04 MB / 410.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.01729/0.7139, allocations: 7.68 MB / 0.4983 GB, free: 3.848 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004531/0.7185, allocations: 0.9518 MB / 0.4992 GB, free: 2.891 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09426/0.8128, allocations: 24.52 MB / 0.5232 GB, free: 7.469 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.481e-05/0.8129, allocations: 43.22 kB / 0.5232 GB, free: 7.418 MB / 442.7 MB Notification: Performance of pre-optimization done (n=71): time 4.638e-06/0.813, allocations: 0 / 0.5232 GB, free: 7.418 MB / 442.7 MB Notification: Performance of matching and sorting (n=74): time 0.01974/0.8327, allocations: 3.061 MB / 0.5262 GB, free: 4.285 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.145e-05/0.8329, allocations: 115.5 kB / 0.5263 GB, free: 4.148 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002199/0.8351, allocations: 0.8495 MB / 0.5272 GB, free: 3.285 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/0.8352, allocations: 33.7 kB / 0.5272 GB, free: 3.246 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006682/0.8359, allocations: 0.6913 MB / 0.5279 GB, free: 2.547 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003531/0.8363, allocations: 268.2 kB / 0.5281 GB, free: 2.281 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-05/0.8364, allocations: 24 kB / 0.5281 GB, free: 2.258 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.8366, allocations: 350.8 kB / 0.5285 GB, free: 1.906 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001598/0.8382, allocations: 354.4 kB / 0.5288 GB, free: 1.559 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002343/0.8405, allocations: 0.7941 MB / 0.5296 GB, free: 0.5586 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002157/0.8427, allocations: 458.9 kB / 0.53 GB, free: 116 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/0.8428, allocations: 4 kB / 0.53 GB, free: 112 kB / 442.7 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.006293/0.8491, allocations: 1.283 MB / 0.5313 GB, free: 14.81 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003314/0.8524, allocations: 5.652 MB / 0.5368 GB, free: 8.715 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.496e-05/0.8525, allocations: 12 kB / 0.5368 GB, free: 8.703 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003243/0.8558, allocations: 284.5 kB / 0.5371 GB, free: 8.422 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00252/0.8583, allocations: 279.5 kB / 0.5374 GB, free: 8.148 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002128/0.8605, allocations: 0.8057 MB / 0.5381 GB, free: 7.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002591/0.8631, allocations: 103.9 kB / 0.5382 GB, free: 7.219 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002353/0.8634, allocations: 59.98 kB / 0.5383 GB, free: 7.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.8634, allocations: 7.938 kB / 0.5383 GB, free: 7.152 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005927/0.8694, allocations: 1.207 MB / 0.5395 GB, free: 5.941 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-05/0.8694, allocations: 16 kB / 0.5395 GB, free: 5.926 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001949/0.8714, allocations: 185 kB / 0.5397 GB, free: 5.742 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002461/0.8739, allocations: 279.5 kB / 0.5399 GB, free: 5.469 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.8759, allocations: 0.7591 MB / 0.5407 GB, free: 4.684 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001833/0.8777, allocations: 107.8 kB / 0.5408 GB, free: 4.578 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/0.878, allocations: 63.98 kB / 0.5408 GB, free: 4.516 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (133): * Single equations (assignments): 132 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.001271/0.8792, allocations: 317.4 kB / 0.5411 GB, free: 4.195 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004646/0.8797, allocations: 118.5 kB / 0.5413 GB, free: 4.078 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009664/0.8894, allocations: 3.166 MB / 0.5444 GB, free: 0.8828 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.611e-05/0.8895, allocations: 35.94 kB / 0.5444 GB, free: 0.8477 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/0.8896, allocations: 4 kB / 0.5444 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.527e-05/0.8896, allocations: 7.938 kB / 0.5444 GB, free: 0.8359 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0147/0.9043, allocations: 4.803 MB / 0.5491 GB, free: 11.95 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.9044, allocations: 0 / 0.5491 GB, free: 11.95 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/0.9061, allocations: 163.8 kB / 0.5492 GB, free: 11.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003847/0.91, allocations: 1.088 MB / 0.5503 GB, free: 10.69 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001388/0.9102, allocations: 23.98 kB / 0.5503 GB, free: 10.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002469/0.9127, allocations: 1.427 MB / 0.5517 GB, free: 9.215 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.9127, allocations: 7.938 kB / 0.5517 GB, free: 9.207 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007489/0.9202, allocations: 3.217 MB / 0.5549 GB, free: 5.891 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.9213, allocations: 430 kB / 0.5553 GB, free: 5.449 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003282/0.9217, allocations: 19.98 kB / 0.5553 GB, free: 5.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.9231, allocations: 83.84 kB / 0.5554 GB, free: 5.348 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002395/0.9233, allocations: 76.44 kB / 0.5555 GB, free: 5.273 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.9234, allocations: 39.98 kB / 0.5555 GB, free: 5.234 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001873/0.9253, allocations: 0.8399 MB / 0.5563 GB, free: 4.395 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9253, allocations: 0 / 0.5563 GB, free: 4.395 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00651/0.9318, allocations: 1.546 MB / 0.5578 GB, free: 2.848 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (motor.inertiaRotor.phi,motor.inertiaRotor.w,motor.la.i,housing.T) * Number of discrete variables: 21 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.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 (72): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 15} Notification: Performance of Backend phase and start with SimCode phase: time 0.007116/0.939, allocations: 1.385 MB / 0.5592 GB, free: 1.461 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006011/0.9451, allocations: 1.813 MB / 0.5609 GB, free: 15.65 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.9451, allocations: 2 kB / 0.561 GB, free: 15.65 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002142/0.9473, allocations: 0.8465 MB / 0.5618 GB, free: 14.81 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003958/0.9512, allocations: 466.2 kB / 0.5622 GB, free: 14.36 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00916/0.9604, allocations: 4.481 MB / 0.5666 GB, free: 9.812 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/0.9618, allocations: 1.397 MB / 0.568 GB, free: 8.383 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005309/0.9623, allocations: 107.4 kB / 0.5681 GB, free: 8.277 MB / 490.7 MB Notification: Performance of SimCode: time 1.032e-06/0.9623, allocations: 0 / 0.5681 GB, free: 8.277 MB / 490.7 MB Notification: Performance of Templates: time 0.446/1.408, allocations: 46.86 MB / 0.6138 GB, free: 172.1 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer.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.TestWaterPumpDCMotorHeatTransferCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransferCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransferCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransferFunctions.cpp:6344:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp453, tmp454); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.TestWaterPumpDCMotorHeatTransferCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransferCalcHelperMain.o] Error 1