Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|motor.inertiaRotor.phi|motor.inertiaRotor.w|motor.la.i",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor") Notification: Performance of loadModel(ModelicaTest): time 2.419/2.419, allocations: 269 MB / 284.1 MB, free: 3.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.808e-05/2.805e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1805/0.1806, allocations: 61.9 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor): time 0.4046/0.5852, allocations: 38.35 MB / 449.3 MB, free: 8.484 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04246/0.6277, allocations: 17.58 MB / 466.9 MB, free: 11.95 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002129/0.6299, allocations: 57.38 kB / 466.9 MB, free: 11.93 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002536/0.6325, allocations: 0.575 MB / 467.5 MB, free: 11.41 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01733/0.6499, allocations: 3.954 MB / 471.4 MB, free: 7.977 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01185/0.6617, allocations: 2.744 MB / 474.2 MB, free: 5.809 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004506/0.6663, allocations: 1.392 MB / 475.6 MB, free: 4.812 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001769/0.6681, allocations: 0.6993 MB / 476.3 MB, free: 4.359 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002892/0.671, allocations: 0.8315 MB / 477.1 MB, free: 3.891 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01448/0.6856, allocations: 6.087 MB / 483.2 MB, free: 15.66 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02159/0.7072, allocations: 7.121 MB / 490.3 MB, free: 8.535 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003163/0.7104, allocations: 460 kB / 490.8 MB, free: 8.086 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006278/0.7111, allocations: 255 kB / 491 MB, free: 7.836 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008018/0.7119, allocations: 164 kB / 491.2 MB, free: 7.676 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01162/0.7235, allocations: 4.349 MB / 495.5 MB, free: 3.316 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.7236, allocations: 7.938 kB / 495.5 MB, free: 3.309 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.337e-06/0.7236, allocations: 0 / 495.5 MB, free: 3.309 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.866e-05/0.7237, allocations: 0 / 495.5 MB, free: 3.309 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: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 0.007326/0.731, allocations: 2.029 MB / 497.6 MB, free: 1.227 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.7311, allocations: 8.031 kB / 497.6 MB, free: 1.219 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003821/0.7349, allocations: 417.6 kB / 498 MB, free: 0.8086 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002608/0.7376, allocations: 0.8835 MB / 498.9 MB, free: 15.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.7378, allocations: 98.61 kB / 499 MB, free: 15.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003203/0.7381, allocations: 135.9 kB / 499.1 MB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006335/0.7445, allocations: 1.66 MB / 0.489 GB, free: 13.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.797e-05/0.7446, allocations: 7.844 kB / 0.489 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002258/0.7448, allocations: 59.95 kB / 0.4891 GB, free: 13.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-05/0.7449, allocations: 46.31 kB / 0.4891 GB, free: 13.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006388/0.7513, allocations: 1.359 MB / 0.4904 GB, free: 12.41 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.01752/0.7689, allocations: 7.71 MB / 0.498 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004918/0.7739, allocations: 0.9854 MB / 0.4989 GB, free: 3.172 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09093/0.8649, allocations: 24.51 MB / 0.5229 GB, free: 7.758 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.539e-05/0.865, allocations: 43.12 kB / 0.5229 GB, free: 7.707 MB / 442.7 MB Notification: Performance of pre-optimization done (n=68): time 3.817e-06/0.865, allocations: 0 / 0.5229 GB, free: 7.707 MB / 442.7 MB Notification: Performance of matching and sorting (n=71): time 0.01567/0.8807, allocations: 3.131 MB / 0.526 GB, free: 4.504 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.443e-05/0.8808, allocations: 115.5 kB / 0.5261 GB, free: 4.363 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001955/0.8828, allocations: 0.8494 MB / 0.5269 GB, free: 3.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.883, allocations: 41.7 kB / 0.527 GB, free: 3.453 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006897/0.8837, allocations: 0.6834 MB / 0.5276 GB, free: 2.762 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003398/0.884, allocations: 252.4 kB / 0.5279 GB, free: 2.512 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-05/0.8841, allocations: 24 kB / 0.5279 GB, free: 2.488 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.8843, allocations: 358.7 kB / 0.5282 GB, free: 2.129 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/0.8857, allocations: 346.4 kB / 0.5286 GB, free: 1.793 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00184/0.8876, allocations: 0.7989 MB / 0.5293 GB, free: 0.7852 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001607/0.8892, allocations: 458.9 kB / 0.5298 GB, free: 344 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.947e-05/0.8893, allocations: 4 kB / 0.5298 GB, free: 340 kB / 442.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00454/0.8938, allocations: 1.278 MB / 0.531 GB, free: 15.04 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002822/0.8967, allocations: 5.751 MB / 0.5366 GB, free: 8.844 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.412e-05/0.8968, allocations: 16 kB / 0.5367 GB, free: 8.828 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002895/0.8997, allocations: 324.5 kB / 0.537 GB, free: 8.508 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/0.9016, allocations: 267.5 kB / 0.5372 GB, free: 8.246 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002481/0.9041, allocations: 0.8567 MB / 0.5381 GB, free: 7.363 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/0.906, allocations: 95.91 kB / 0.5381 GB, free: 7.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/0.9062, allocations: 63.98 kB / 0.5382 GB, free: 7.207 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.9063, allocations: 4 kB / 0.5382 GB, free: 7.203 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005865/0.9121, allocations: 1.254 MB / 0.5394 GB, free: 5.945 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-05/0.9122, allocations: 16 kB / 0.5395 GB, free: 5.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001532/0.9138, allocations: 217.3 kB / 0.5397 GB, free: 5.715 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/0.9155, allocations: 275.5 kB / 0.5399 GB, free: 5.445 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.9172, allocations: 0.7942 MB / 0.5407 GB, free: 4.625 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.9186, allocations: 95.86 kB / 0.5408 GB, free: 4.531 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001694/0.9188, allocations: 63.98 kB / 0.5409 GB, free: 4.469 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (127): * Single equations (assignments): 126 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0009735/0.9198, allocations: 325.3 kB / 0.5412 GB, free: 4.141 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003679/0.9202, allocations: 118.5 kB / 0.5413 GB, free: 4.023 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007655/0.9279, allocations: 3.181 MB / 0.5444 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-05/0.928, allocations: 31.95 kB / 0.5444 GB, free: 0.7812 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.928, allocations: 4 kB / 0.5444 GB, free: 0.7773 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/0.928, allocations: 3.984 kB / 0.5444 GB, free: 0.7734 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.9383, allocations: 4.692 MB / 0.549 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.709e-06/0.9384, allocations: 0 / 0.549 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/0.9396, allocations: 160 kB / 0.5492 GB, free: 11.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003764/0.9434, allocations: 1.065 MB / 0.5502 GB, free: 10.77 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.7e-05/0.9435, allocations: 20 kB / 0.5502 GB, free: 10.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002751/0.9463, allocations: 1.496 MB / 0.5517 GB, free: 9.23 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.285e-06/0.9463, allocations: 7.969 kB / 0.5517 GB, free: 9.223 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007628/0.954, allocations: 3.131 MB / 0.5547 GB, free: 5.988 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/0.9551, allocations: 430 kB / 0.5551 GB, free: 5.547 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003189/0.9554, allocations: 19.98 kB / 0.5552 GB, free: 5.527 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/0.9568, allocations: 79.94 kB / 0.5552 GB, free: 5.449 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/0.957, allocations: 68.56 kB / 0.5553 GB, free: 5.383 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.078e-05/0.9571, allocations: 27.98 kB / 0.5553 GB, free: 5.355 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001933/0.959, allocations: 0.8516 MB / 0.5562 GB, free: 4.504 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.9591, allocations: 0 / 0.5562 GB, free: 4.504 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005857/0.9649, allocations: 1.523 MB / 0.5577 GB, free: 2.98 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (motor.inertiaRotor.phi,motor.inertiaRotor.w,motor.la.i) * 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.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 (65): * Single equations (assignments): 58 * 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 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.007162/0.9721, allocations: 1.383 MB / 0.559 GB, free: 1.594 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00658/0.9788, allocations: 1.798 MB / 0.5608 GB, free: 15.81 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.9788, allocations: 0.6875 kB / 0.5608 GB, free: 15.81 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002243/0.9811, allocations: 0.8478 MB / 0.5616 GB, free: 14.96 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003945/0.985, allocations: 455.6 kB / 0.562 GB, free: 14.52 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008787/0.9939, allocations: 4.344 MB / 0.5663 GB, free: 10.11 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001286/0.9952, allocations: 1.393 MB / 0.5676 GB, free: 8.684 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004612/0.9957, allocations: 99.42 kB / 0.5677 GB, free: 8.586 MB / 490.7 MB Notification: Performance of SimCode: time 8.41e-07/0.9957, allocations: 0 / 0.5677 GB, free: 8.586 MB / 490.7 MB Notification: Performance of Templates: time 0.5289/1.525, allocations: 46.36 MB / 0.613 GB, free: 172.3 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.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.TestWaterPumpDCMotorCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorFunctions.cpp:6358:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp447, tmp448); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.TestWaterPumpDCMotorCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorCalcHelperMain.o] Error 1