Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009523/0.0009523, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 187.3 kB / 16.92 MB, free: 6.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9333/0.9333, allocations: 135.3 MB / 427.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003291, allocations: 8.875 kB / 0.5082 GB, free: 4.789 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1512, allocations: 82.31 MB / 0.5886 GB, free: 2.652 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4829/0.6341, allocations: 171.2 MB / 0.7558 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01843/0.6526, allocations: 12.49 MB / 0.768 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001589/0.6543, allocations: 27.81 kB / 0.768 GB, free: 4.84 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002035/0.6563, allocations: 361.8 kB / 0.7684 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004271/0.6606, allocations: 0.8411 MB / 0.7692 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005101/0.6657, allocations: 1.623 MB / 0.7708 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003502/0.6693, allocations: 2.62 MB / 0.7733 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002464/0.6718, allocations: 1.37 MB / 0.7747 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004772/0.6765, allocations: 1.103 MB / 0.7757 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001173/0.6777, allocations: 0.6646 MB / 0.7764 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003055/0.6781, allocations: 40 kB / 0.7764 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002988/0.6811, allocations: 1.411 MB / 0.7778 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004724/0.6815, allocations: 330.6 kB / 0.7781 GB, free: 10.47 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001051/0.6826, allocations: 0.6579 MB / 0.7788 GB, free: 9.801 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002986/0.6856, allocations: 1.898 MB / 0.7806 GB, free: 7.898 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.6856, allocations: 0 / 0.7806 GB, free: 7.898 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.034e-06/0.6856, allocations: 3.938 kB / 0.7806 GB, free: 7.895 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 6.95e-05/0.6857, allocations: 0 / 0.7806 GB, free: 7.895 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.003329/0.689, allocations: 1.59 MB / 0.7822 GB, free: 6.25 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.6891, allocations: 12.03 kB / 0.7822 GB, free: 6.238 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002837/0.6919, allocations: 405.7 kB / 0.7826 GB, free: 5.84 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00187/0.6938, allocations: 0.9527 MB / 0.7835 GB, free: 4.84 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.84e-05/0.694, allocations: 94.62 kB / 0.7836 GB, free: 4.746 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002624/0.6942, allocations: 132 kB / 0.7837 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002889/0.6971, allocations: 1.463 MB / 0.7851 GB, free: 3.078 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.6972, allocations: 0 / 0.7851 GB, free: 3.078 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001495/0.6973, allocations: 56 kB / 0.7852 GB, free: 3.023 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.683e-05/0.6974, allocations: 32 kB / 0.7852 GB, free: 2.992 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002719/0.7001, allocations: 1.543 MB / 0.7867 GB, free: 1.441 MB / 0.5919 GB 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.00761/0.7077, allocations: 4.938 MB / 0.7916 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00249/0.7102, allocations: 1.436 MB / 0.793 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008191/0.7111, allocations: 452.8 kB / 0.7934 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007718/0.7119, allocations: 441.4 kB / 0.7938 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001143/0.713, allocations: 0.6255 MB / 0.7944 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=98): time 3.767e-06/0.713, allocations: 0 / 0.7944 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of matching and sorting (n=98): time 0.004055/0.7171, allocations: 1.555 MB / 0.7959 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.7172, allocations: 192.9 kB / 0.7961 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/0.7185, allocations: 0.8465 MB / 0.797 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.7187, allocations: 45.7 kB / 0.797 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004784/0.7191, allocations: 0.57 MB / 0.7976 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002964/0.7194, allocations: 331.2 kB / 0.7979 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.7196, allocations: 81.67 kB / 0.798 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.7198, allocations: 353.8 kB / 0.7983 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007454/0.7205, allocations: 369.8 kB / 0.7986 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008729/0.7214, allocations: 0.5286 MB / 0.7992 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.723, allocations: 0.9175 MB / 0.8001 GB, free: 3.168 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.723, allocations: 0 / 0.8001 GB, free: 3.168 MB / 0.6075 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002624/0.7257, allocations: 1.157 MB / 0.8012 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.7257, allocations: 8 kB / 0.8012 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.7257, allocations: 4 kB / 0.8012 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006028/0.7263, allocations: 93.11 kB / 0.8013 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.7274, allocations: 243.7 kB / 0.8015 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002224/0.7296, allocations: 1.535 MB / 0.803 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001137/0.7308, allocations: 153.7 kB / 0.8032 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.7309, allocations: 47.97 kB / 0.8032 GB, free: 15.79 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006727/0.7316, allocations: 325.5 kB / 0.8035 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002659/0.7318, allocations: 122.5 kB / 0.8036 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.7349, allocations: 1.342 MB / 0.8049 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.7349, allocations: 12 kB / 0.805 GB, free: 13.97 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.7349, allocations: 0 / 0.805 GB, free: 13.97 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.7349, allocations: 7.969 kB / 0.805 GB, free: 13.96 MB / 0.6231 GB 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 postOpt removeSimpleEquations (simulation): time 0.004653/0.7396, allocations: 2.695 MB / 0.8076 GB, free: 11.19 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.7396, allocations: 3.938 kB / 0.8076 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009479/0.7406, allocations: 211.7 kB / 0.8078 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005203/0.7411, allocations: 92.77 kB / 0.8079 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.758e-05/0.7412, allocations: 27.97 kB / 0.8079 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001781/0.743, allocations: 1.559 MB / 0.8094 GB, free: 9.156 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.743, allocations: 4.031 kB / 0.8094 GB, free: 9.152 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002512/0.7455, allocations: 1.234 MB / 0.8106 GB, free: 7.902 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006217/0.7462, allocations: 355.2 kB / 0.811 GB, free: 7.535 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/0.7464, allocations: 20 kB / 0.811 GB, free: 7.516 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.7475, allocations: 113.3 kB / 0.8111 GB, free: 7.406 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.7477, allocations: 72.89 kB / 0.8112 GB, free: 7.336 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.7478, allocations: 47.97 kB / 0.8112 GB, free: 7.289 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008959/0.7487, allocations: 0.5864 MB / 0.8118 GB, free: 6.691 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7487, allocations: 0 / 0.8118 GB, free: 6.691 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001306/0.75, allocations: 462.9 kB / 0.8122 GB, free: 6.238 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001719/0.7517, allocations: 0.6893 MB / 0.8129 GB, free: 5.754 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002279/0.754, allocations: 1.078 MB / 0.814 GB, free: 4.66 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.7541, allocations: 0 / 0.814 GB, free: 4.66 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.7552, allocations: 0.6367 MB / 0.8146 GB, free: 4.012 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/0.7577, allocations: 485.2 kB / 0.8151 GB, free: 3.543 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005773/0.7635, allocations: 3.037 MB / 0.818 GB, free: 488 kB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008542/0.7644, allocations: 1.181 MB / 0.8192 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000541/0.7649, allocations: 147.4 kB / 0.8193 GB, free: 15.12 MB / 0.6387 GB Notification: Performance of SimCode: time 1.413e-06/0.7649, allocations: 0 / 0.8193 GB, free: 15.12 MB / 0.6387 GB Notification: Performance of Templates: time 0.03751/0.8025, allocations: 26.62 MB / 0.8453 GB, free: 4.613 MB / 0.6544 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile make -j1 -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile clang++ -std=c++14 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.o OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataFunctions.cpp:8: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources/getTimeSpan.c:27:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'void *' char *result = malloc(len1 + len2 + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [: OMCppIDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.o] Error 1