Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.00131/0.00131, allocations: 107.5 kB / 16.27 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 190.7 kB / 17.2 MB, free: 5.613 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.404/1.404, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.84/0.84, allocations: 132.2 MB / 423.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 75.88 kB / 0.5024 GB, free: 11.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.394/0.3955, allocations: 80.17 MB / 0.5807 GB, free: 27.44 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5821/0.9777, allocations: 175.8 MB / 0.7524 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01667/0.9944, allocations: 12.64 MB / 0.7648 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001812/0.9963, allocations: 30.94 kB / 0.7648 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001605/0.998, allocations: 438 kB / 0.7652 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003744/1.002, allocations: 0.9264 MB / 0.7661 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.006043/1.008, allocations: 1.817 MB / 0.7679 GB, free: 1.605 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004023/1.012, allocations: 2.272 MB / 0.7701 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002898/1.015, allocations: 1.587 MB / 0.7717 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004269/1.019, allocations: 1.341 MB / 0.773 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001432/1.02, allocations: 0.809 MB / 0.7738 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003312/1.021, allocations: 159.7 kB / 0.7739 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003656/1.024, allocations: 1.383 MB / 0.7753 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005172/1.025, allocations: 468 kB / 0.7757 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001008/1.026, allocations: 0.7971 MB / 0.7765 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004072/1.03, allocations: 2.584 MB / 0.779 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/1.03, allocations: 0 / 0.779 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.964e-06/1.03, allocations: 0 / 0.779 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.19e-05/1.03, allocations: 3.75 kB / 0.779 GB, free: 1.055 MB / 0.5762 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.00365/1.034, allocations: 1.905 MB / 0.7809 GB, free: 16.08 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/1.034, allocations: 9.531 kB / 0.7809 GB, free: 16.08 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002736/1.037, allocations: 398 kB / 0.7813 GB, free: 16 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001668/1.038, allocations: 0.9566 MB / 0.7822 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.511e-05/1.038, allocations: 100.2 kB / 0.7823 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000158/1.039, allocations: 125.3 kB / 0.7824 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002444/1.041, allocations: 1.458 MB / 0.7838 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.643e-05/1.041, allocations: 3.406 kB / 0.7838 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001271/1.041, allocations: 56.5 kB / 0.7839 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/1.041, allocations: 33.52 kB / 0.7839 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002781/1.044, allocations: 1.534 MB / 0.7854 GB, free: 15.4 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.008707/1.053, allocations: 4.929 MB / 0.7902 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002552/1.055, allocations: 1.419 MB / 0.7916 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007973/1.056, allocations: 449.3 kB / 0.792 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008197/1.057, allocations: 427.9 kB / 0.7925 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001114/1.058, allocations: 0.6227 MB / 0.7931 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=98): time 3.727e-06/1.058, allocations: 0 / 0.7931 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of matching and sorting (n=98): time 0.003955/1.062, allocations: 1.526 MB / 0.7946 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/1.062, allocations: 191.8 kB / 0.7947 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/1.063, allocations: 0.8564 MB / 0.7956 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001105/1.064, allocations: 47.14 kB / 0.7956 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004622/1.064, allocations: 0.5697 MB / 0.7962 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002775/1.064, allocations: 334.2 kB / 0.7965 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002901/1.065, allocations: 195 kB / 0.7967 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001426/1.065, allocations: 348.2 kB / 0.797 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006578/1.065, allocations: 369.6 kB / 0.7974 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008185/1.066, allocations: 0.5211 MB / 0.7979 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001684/1.068, allocations: 0.9046 MB / 0.7988 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/1.068, allocations: 0 / 0.7988 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002666/1.071, allocations: 1.149 MB / 0.7999 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/1.071, allocations: 11.06 kB / 0.7999 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/1.071, allocations: 10.11 kB / 0.7999 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006023/1.071, allocations: 85.75 kB / 0.8 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/1.072, allocations: 239.6 kB / 0.8002 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00225/1.075, allocations: 1.658 MB / 0.8018 GB, free: 9.117 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/1.076, allocations: 117.6 kB / 0.8019 GB, free: 9.066 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.673e-05/1.076, allocations: 56.48 kB / 0.802 GB, free: 9.062 MB / 0.5919 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.0007634/1.077, allocations: 332.4 kB / 0.8023 GB, free: 8.941 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002554/1.077, allocations: 119.1 kB / 0.8024 GB, free: 8.883 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002979/1.08, allocations: 1.322 MB / 0.8037 GB, free: 8.773 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/1.08, allocations: 8.5 kB / 0.8037 GB, free: 8.773 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/1.08, allocations: 3.219 kB / 0.8037 GB, free: 8.773 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.821e-05/1.08, allocations: 9.75 kB / 0.8037 GB, free: 8.77 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 postOpt removeSimpleEquations (simulation): time 0.004752/1.085, allocations: 2.69 MB / 0.8064 GB, free: 8.27 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/1.085, allocations: 0 / 0.8064 GB, free: 8.27 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009197/1.086, allocations: 214.8 kB / 0.8066 GB, free: 8.27 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004462/1.086, allocations: 71.94 kB / 0.8066 GB, free: 8.262 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.826e-05/1.086, allocations: 36.08 kB / 0.8067 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002011/1.088, allocations: 1.678 MB / 0.8083 GB, free: 6.871 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/1.088, allocations: 0 / 0.8083 GB, free: 6.871 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002629/1.091, allocations: 1.231 MB / 0.8095 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000618/1.092, allocations: 335.6 kB / 0.8098 GB, free: 6.477 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001629/1.092, allocations: 21.47 kB / 0.8099 GB, free: 6.477 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008462/1.093, allocations: 70.41 kB / 0.8099 GB, free: 6.477 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/1.093, allocations: 74.52 kB / 0.81 GB, free: 6.469 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.571e-05/1.093, allocations: 48.94 kB / 0.81 GB, free: 6.469 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008299/1.094, allocations: 0.5876 MB / 0.8106 GB, free: 6.359 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/1.094, allocations: 1.031 kB / 0.8106 GB, free: 6.359 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001395/1.095, allocations: 453.9 kB / 0.811 GB, free: 6.285 MB / 0.5919 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.001758/1.097, allocations: 0.704 MB / 0.8117 GB, free: 6.094 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003433/1.1, allocations: 1.359 MB / 0.8131 GB, free: 5.934 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/1.1, allocations: 2 kB / 0.8131 GB, free: 5.934 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001203/1.102, allocations: 0.6409 MB / 0.8137 GB, free: 5.672 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002414/1.104, allocations: 0.5129 MB / 0.8142 GB, free: 5.527 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005763/1.11, allocations: 2.415 MB / 0.8165 GB, free: 4.355 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009878/1.111, allocations: 1.177 MB / 0.8177 GB, free: 3.605 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00063/1.111, allocations: 149.1 kB / 0.8178 GB, free: 3.582 MB / 0.5919 GB Notification: Performance of SimCode: time 1.032e-06/1.111, allocations: 0 / 0.8178 GB, free: 3.582 MB / 0.5919 GB Notification: Performance of Templates: time 0.04294/1.154, allocations: 26.82 MB / 0.844 GB, free: 11.09 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile make -j1 -f IDEAS_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile clang++ -std=c++17 -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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.o OMCppIDEAS_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataFunctions.cpp:8: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherDataCalcHelperMain.o] Error 1