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.001326/0.001326, allocations: 105.6 kB / 16.41 MB, free: 6.496 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.001442/0.001442, allocations: 189.6 kB / 17.34 MB, free: 5.766 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.366/1.366, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8202/0.8202, allocations: 132.2 MB / 423.4 MB, free: 6.641 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 62.38 kB / 0.582 GB, free: 23.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1623, allocations: 80.2 MB / 0.6603 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5889/0.7512, allocations: 175.8 MB / 0.832 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0155/0.7668, allocations: 12.64 MB / 0.8443 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001327/0.7682, allocations: 32.28 kB / 0.8444 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.7696, allocations: 446.4 kB / 0.8448 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.00297/0.7725, allocations: 0.9256 MB / 0.8457 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004649/0.7772, allocations: 1.817 MB / 0.8475 GB, free: 2.312 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.002739/0.78, allocations: 2.285 MB / 0.8497 GB, free: 0.9492 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002111/0.7821, allocations: 1.585 MB / 0.8513 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004853/0.787, allocations: 1.382 MB / 0.8526 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001261/0.7882, allocations: 0.8094 MB / 0.8534 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002438/0.7885, allocations: 158.7 kB / 0.8535 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002777/0.7913, allocations: 1.408 MB / 0.8549 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.000405/0.7917, allocations: 461.5 kB / 0.8554 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0008327/0.7925, allocations: 0.8013 MB / 0.8561 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003725/0.7963, allocations: 2.641 MB / 0.8587 GB, free: 10.94 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.7963, allocations: 0 / 0.8587 GB, free: 10.94 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.224e-06/0.7963, allocations: 7.938 kB / 0.8587 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.697e-05/0.7963, allocations: 0 / 0.8587 GB, free: 10.93 MB / 0.6231 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.002996/0.7993, allocations: 1.899 MB / 0.8606 GB, free: 8.977 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.7994, allocations: 8.031 kB / 0.8606 GB, free: 8.969 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002473/0.8019, allocations: 405.5 kB / 0.861 GB, free: 8.57 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.8033, allocations: 0.9841 MB / 0.8619 GB, free: 7.543 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.073e-05/0.8034, allocations: 98.62 kB / 0.862 GB, free: 7.445 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.8036, allocations: 124 kB / 0.8622 GB, free: 7.324 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00237/0.806, allocations: 1.456 MB / 0.8636 GB, free: 5.789 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.806, allocations: 7.938 kB / 0.8636 GB, free: 5.781 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.8061, allocations: 56 kB / 0.8636 GB, free: 5.727 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.462e-05/0.8061, allocations: 32 kB / 0.8637 GB, free: 5.695 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002481/0.8086, allocations: 1.54 MB / 0.8652 GB, free: 4.148 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 preOpt removeSimpleEquations (simulation): time 0.006298/0.815, allocations: 4.872 MB / 0.8699 GB, free: 15.01 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002348/0.8173, allocations: 1.432 MB / 0.8713 GB, free: 13.5 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007687/0.8181, allocations: 455.6 kB / 0.8718 GB, free: 13.05 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006985/0.8188, allocations: 429.4 kB / 0.8722 GB, free: 12.56 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001088/0.8199, allocations: 0.6209 MB / 0.8728 GB, free: 11.93 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=98): time 3.928e-06/0.8199, allocations: 0 / 0.8728 GB, free: 11.93 MB / 0.6387 GB Notification: Performance of matching and sorting (n=98): time 0.003839/0.8238, allocations: 1.524 MB / 0.8743 GB, free: 10.38 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.614e-05/0.8239, allocations: 196.9 kB / 0.8745 GB, free: 10.14 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.825, allocations: 0.8581 MB / 0.8753 GB, free: 9.258 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 9.178e-05/0.8251, allocations: 49.7 kB / 0.8753 GB, free: 9.203 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004303/0.8255, allocations: 0.5661 MB / 0.8759 GB, free: 8.629 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002559/0.8258, allocations: 327.2 kB / 0.8762 GB, free: 8.305 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002909/0.8261, allocations: 206.4 kB / 0.8764 GB, free: 8.098 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.8262, allocations: 341.9 kB / 0.8767 GB, free: 7.758 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007108/0.8269, allocations: 373.8 kB / 0.8771 GB, free: 7.391 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008671/0.8278, allocations: 0.5286 MB / 0.8776 GB, free: 6.809 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001588/0.8294, allocations: 0.898 MB / 0.8785 GB, free: 5.867 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.8294, allocations: 4 kB / 0.8785 GB, free: 5.863 MB / 0.6387 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002527/0.832, allocations: 1.145 MB / 0.8796 GB, free: 4.711 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.832, allocations: 8 kB / 0.8796 GB, free: 4.703 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.832, allocations: 7.938 kB / 0.8796 GB, free: 4.695 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000567/0.8326, allocations: 89.17 kB / 0.8797 GB, free: 4.605 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.8336, allocations: 243.6 kB / 0.8799 GB, free: 4.367 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002017/0.8356, allocations: 1.635 MB / 0.8815 GB, free: 2.586 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009488/0.8366, allocations: 123 kB / 0.8816 GB, free: 2.465 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001539/0.8368, allocations: 47.97 kB / 0.8817 GB, free: 2.418 MB / 0.6387 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.0006812/0.8374, allocations: 334.3 kB / 0.882 GB, free: 2.082 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003126/0.8378, allocations: 110.7 kB / 0.8821 GB, free: 1.973 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003044/0.8408, allocations: 1.342 MB / 0.8834 GB, free: 0.625 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.8408, allocations: 11.94 kB / 0.8834 GB, free: 0.6133 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.8409, allocations: 3.984 kB / 0.8834 GB, free: 0.6094 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.8409, allocations: 7.922 kB / 0.8834 GB, free: 0.6016 MB / 0.6387 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.00479/0.8457, allocations: 2.688 MB / 0.8861 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/0.8457, allocations: 0 / 0.8861 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009398/0.8467, allocations: 211.8 kB / 0.8863 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004379/0.8471, allocations: 72.78 kB / 0.8863 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.621e-05/0.8472, allocations: 31.98 kB / 0.8864 GB, free: 13.51 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001873/0.8491, allocations: 1.67 MB / 0.888 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.8491, allocations: 8 kB / 0.888 GB, free: 11.69 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002582/0.8517, allocations: 1.224 MB / 0.8892 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006008/0.8523, allocations: 347.2 kB / 0.8895 GB, free: 10.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000235/0.8526, allocations: 16 kB / 0.8896 GB, free: 10.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009449/0.8535, allocations: 74.73 kB / 0.8896 GB, free: 10 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.8537, allocations: 68.91 kB / 0.8897 GB, free: 9.934 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.8538, allocations: 47.97 kB / 0.8897 GB, free: 9.887 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000945/0.8548, allocations: 0.5941 MB / 0.8903 GB, free: 9.281 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.21e-07/0.8548, allocations: 0 / 0.8903 GB, free: 9.281 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001372/0.8562, allocations: 462.8 kB / 0.8908 GB, free: 8.828 MB / 0.6544 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.001769/0.8579, allocations: 0.7021 MB / 0.8914 GB, free: 8.34 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002293/0.8602, allocations: 1.066 MB / 0.8925 GB, free: 7.258 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.8603, allocations: 4 kB / 0.8925 GB, free: 7.254 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.8615, allocations: 0.6372 MB / 0.8931 GB, free: 6.605 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/0.8641, allocations: 0.509 MB / 0.8936 GB, free: 6.133 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005539/0.8696, allocations: 2.367 MB / 0.8959 GB, free: 3.73 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008646/0.8705, allocations: 1.174 MB / 0.8971 GB, free: 2.523 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004974/0.871, allocations: 143.4 kB / 0.8972 GB, free: 2.383 MB / 0.6544 GB Notification: Performance of SimCode: time 9.92e-07/0.871, allocations: 0 / 0.8972 GB, free: 2.383 MB / 0.6544 GB Notification: Performance of Templates: time 0.0384/0.9094, allocations: 27.16 MB / 0.9237 GB, free: 7.301 MB / 0.6856 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