Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002365/0.002371, allocations: 188.6 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.079/2.079, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001173/0.001173, allocations: 98.86 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006689/0.0006694, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1019, allocations: 47.57 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3707/0.4727, allocations: 67.57 MB / 442.2 MB, free: 8.762 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0481/0.5208, allocations: 20.66 MB / 462.8 MB, free: 4.066 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003956/0.5248, allocations: 103.1 kB / 462.9 MB, free: 3.965 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004593/0.5295, allocations: 0.9174 MB / 463.9 MB, free: 3.043 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01196/0.5415, allocations: 2.691 MB / 466.6 MB, free: 352 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02148/0.563, allocations: 5.423 MB / 472 MB, free: 10.91 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.009468/0.5724, allocations: 3.883 MB / 475.9 MB, free: 7.027 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003575/0.5761, allocations: 1.513 MB / 477.4 MB, free: 5.496 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.7307/1.307, allocations: 123.8 MB / 0.5871 GB, free: 39.35 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1414/1.448, allocations: 53.32 MB / 0.6392 GB, free: 6.098 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00133/1.45, allocations: 124 kB / 0.6393 GB, free: 5.977 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02638/1.476, allocations: 8.008 MB / 0.6471 GB, free: 14.97 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002322/1.478, allocations: 0.87 MB / 0.648 GB, free: 14.39 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001561/1.48, allocations: 0.5311 MB / 0.6485 GB, free: 14.08 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01031/1.49, allocations: 3.818 MB / 0.6522 GB, free: 10.79 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/1.49, allocations: 2.844 kB / 0.6522 GB, free: 10.79 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.826e-06/1.49, allocations: 4 kB / 0.6522 GB, free: 10.79 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001399/1.491, allocations: 0 / 0.6522 GB, free: 10.79 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01409/1.505, allocations: 3.003 MB / 0.6552 GB, free: 7.965 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.143e-05/1.505, allocations: 12.03 kB / 0.6552 GB, free: 7.953 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001529/1.506, allocations: 339.3 kB / 0.6555 GB, free: 7.738 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001906/1.508, allocations: 308.6 kB / 0.6558 GB, free: 7.434 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005206/1.514, allocations: 1.524 MB / 0.6573 GB, free: 6.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003703/1.514, allocations: 223.9 kB / 0.6575 GB, free: 6.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000968/1.515, allocations: 198.7 kB / 0.6577 GB, free: 5.961 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/1.525, allocations: 3.276 MB / 0.6609 GB, free: 3.559 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-05/1.525, allocations: 8.219 kB / 0.6609 GB, free: 3.555 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004241/1.526, allocations: 82.64 kB / 0.661 GB, free: 3.535 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005812/1.526, allocations: 255.1 kB / 0.6612 GB, free: 3.316 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01068/1.537, allocations: 3.109 MB / 0.6643 GB, free: 1.25 MB / 442.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.03704/1.574, allocations: 13.95 MB / 0.6779 GB, free: 5.086 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007798/1.582, allocations: 2.216 MB / 0.68 GB, free: 3.668 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01605/1.598, allocations: 5.936 MB / 0.6858 GB, free: 14.42 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.702e-05/1.598, allocations: 54.38 kB / 0.6859 GB, free: 14.37 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001347/1.6, allocations: 184.8 kB / 0.6861 GB, free: 14.21 MB / 474.7 MB Notification: Performance of pre-optimization done (n=173): time 7.494e-06/1.6, allocations: 0.8438 kB / 0.6861 GB, free: 14.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=199): time 0.04406/1.644, allocations: 9.313 MB / 0.6952 GB, free: 7.219 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.69e-05/1.644, allocations: 73.41 kB / 0.6952 GB, free: 7.133 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003964/1.648, allocations: 1.827 MB / 0.697 GB, free: 5.727 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006477/1.649, allocations: 59.27 kB / 0.6971 GB, free: 5.688 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/1.65, allocations: 0.9839 MB / 0.698 GB, free: 5.051 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/1.651, allocations: 0.6831 MB / 0.6987 GB, free: 4.465 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002735/1.651, allocations: 48.69 kB / 0.6988 GB, free: 4.453 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002598/1.652, allocations: 401.8 kB / 0.6991 GB, free: 4.09 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003759/1.655, allocations: 1.214 MB / 0.7003 GB, free: 3.285 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004546/1.66, allocations: 1.775 MB / 0.7021 GB, free: 1.734 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004603/1.665, allocations: 1.463 MB / 0.7035 GB, free: 0.8281 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-05/1.665, allocations: 4 kB / 0.7035 GB, free: 0.8242 MB / 474.7 MB Notification: Performance of matching and sorting (n=300) (initialization): time 0.2933/1.958, allocations: 4.135 MB / 0.7075 GB, free: 199.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001644/1.96, allocations: 6.702 MB / 0.7141 GB, free: 192.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-05/1.96, allocations: 17.12 kB / 0.7141 GB, free: 192.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02635/1.986, allocations: 3.631 MB / 0.7176 GB, free: 192.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002629/1.989, allocations: 328.4 kB / 0.7179 GB, free: 192.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01318/2.002, allocations: 4.024 MB / 0.7219 GB, free: 190.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004402/2.007, allocations: 193.2 kB / 0.7221 GB, free: 190.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007683/2.007, allocations: 116.9 kB / 0.7222 GB, free: 190.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/2.007, allocations: 10.25 kB / 0.7222 GB, free: 190.4 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01215/2.02, allocations: 3.828 MB / 0.7259 GB, free: 189 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-05/2.02, allocations: 20 kB / 0.7259 GB, free: 189 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01633/2.036, allocations: 2.611 MB / 0.7285 GB, free: 188.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003035/2.039, allocations: 373.8 kB / 0.7288 GB, free: 188.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008966/2.048, allocations: 3.514 MB / 0.7323 GB, free: 187 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003305/2.052, allocations: 187.5 kB / 0.7325 GB, free: 186.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006161/2.052, allocations: 112.5 kB / 0.7326 GB, free: 186.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 173 * 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 {19 108} Notification: Performance of prepare postOptimizeDAE: time 0.002426/2.055, allocations: 0.7016 MB / 0.7332 GB, free: 186.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007526/2.055, allocations: 230.5 kB / 0.7335 GB, free: 186.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01426/2.07, allocations: 3.99 MB / 0.7374 GB, free: 184.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.451e-05/2.07, allocations: 27.11 kB / 0.7374 GB, free: 184.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.456e-05/2.07, allocations: 3.312 kB / 0.7374 GB, free: 184.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01043/2.08, allocations: 3.403 MB / 0.7407 GB, free: 181.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01825/2.099, allocations: 6.376 MB / 0.7469 GB, free: 174.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/2.099, allocations: 0 / 0.7469 GB, free: 174.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002876/2.102, allocations: 321.4 kB / 0.7472 GB, free: 174.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00758/2.109, allocations: 1.273 MB / 0.7485 GB, free: 173.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005513/2.11, allocations: 75.94 kB / 0.7486 GB, free: 173.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01279/2.123, allocations: 10.57 MB / 0.7589 GB, free: 161.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/2.123, allocations: 3.953 kB / 0.7589 GB, free: 161.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01448/2.137, allocations: 5.242 MB / 0.764 GB, free: 156.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002238/2.139, allocations: 0.6317 MB / 0.7646 GB, free: 155.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006836/2.14, allocations: 55.98 kB / 0.7647 GB, free: 155.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003067/2.143, allocations: 145.6 kB / 0.7648 GB, free: 155.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006691/2.144, allocations: 173.2 kB / 0.765 GB, free: 155.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003248/2.144, allocations: 79.95 kB / 0.7651 GB, free: 155.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002454/2.147, allocations: 1.216 MB / 0.7662 GB, free: 154.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.147, allocations: 0 / 0.7662 GB, free: 154.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007613/2.154, allocations: 1.735 MB / 0.7679 GB, free: 152.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 169 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01793/2.172, allocations: 6.687 MB / 0.7745 GB, free: 146.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0178/2.19, allocations: 5.024 MB / 0.7794 GB, free: 141.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/2.19, allocations: 0 / 0.7794 GB, free: 141.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006933/2.197, allocations: 2.258 MB / 0.7816 GB, free: 138.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007603/2.205, allocations: 0.924 MB / 0.7825 GB, free: 137.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02273/2.228, allocations: 20.37 MB / 0.8024 GB, free: 116.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/2.23, allocations: 1.898 MB / 0.8042 GB, free: 115 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002298/2.232, allocations: 1.026 MB / 0.8052 GB, free: 114 MB / 474.7 MB Notification: Performance of SimCode: time 1.713e-06/2.232, allocations: 0 / 0.8052 GB, free: 114 MB / 474.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystemCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystemCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystemCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystemFunctions.cpp:1239:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp181, tmp182); ^~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/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); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystemCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystemFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 1 error generated. : recipe for target 'OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystemCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystemCalcHelperMain.o] Error 1