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.001088/0.001088, allocations: 100.1 kB / 15.88 MB, free: 12 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.001163/0.001163, allocations: 196.6 kB / 16.79 MB, free: 6.809 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.363/1.363, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9498/0.9498, allocations: 135.1 MB / 425.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.53 kB / 0.5053 GB, free: 5.754 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1856, allocations: 80.93 MB / 0.5843 GB, free: 4.996 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4905/0.6761, allocations: 173.5 MB / 0.7538 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01682/0.693, allocations: 12.66 MB / 0.7662 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.6945, allocations: 31.81 kB / 0.7662 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001384/0.6959, allocations: 361.7 kB / 0.7665 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002841/0.6988, allocations: 0.827 MB / 0.7673 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004429/0.7032, allocations: 1.632 MB / 0.7689 GB, free: 432 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003185/0.7064, allocations: 2.628 MB / 0.7715 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002226/0.7087, allocations: 1.459 MB / 0.7729 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004791/0.7135, allocations: 1.212 MB / 0.7741 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001429/0.7149, allocations: 0.7972 MB / 0.7749 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002583/0.7152, allocations: 84 kB / 0.775 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002975/0.7182, allocations: 1.462 MB / 0.7764 GB, free: 8.754 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004382/0.7186, allocations: 394.6 kB / 0.7768 GB, free: 8.367 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00083/0.7195, allocations: 0.7265 MB / 0.7775 GB, free: 7.637 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002352/0.7218, allocations: 1.926 MB / 0.7794 GB, free: 5.707 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.7218, allocations: 0 / 0.7794 GB, free: 5.707 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.343e-06/0.7218, allocations: 0 / 0.7794 GB, free: 5.707 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.918e-05/0.7219, allocations: 0 / 0.7794 GB, free: 5.707 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.003263/0.7251, allocations: 1.909 MB / 0.7812 GB, free: 3.742 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.7252, allocations: 8.031 kB / 0.7812 GB, free: 3.734 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002689/0.7279, allocations: 393.7 kB / 0.7816 GB, free: 3.348 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.7294, allocations: 0.9644 MB / 0.7826 GB, free: 2.34 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.855e-05/0.7295, allocations: 94.62 kB / 0.7826 GB, free: 2.246 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001589/0.7296, allocations: 127.9 kB / 0.7828 GB, free: 2.121 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002581/0.7322, allocations: 1.453 MB / 0.7842 GB, free: 0.5898 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.7323, allocations: 11.94 kB / 0.7842 GB, free: 0.5781 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.7324, allocations: 52 kB / 0.7842 GB, free: 0.5273 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.247e-05/0.7324, allocations: 32 kB / 0.7843 GB, free: 0.4961 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002522/0.735, allocations: 1.536 MB / 0.7858 GB, free: 14.95 MB / 0.6075 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.00702/0.742, allocations: 4.901 MB / 0.7906 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/0.7446, allocations: 1.431 MB / 0.792 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008553/0.7455, allocations: 452.8 kB / 0.7924 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009187/0.7464, allocations: 425.4 kB / 0.7928 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/0.7477, allocations: 0.6138 MB / 0.7934 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=98): time 3.477e-06/0.7477, allocations: 3.938 kB / 0.7934 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of matching and sorting (n=98): time 0.004376/0.7521, allocations: 1.532 MB / 0.7949 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.7522, allocations: 188.9 kB / 0.7951 GB, free: 4.934 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/0.7537, allocations: 0.8543 MB / 0.7959 GB, free: 4.055 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001494/0.7538, allocations: 45.7 kB / 0.796 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005893/0.7544, allocations: 0.5701 MB / 0.7965 GB, free: 3.426 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003517/0.7548, allocations: 331.2 kB / 0.7968 GB, free: 3.098 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003547/0.7552, allocations: 206.4 kB / 0.797 GB, free: 2.887 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.7553, allocations: 345.9 kB / 0.7974 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007893/0.7561, allocations: 365.8 kB / 0.7977 GB, free: 2.188 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008689/0.757, allocations: 0.5208 MB / 0.7982 GB, free: 1.613 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001625/0.7586, allocations: 0.9097 MB / 0.7991 GB, free: 0.6602 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.7586, allocations: 0 / 0.7991 GB, free: 0.6602 MB / 0.6075 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002655/0.7613, allocations: 1.161 MB / 0.8002 GB, free: 15.49 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.7613, allocations: 7.938 kB / 0.8002 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.7614, allocations: 4 kB / 0.8002 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006401/0.762, allocations: 93 kB / 0.8003 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.7631, allocations: 239.6 kB / 0.8006 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002107/0.7652, allocations: 1.534 MB / 0.8021 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.7663, allocations: 135 kB / 0.8022 GB, free: 13.35 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.7664, allocations: 43.97 kB / 0.8022 GB, free: 13.3 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.0006623/0.7671, allocations: 329.5 kB / 0.8025 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003178/0.7674, allocations: 118.5 kB / 0.8027 GB, free: 12.86 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00312/0.7706, allocations: 1.338 MB / 0.804 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.7706, allocations: 16 kB / 0.804 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.7706, allocations: 0 / 0.804 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.7706, allocations: 3.984 kB / 0.804 GB, free: 11.49 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.005/0.7756, allocations: 2.694 MB / 0.8066 GB, free: 8.707 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.7756, allocations: 0 / 0.8066 GB, free: 8.707 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009722/0.7766, allocations: 211.8 kB / 0.8068 GB, free: 8.5 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005233/0.7772, allocations: 84.77 kB / 0.8069 GB, free: 8.414 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-05/0.7773, allocations: 27.98 kB / 0.8069 GB, free: 8.387 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002015/0.7793, allocations: 1.559 MB / 0.8084 GB, free: 6.688 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.7793, allocations: 4.062 kB / 0.8084 GB, free: 6.684 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002777/0.7821, allocations: 1.23 MB / 0.8096 GB, free: 5.438 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000676/0.7828, allocations: 339.3 kB / 0.81 GB, free: 5.086 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002557/0.7831, allocations: 20 kB / 0.81 GB, free: 5.066 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.7841, allocations: 97.94 kB / 0.8101 GB, free: 4.973 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.7843, allocations: 68.91 kB / 0.8102 GB, free: 4.906 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.7844, allocations: 43.97 kB / 0.8102 GB, free: 4.863 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001027/0.7854, allocations: 0.5903 MB / 0.8108 GB, free: 4.262 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7854, allocations: 0 / 0.8108 GB, free: 4.262 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001459/0.7869, allocations: 466.9 kB / 0.8112 GB, free: 3.805 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.001722/0.7886, allocations: 0.6929 MB / 0.8119 GB, free: 3.32 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002457/0.7911, allocations: 1.066 MB / 0.8129 GB, free: 2.242 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.7911, allocations: 0 / 0.8129 GB, free: 2.242 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.7924, allocations: 0.6366 MB / 0.8136 GB, free: 1.594 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/0.795, allocations: 478 kB / 0.814 GB, free: 1.133 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005885/0.8009, allocations: 2.964 MB / 0.8169 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009961/0.8019, allocations: 1.179 MB / 0.8181 GB, free: 12.93 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005912/0.8025, allocations: 151.4 kB / 0.8182 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of SimCode: time 8.32e-07/0.8025, allocations: 3.938 kB / 0.8182 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of Templates: time 0.04162/0.8442, allocations: 26.81 MB / 0.8444 GB, free: 2.082 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