Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.BoundaryConditions.WeatherData.Examples.ReaderTMY3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3") translateModel(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001376/0.001376, allocations: 108 kB / 16.41 MB, free: 6.492 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.001313/0.001313, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.472/1.472, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8552/0.8552, allocations: 135.2 MB / 426.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002696/0.002696, allocations: 63.39 kB / 0.5863 GB, free: 21.69 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1931, allocations: 80.93 MB / 0.6653 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.009196/0.2023, allocations: 6.232 MB / 0.6714 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.6158/0.818, allocations: 153.7 MB / 0.8215 GB, free: 5.363 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/0.8198, allocations: 39.19 kB / 0.8215 GB, free: 5.348 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0009701/0.8207, allocations: 314.1 kB / 0.8218 GB, free: 5.109 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002446/0.8232, allocations: 0.6602 MB / 0.8224 GB, free: 4.711 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003229/0.8264, allocations: 1.302 MB / 0.8237 GB, free: 4.012 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003162/0.8296, allocations: 2.32 MB / 0.826 GB, free: 2.555 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001297/0.8309, allocations: 0.7454 MB / 0.8267 GB, free: 2.004 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001254/0.8321, allocations: 0.7818 MB / 0.8275 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001015/0.8331, allocations: 0.7921 MB / 0.8283 GB, free: 0.9531 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002382/0.8334, allocations: 186.5 kB / 0.8284 GB, free: 0.9531 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001811/0.8352, allocations: 0.9491 MB / 0.8294 GB, free: 0.5312 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004888/0.8357, allocations: 493.3 kB / 0.8298 GB, free: 156 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009313/0.8366, allocations: 0.8866 MB / 0.8307 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003761/0.8404, allocations: 2.738 MB / 0.8334 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.8404, allocations: 0 / 0.8334 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.314e-06/0.8404, allocations: 2.25 kB / 0.8334 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.939e-05/0.8404, allocations: 0 / 0.8334 GB, free: 13.5 MB / 0.6075 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.004161/0.8446, allocations: 2.213 MB / 0.8355 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.8446, allocations: 12.7 kB / 0.8355 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001913/0.8465, allocations: 371.1 kB / 0.8359 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002124/0.8487, allocations: 1.251 MB / 0.8371 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.425e-05/0.8487, allocations: 100.1 kB / 0.8372 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/0.8489, allocations: 130.3 kB / 0.8373 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002839/0.8517, allocations: 1.521 MB / 0.8388 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.161e-05/0.8518, allocations: 3.938 kB / 0.8388 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001427/0.8519, allocations: 58.47 kB / 0.8389 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/0.8519, allocations: 36.53 kB / 0.8389 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003402/0.8553, allocations: 2.04 MB / 0.8409 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007461/0.8628, allocations: 4.391 MB / 0.8452 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002816/0.8656, allocations: 1.355 MB / 0.8465 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.8667, allocations: 0.4892 MB / 0.847 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001289/0.8668, allocations: 62.95 kB / 0.8471 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001523/0.8683, allocations: 0.796 MB / 0.8478 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=136): time 2.975e-06/0.8683, allocations: 0 / 0.8478 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of matching and sorting (n=136): time 0.006088/0.8744, allocations: 2.119 MB / 0.8499 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002442/0.8746, allocations: 351.2 kB / 0.8502 GB, free: 1.379 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/0.8765, allocations: 1.079 MB / 0.8513 GB, free: 296 kB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001415/0.8766, allocations: 53.7 kB / 0.8513 GB, free: 236 kB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007218/0.8773, allocations: 0.6194 MB / 0.8519 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004752/0.8778, allocations: 471.9 kB / 0.8524 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004863/0.8783, allocations: 286.8 kB / 0.8527 GB, free: 14.86 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002006/0.8785, allocations: 361.9 kB / 0.853 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.8796, allocations: 478.3 kB / 0.8535 GB, free: 14.03 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.881, allocations: 0.6535 MB / 0.8541 GB, free: 13.34 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002415/0.8834, allocations: 1.116 MB / 0.8552 GB, free: 12.19 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.8834, allocations: 0 / 0.8552 GB, free: 12.19 MB / 0.6231 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004153/0.8876, allocations: 1.521 MB / 0.8567 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.8876, allocations: 13.66 kB / 0.8567 GB, free: 10.64 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.8876, allocations: 5.156 kB / 0.8567 GB, free: 10.64 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.8887, allocations: 169.5 kB / 0.8569 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.8899, allocations: 291.6 kB / 0.8571 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004367/0.8942, allocations: 3.283 MB / 0.8603 GB, free: 6.609 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001521/0.8958, allocations: 163.2 kB / 0.8605 GB, free: 6.449 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/0.8959, allocations: 72.12 kB / 0.8606 GB, free: 6.379 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.0008399/0.8968, allocations: 395.6 kB / 0.861 GB, free: 5.984 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003541/0.8971, allocations: 159 kB / 0.8611 GB, free: 5.828 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004747/0.9019, allocations: 1.958 MB / 0.863 GB, free: 3.852 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.905e-05/0.9019, allocations: 19.94 kB / 0.863 GB, free: 3.832 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.9019, allocations: 0 / 0.863 GB, free: 3.832 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.816e-05/0.9019, allocations: 7.969 kB / 0.863 GB, free: 3.824 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001969/0.9039, allocations: 1.472 MB / 0.8645 GB, free: 2.305 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.9039, allocations: 0 / 0.8645 GB, free: 2.305 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.9049, allocations: 275.7 kB / 0.8647 GB, free: 2.035 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008292/0.9058, allocations: 149.5 kB / 0.8649 GB, free: 1.883 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.9059, allocations: 43.97 kB / 0.8649 GB, free: 1.84 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004214/0.9101, allocations: 3.351 MB / 0.8682 GB, free: 14.2 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.9101, allocations: 4.031 kB / 0.8682 GB, free: 14.2 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004029/0.9141, allocations: 1.627 MB / 0.8698 GB, free: 12.54 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007499/0.9149, allocations: 431.5 kB / 0.8702 GB, free: 12.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002132/0.9151, allocations: 31.94 kB / 0.8702 GB, free: 12.07 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009721/0.9161, allocations: 113.3 kB / 0.8703 GB, free: 11.96 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002567/0.9163, allocations: 113.8 kB / 0.8704 GB, free: 11.85 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/0.9164, allocations: 63.95 kB / 0.8705 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001172/0.9176, allocations: 0.7456 MB / 0.8712 GB, free: 11.04 MB / 0.6387 GB Notification: Performance of sort global known variables: time 9e-08/0.9176, allocations: 0 / 0.8712 GB, free: 11.04 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001362/0.919, allocations: 478.9 kB / 0.8717 GB, free: 10.57 MB / 0.6387 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.002011/0.921, allocations: 0.6472 MB / 0.8723 GB, free: 10.1 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003427/0.9244, allocations: 1.468 MB / 0.8738 GB, free: 8.602 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.9244, allocations: 4 kB / 0.8738 GB, free: 8.598 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001807/0.9262, allocations: 0.8989 MB / 0.8746 GB, free: 7.676 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00226/0.9285, allocations: 0.5559 MB / 0.8752 GB, free: 7.164 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007369/0.9359, allocations: 3.133 MB / 0.8782 GB, free: 3.992 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/0.9369, allocations: 1.289 MB / 0.8795 GB, free: 2.672 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006383/0.9375, allocations: 207.3 kB / 0.8797 GB, free: 2.473 MB / 0.6387 GB Notification: Performance of SimCode: time 1.132e-06/0.9375, allocations: 0 / 0.8797 GB, free: 2.473 MB / 0.6387 GB Notification: Performance of Templates: time 0.0537/0.9912, allocations: 37.18 MB / 0.916 GB, free: 13.3 MB / 0.6856 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3.makefile make -j1 -f IDEAS_dev_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-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.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3Functions.cpp:7: /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.BoundaryConditions.WeatherData.Examples.ReaderTMY3CalcHelperMain.o] Error 1