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_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor") Notification: Performance of loadModel(ModelicaTest): time 1.936/1.936, allocations: 209.3 MB / 224.4 MB, free: 0.6602 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.579e-05/2.587e-05, allocations: 0 / 276.1 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3443, allocations: 48.71 MB / 324.9 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor): time 0.06567/0.41, allocations: 37.93 MB / 362.8 MB, free: 7.742 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03657/0.4466, allocations: 17.41 MB / 380.2 MB, free: 8.137 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002362/0.449, allocations: 59.69 kB / 380.3 MB, free: 8.078 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002794/0.4519, allocations: 0.575 MB / 380.8 MB, free: 7.5 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01726/0.4692, allocations: 3.918 MB / 384.7 MB, free: 3.566 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01092/0.4801, allocations: 2.68 MB / 387.4 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004322/0.4845, allocations: 1.38 MB / 388.8 MB, free: 15.5 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/0.4861, allocations: 0.6918 MB / 389.5 MB, free: 14.8 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002449/0.4886, allocations: 0.8257 MB / 390.3 MB, free: 13.97 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01564/0.5043, allocations: 6.444 MB / 396.8 MB, free: 7.52 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02082/0.5251, allocations: 6.996 MB / 403.8 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003278/0.5285, allocations: 444 kB / 404.2 MB, free: 84 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006698/0.5292, allocations: 254.9 kB / 404.5 MB, free: 15.83 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000734/0.5299, allocations: 160 kB / 404.6 MB, free: 15.68 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01137/0.5413, allocations: 4.271 MB / 408.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.5414, allocations: 0 / 408.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.5414, allocations: 0 / 408.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.884e-05/0.5414, allocations: 0 / 408.9 MB, free: 11.39 MB / 346.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.006951/0.5484, allocations: 2.005 MB / 410.9 MB, free: 9.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.5485, allocations: 8.031 kB / 410.9 MB, free: 9.332 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003783/0.5523, allocations: 393.7 kB / 411.3 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002589/0.5549, allocations: 0.9066 MB / 412.2 MB, free: 7.996 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.5551, allocations: 102.6 kB / 412.3 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003062/0.5554, allocations: 135.9 kB / 412.4 MB, free: 7.762 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005706/0.5611, allocations: 1.648 MB / 414.1 MB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-05/0.5612, allocations: 11.88 kB / 414.1 MB, free: 6 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/0.5615, allocations: 56 kB / 414.1 MB, free: 5.945 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.371e-05/0.5616, allocations: 50.3 kB / 414.2 MB, free: 5.895 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005884/0.5674, allocations: 1.344 MB / 415.5 MB, free: 4.543 MB / 346.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.01434/0.5818, allocations: 7.614 MB / 423.1 MB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00427/0.5862, allocations: 0.9225 MB / 424.1 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06379/0.65, allocations: 18.57 MB / 442.6 MB, free: 6.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.031e-05/0.6501, allocations: 43.12 kB / 442.7 MB, free: 6.539 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 3.517e-06/0.6501, allocations: 0 / 442.7 MB, free: 6.539 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.05761/0.7077, allocations: 5.945 MB / 448.6 MB, free: 468 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.6022/1.31, allocations: 48.71 MB / 497.3 MB, free: 118.5 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:12803:7-12804:76:writable] Warning: Parameter motor.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=motor.Jr) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001567/1.312, allocations: 0.7825 MB / 498.1 MB, free: 118.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001861/1.312, allocations: 40.45 kB / 498.2 MB, free: 118.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004689/1.312, allocations: 0.7079 MB / 498.9 MB, free: 117.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003649/1.313, allocations: 327.7 kB / 499.2 MB, free: 117.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/1.313, allocations: 25.97 kB / 499.2 MB, free: 117.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/1.313, allocations: 361 kB / 499.6 MB, free: 117.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/1.315, allocations: 472.2 kB / 0.4883 GB, free: 116.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001829/1.316, allocations: 0.9583 MB / 0.4892 GB, free: 116.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001961/1.318, allocations: 0.585 MB / 0.4898 GB, free: 115.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/1.318, allocations: 3.594 kB / 0.4898 GB, free: 115.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.005394/1.324, allocations: 1.684 MB / 0.4915 GB, free: 115.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001274/1.325, allocations: 6.356 MB / 0.4977 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.805e-05/1.325, allocations: 18.22 kB / 0.4977 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009557/1.335, allocations: 0.9768 MB / 0.4986 GB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002363/1.337, allocations: 306.2 kB / 0.4989 GB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004491/1.342, allocations: 1.688 MB / 0.5006 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002762/1.345, allocations: 114.7 kB / 0.5007 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000251/1.345, allocations: 79.78 kB / 0.5008 GB, free: 107 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/1.345, allocations: 3.781 kB / 0.5008 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009445/1.354, allocations: 1.779 MB / 0.5025 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.31e-05/1.354, allocations: 15.06 kB / 0.5025 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005307/1.36, allocations: 0.6496 MB / 0.5032 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002563/1.362, allocations: 305.1 kB / 0.5034 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004265/1.367, allocations: 1.642 MB / 0.505 GB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00213/1.369, allocations: 105.6 kB / 0.5051 GB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002348/1.369, allocations: 75.86 kB / 0.5052 GB, free: 104.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (145): * Single equations (assignments): 143 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 9,2 12} Notification: Performance of prepare postOptimizeDAE: time 0.001163/1.37, allocations: 339.6 kB / 0.5055 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004181/1.371, allocations: 119.5 kB / 0.5057 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01098/1.382, allocations: 3.724 MB / 0.5093 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.744e-05/1.382, allocations: 42.77 kB / 0.5093 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/1.382, allocations: 3.938 kB / 0.5093 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.952e-05/1.382, allocations: 3.656 kB / 0.5093 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01699/1.399, allocations: 5.864 MB / 0.5151 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/1.399, allocations: 3.75 kB / 0.5151 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/1.401, allocations: 159.3 kB / 0.5152 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007982/1.409, allocations: 1.608 MB / 0.5168 GB, free: 99.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001632/1.409, allocations: 23.84 kB / 0.5168 GB, free: 99.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004001/1.413, allocations: 2.411 MB / 0.5192 GB, free: 97.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.08819/1.501, allocations: 25.28 MB / 0.5439 GB, free: 71.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008688/1.51, allocations: 3.872 MB / 0.5476 GB, free: 67.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000772/1.511, allocations: 382.4 kB / 0.548 GB, free: 67.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000289/1.511, allocations: 20 kB / 0.548 GB, free: 67.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/1.512, allocations: 91.83 kB / 0.5481 GB, free: 67.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/1.512, allocations: 68.89 kB / 0.5482 GB, free: 67.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.807e-05/1.513, allocations: 51.97 kB / 0.5482 GB, free: 67.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001173/1.514, allocations: 0.6627 MB / 0.5489 GB, free: 66.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.91e-07/1.514, allocations: 0 / 0.5489 GB, free: 66.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0151/1.529, allocations: 3.917 MB / 0.5527 GB, free: 62.81 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 ($STATESET1.x,motor.inertiaRotor.phi,motor.la.i) * Number of discrete variables: 21 ($cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.region3boundary,$cse12.region3boundary,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.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 (75): * Single equations (assignments): 67 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 7,3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.02996/1.559, allocations: 2.81 MB / 0.5554 GB, free: 60.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007315/1.566, allocations: 2.395 MB / 0.5578 GB, free: 57.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/1.566, allocations: 8 kB / 0.5578 GB, free: 57.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002708/1.569, allocations: 1.107 MB / 0.5589 GB, free: 56.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003188/1.572, allocations: 397.1 kB / 0.5592 GB, free: 56.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008604/1.581, allocations: 5.096 MB / 0.5642 GB, free: 51.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009703/1.582, allocations: 1.427 MB / 0.5656 GB, free: 49.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005951/1.582, allocations: 119.4 kB / 0.5657 GB, free: 49.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.103e-06/1.582, allocations: 3.938 kB / 0.5657 GB, free: 49.7 MB / 410.7 MB Notification: Performance of Templates: time 0.549/2.131, allocations: 123 MB / 0.6859 GB, free: 82.38 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_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"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorFunctions.cpp:15707:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp1348, tmp1349); ^~~~~~~~~~~~~~~~~~~~~~~~ /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_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorCalcHelperMain.o] Error 1