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.001151/0.001151, allocations: 102.9 kB / 16.4 MB, free: 6.465 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.001116/0.001116, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.344/1.344, 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-master/package.mo): time 0.8113/0.8113, allocations: 135.1 MB / 426.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 64.44 kB / 0.5863 GB, free: 21.63 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1692, allocations: 80.92 MB / 0.6653 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5192/0.6885, allocations: 175.8 MB / 0.837 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01477/0.7033, allocations: 12.64 MB / 0.8493 GB, free: 15 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/0.7045, allocations: 32.62 kB / 0.8493 GB, free: 14.99 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001253/0.7058, allocations: 455.4 kB / 0.8498 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.002597/0.7085, allocations: 0.9484 MB / 0.8507 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004347/0.7128, allocations: 1.831 MB / 0.8525 GB, free: 12.52 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.002745/0.7156, allocations: 2.292 MB / 0.8547 GB, free: 11.15 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002022/0.7176, allocations: 1.584 MB / 0.8563 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003657/0.7213, allocations: 1.406 MB / 0.8577 GB, free: 9.289 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001148/0.7224, allocations: 0.8113 MB / 0.8584 GB, free: 8.734 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002302/0.7227, allocations: 158.7 kB / 0.8586 GB, free: 8.734 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002654/0.7254, allocations: 1.412 MB / 0.86 GB, free: 7.984 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004281/0.7258, allocations: 470.5 kB / 0.8604 GB, free: 7.523 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0008327/0.7266, allocations: 0.8007 MB / 0.8612 GB, free: 6.719 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003776/0.7304, allocations: 2.636 MB / 0.8638 GB, free: 4.078 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.7305, allocations: 0 / 0.8638 GB, free: 4.078 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.703e-06/0.7305, allocations: 0 / 0.8638 GB, free: 4.078 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 3.229e-05/0.7305, allocations: 0 / 0.8638 GB, free: 4.078 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.003064/0.7336, allocations: 1.903 MB / 0.8656 GB, free: 2.117 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.7336, allocations: 13.11 kB / 0.8657 GB, free: 2.105 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00255/0.7362, allocations: 401.6 kB / 0.866 GB, free: 1.711 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001639/0.7378, allocations: 0.9879 MB / 0.867 GB, free: 0.6797 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.474e-05/0.7379, allocations: 102.6 kB / 0.8671 GB, free: 0.5781 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.7381, allocations: 124 kB / 0.8672 GB, free: 468 kB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00238/0.7405, allocations: 1.456 MB / 0.8686 GB, free: 14.92 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.696e-05/0.7405, allocations: 4 kB / 0.8686 GB, free: 14.92 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.7407, allocations: 56 kB / 0.8687 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.635e-05/0.7407, allocations: 32 kB / 0.8687 GB, free: 14.83 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002425/0.7431, allocations: 1.536 MB / 0.8702 GB, free: 13.29 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 preOpt removeSimpleEquations (simulation): time 0.006734/0.7499, allocations: 4.868 MB / 0.875 GB, free: 8.164 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002361/0.7523, allocations: 1.428 MB / 0.8764 GB, free: 6.652 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007735/0.7531, allocations: 448.6 kB / 0.8768 GB, free: 6.215 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007106/0.7538, allocations: 429.4 kB / 0.8772 GB, free: 5.719 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0011/0.7549, allocations: 0.6216 MB / 0.8778 GB, free: 5.078 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=98): time 3.036e-06/0.7549, allocations: 4 kB / 0.8778 GB, free: 5.074 MB / 0.6387 GB Notification: Performance of matching and sorting (n=98): time 0.003977/0.7589, allocations: 1.516 MB / 0.8793 GB, free: 3.531 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.759, allocations: 200.9 kB / 0.8795 GB, free: 3.293 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.7603, allocations: 0.8542 MB / 0.8803 GB, free: 2.414 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.7605, allocations: 45.7 kB / 0.8804 GB, free: 2.363 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004953/0.761, allocations: 0.5739 MB / 0.8809 GB, free: 1.781 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002816/0.7613, allocations: 331.2 kB / 0.8813 GB, free: 1.453 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003057/0.7616, allocations: 194.5 kB / 0.8814 GB, free: 1.258 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.7617, allocations: 345.9 kB / 0.8818 GB, free: 0.9141 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007354/0.7625, allocations: 361.8 kB / 0.8821 GB, free: 0.5586 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008782/0.7633, allocations: 0.5365 MB / 0.8826 GB, free: 15.97 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/0.765, allocations: 0.898 MB / 0.8835 GB, free: 15.04 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.765, allocations: 4 kB / 0.8835 GB, free: 15.03 MB / 0.6544 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.00266/0.7676, allocations: 1.149 MB / 0.8846 GB, free: 13.87 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.7677, allocations: 8 kB / 0.8846 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/0.7677, allocations: 7.875 kB / 0.8847 GB, free: 13.85 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006044/0.7683, allocations: 89.12 kB / 0.8847 GB, free: 13.76 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.7694, allocations: 243.6 kB / 0.885 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002235/0.7717, allocations: 1.643 MB / 0.8866 GB, free: 11.74 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/0.7728, allocations: 125.3 kB / 0.8867 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.7729, allocations: 43.97 kB / 0.8867 GB, free: 11.57 MB / 0.6544 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.0006691/0.7736, allocations: 337.4 kB / 0.8871 GB, free: 11.23 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002988/0.7739, allocations: 114.6 kB / 0.8872 GB, free: 11.12 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002996/0.7769, allocations: 1.326 MB / 0.8885 GB, free: 9.785 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.035e-05/0.7769, allocations: 15.94 kB / 0.8885 GB, free: 9.77 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.7769, allocations: 7.984 kB / 0.8885 GB, free: 9.762 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.7769, allocations: 3.984 kB / 0.8885 GB, free: 9.758 MB / 0.6544 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.004573/0.7815, allocations: 2.692 MB / 0.8911 GB, free: 6.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.7815, allocations: 0 / 0.8911 GB, free: 6.98 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009494/0.7825, allocations: 211.7 kB / 0.8913 GB, free: 6.773 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004355/0.783, allocations: 76.78 kB / 0.8914 GB, free: 6.695 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.449e-05/0.783, allocations: 27.98 kB / 0.8914 GB, free: 6.668 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001867/0.7849, allocations: 1.681 MB / 0.8931 GB, free: 4.836 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.7849, allocations: 0 / 0.8931 GB, free: 4.836 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002566/0.7875, allocations: 1.228 MB / 0.8943 GB, free: 3.586 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005867/0.7881, allocations: 339.2 kB / 0.8946 GB, free: 3.234 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00022/0.7883, allocations: 24 kB / 0.8946 GB, free: 3.211 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008893/0.7892, allocations: 63.92 kB / 0.8947 GB, free: 3.148 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.7894, allocations: 76.91 kB / 0.8947 GB, free: 3.074 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.7895, allocations: 43.97 kB / 0.8948 GB, free: 3.031 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0008509/0.7903, allocations: 0.594 MB / 0.8954 GB, free: 2.426 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7904, allocations: 0 / 0.8954 GB, free: 2.426 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001309/0.7917, allocations: 466.9 kB / 0.8958 GB, free: 1.969 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.001726/0.7934, allocations: 0.6963 MB / 0.8965 GB, free: 1.453 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002264/0.7957, allocations: 1.067 MB / 0.8975 GB, free: 384 kB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.7957, allocations: 11.84 kB / 0.8975 GB, free: 372 kB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001186/0.7969, allocations: 0.6329 MB / 0.8982 GB, free: 15.71 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/0.7993, allocations: 0.5088 MB / 0.8987 GB, free: 15.23 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005253/0.8045, allocations: 2.381 MB / 0.901 GB, free: 12.81 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008137/0.8054, allocations: 1.17 MB / 0.9021 GB, free: 11.61 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004952/0.8059, allocations: 147.4 kB / 0.9023 GB, free: 11.46 MB / 0.67 GB Notification: Performance of SimCode: time 9.11e-07/0.8059, allocations: 0 / 0.9023 GB, free: 11.46 MB / 0.67 GB Notification: Performance of Templates: time 0.0363/0.8422, allocations: 26.96 MB / 0.9286 GB, free: 0.5938 MB / 0.6856 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++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-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