Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.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.BoundaryConditions.WeatherData.Examples.ReaderTMY3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3") translateModel(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 103.3 kB / 16.41 MB, free: 6.5 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.001202/0.001202, allocations: 185.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.625/1.625, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8029/0.8029, allocations: 132.2 MB / 423.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 57.12 kB / 0.582 GB, free: 23.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1786/0.1799, allocations: 80.21 MB / 0.6603 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.008303/0.1882, allocations: 6.22 MB / 0.6664 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6718/0.86, allocations: 153.2 MB / 0.816 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001661/0.8617, allocations: 34.5 kB / 0.816 GB, free: 10.56 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0009444/0.8627, allocations: 314 kB / 0.8163 GB, free: 10.39 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002672/0.8654, allocations: 0.6646 MB / 0.817 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003371/0.8688, allocations: 1.305 MB / 0.8183 GB, free: 9.602 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003308/0.8721, allocations: 2.316 MB / 0.8205 GB, free: 8.758 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001548/0.8737, allocations: 1.07 MB / 0.8216 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001372/0.8751, allocations: 0.7762 MB / 0.8223 GB, free: 7.617 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001051/0.8761, allocations: 0.7934 MB / 0.8231 GB, free: 7.047 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002511/0.8764, allocations: 184.9 kB / 0.8233 GB, free: 7.047 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001926/0.8783, allocations: 0.9511 MB / 0.8242 GB, free: 6.629 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004606/0.8788, allocations: 489.3 kB / 0.8247 GB, free: 6.25 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009056/0.8797, allocations: 0.8974 MB / 0.8256 GB, free: 5.566 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003704/0.8834, allocations: 2.719 MB / 0.8282 GB, free: 3.617 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.8834, allocations: 0 / 0.8282 GB, free: 3.617 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.873e-06/0.8835, allocations: 0 / 0.8282 GB, free: 3.617 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.899e-05/0.8835, allocations: 4 kB / 0.8282 GB, free: 3.613 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: 341 * Number of variables: 341 Notification: Performance of Generate backend data structure: time 0.003986/0.8875, allocations: 2.152 MB / 0.8303 GB, free: 1.98 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.8875, allocations: 7.812 kB / 0.8303 GB, free: 1.98 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001992/0.8895, allocations: 364.7 kB / 0.8307 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001949/0.8915, allocations: 1.235 MB / 0.8319 GB, free: 0.8359 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-05/0.8916, allocations: 106.2 kB / 0.832 GB, free: 0.7852 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/0.8918, allocations: 125 kB / 0.8321 GB, free: 0.7461 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002778/0.8946, allocations: 1.521 MB / 0.8336 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.991e-05/0.8946, allocations: 2.906 kB / 0.8336 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/0.8948, allocations: 56.84 kB / 0.8336 GB, free: 15.7 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.823e-05/0.8948, allocations: 36.55 kB / 0.8337 GB, free: 15.69 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003285/0.8981, allocations: 2.046 MB / 0.8357 GB, free: 14.71 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007405/0.9055, allocations: 4.383 MB / 0.8399 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002714/0.9082, allocations: 1.434 MB / 0.8414 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009789/0.9092, allocations: 0.5318 MB / 0.8419 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.9094, allocations: 56.56 kB / 0.8419 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001464/0.9109, allocations: 0.7911 MB / 0.8427 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=136): time 2.826e-06/0.9109, allocations: 0 / 0.8427 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of matching and sorting (n=136): time 0.00574/0.9166, allocations: 2.109 MB / 0.8448 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001905/0.9168, allocations: 351.3 kB / 0.8451 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001565/0.9184, allocations: 1.079 MB / 0.8461 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001465/0.9185, allocations: 60.45 kB / 0.8462 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000522/0.9191, allocations: 0.6105 MB / 0.8468 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003871/0.9195, allocations: 449.5 kB / 0.8472 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004304/0.9199, allocations: 286.7 kB / 0.8475 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001519/0.9201, allocations: 361.9 kB / 0.8478 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009972/0.9211, allocations: 470.3 kB / 0.8483 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001206/0.9223, allocations: 0.6497 MB / 0.8489 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002182/0.9245, allocations: 1.127 MB / 0.85 GB, free: 3.062 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.9245, allocations: 3.938 kB / 0.85 GB, free: 3.059 MB / 0.6075 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003781/0.9283, allocations: 1.516 MB / 0.8515 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.9283, allocations: 11.94 kB / 0.8515 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.9283, allocations: 4 kB / 0.8515 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.9294, allocations: 161.8 kB / 0.8517 GB, free: 1.348 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/0.9306, allocations: 291.6 kB / 0.852 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004052/0.9347, allocations: 3.291 MB / 0.8552 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001451/0.9361, allocations: 155.5 kB / 0.8553 GB, free: 13.33 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.9363, allocations: 70.77 kB / 0.8554 GB, free: 13.26 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 16 (weaDatInpCon.conTim.canRepeatWeatherFile,weaDatInpCon.conTimMin.canRepeatWeatherFile,weaDatInpCon.conTim.tNext,$PRE.weaDatInpCon.conTim.tNext,weaDatInpCon.conTimMin.tNext,$PRE.weaDatInpCon.conTimMin.tNext,$whenCondition1,$whenCondition2,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 159 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0007767/0.9371, allocations: 388.8 kB / 0.8558 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003003/0.9374, allocations: 150.1 kB / 0.8559 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004479/0.9418, allocations: 1.966 MB / 0.8578 GB, free: 10.74 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.565e-05/0.9419, allocations: 23.94 kB / 0.8578 GB, free: 10.71 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.9419, allocations: 0 / 0.8578 GB, free: 10.71 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.9419, allocations: 11.97 kB / 0.8579 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/0.9438, allocations: 1.466 MB / 0.8593 GB, free: 9.191 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.9438, allocations: 0 / 0.8593 GB, free: 9.191 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.9449, allocations: 275.6 kB / 0.8596 GB, free: 8.922 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008366/0.9458, allocations: 149.6 kB / 0.8597 GB, free: 8.77 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.012e-05/0.9459, allocations: 43.97 kB / 0.8597 GB, free: 8.727 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003797/0.9497, allocations: 3.356 MB / 0.863 GB, free: 5.082 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.9497, allocations: 0 / 0.863 GB, free: 5.082 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003796/0.9535, allocations: 1.615 MB / 0.8646 GB, free: 3.445 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000689/0.9542, allocations: 434.6 kB / 0.865 GB, free: 3 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002068/0.9544, allocations: 36 kB / 0.865 GB, free: 2.965 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.9555, allocations: 102.1 kB / 0.8651 GB, free: 2.867 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.9557, allocations: 133.6 kB / 0.8653 GB, free: 2.738 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.9558, allocations: 63.95 kB / 0.8653 GB, free: 2.676 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001049/0.9569, allocations: 0.7417 MB / 0.8661 GB, free: 1.93 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9569, allocations: 0 / 0.8661 GB, free: 1.93 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001254/0.9581, allocations: 478.9 kB / 0.8665 GB, free: 1.461 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition4,$whenCondition3,weaDat.conTimMin.tNext,weaDat.conTim.tNext,$whenCondition2,$whenCondition1,weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext) * Number of discrete states: 4 (weaDatInpCon.conTimMin.tNext,weaDatInpCon.conTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (161): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001429/0.9596, allocations: 0.6268 MB / 0.8671 GB, free: 1.047 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003258/0.9628, allocations: 1.515 MB / 0.8686 GB, free: 15.51 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.9629, allocations: 0 / 0.8686 GB, free: 15.51 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001822/0.9647, allocations: 0.9575 MB / 0.8695 GB, free: 14.53 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002447/0.9671, allocations: 0.556 MB / 0.8701 GB, free: 14.02 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007719/0.9749, allocations: 3.092 MB / 0.8731 GB, free: 10.89 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/0.976, allocations: 1.278 MB / 0.8743 GB, free: 9.586 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006854/0.9767, allocations: 207.3 kB / 0.8745 GB, free: 9.383 MB / 0.6387 GB Notification: Performance of SimCode: time 7.61e-07/0.9767, allocations: 0 / 0.8745 GB, free: 9.383 MB / 0.6387 GB Notification: Performance of Templates: time 0.05106/1.028, allocations: 37.13 MB / 0.9108 GB, free: 4.266 MB / 0.67 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.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.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3Functions.cpp:7: /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.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.o] Error 1