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.001249/0.001249, allocations: 104.9 kB / 16.27 MB, free: 6.414 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: 189.8 kB / 17.2 MB, free: 5.953 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.374/1.374, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8423/0.8423, allocations: 135.2 MB / 426.2 MB, free: 4.168 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002347/0.002347, allocations: 67.89 kB / 0.506 GB, free: 8.383 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3401, allocations: 80.91 MB / 0.585 GB, free: 25.14 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.006282/0.3464, allocations: 6.231 MB / 0.5911 GB, free: 20.23 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1739/0.5203, allocations: 153.2 MB / 0.7407 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.5216, allocations: 31.88 kB / 0.7408 GB, free: 10.56 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008488/0.5225, allocations: 313 kB / 0.7411 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002105/0.5246, allocations: 0.6508 MB / 0.7417 GB, free: 9.602 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002801/0.5274, allocations: 1.289 MB / 0.743 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002523/0.53, allocations: 2.309 MB / 0.7452 GB, free: 6.004 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00154/0.5315, allocations: 1.068 MB / 0.7463 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.5326, allocations: 0.7708 MB / 0.747 GB, free: 4.129 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00117/0.5338, allocations: 0.7894 MB / 0.7478 GB, free: 3.336 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002861/0.534, allocations: 188 kB / 0.748 GB, free: 3.152 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001669/0.5357, allocations: 0.9208 MB / 0.7489 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004755/0.5362, allocations: 490.4 kB / 0.7493 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008577/0.5371, allocations: 0.8976 MB / 0.7502 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.2599/0.797, allocations: 2.632 MB / 0.7528 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.7971, allocations: 0 / 0.7528 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.072e-06/0.7971, allocations: 1.25 kB / 0.7528 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.134e-05/0.7971, allocations: 0 / 0.7528 GB, free: 7.684 MB / 0.5762 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.003269/0.8004, allocations: 2.153 MB / 0.7549 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.8004, allocations: 11.64 kB / 0.7549 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001844/0.8023, allocations: 359.1 kB / 0.7552 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001448/0.8037, allocations: 1.197 MB / 0.7564 GB, free: 6.141 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.086e-05/0.8038, allocations: 101.3 kB / 0.7565 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.804, allocations: 129.8 kB / 0.7566 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002497/0.8065, allocations: 1.52 MB / 0.7581 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/0.8065, allocations: 0.6562 kB / 0.7581 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001461/0.8067, allocations: 62.34 kB / 0.7582 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.81e-05/0.8067, allocations: 38.62 kB / 0.7582 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003653/0.8104, allocations: 2.039 MB / 0.7602 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00624/0.8166, allocations: 4.449 MB / 0.7646 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002675/0.8193, allocations: 1.428 MB / 0.7659 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008905/0.8202, allocations: 0.5382 MB / 0.7665 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.8203, allocations: 56.48 kB / 0.7665 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001355/0.8217, allocations: 0.7933 MB / 0.7673 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=136): time 3.116e-06/0.8217, allocations: 0 / 0.7673 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of matching and sorting (n=136): time 0.005654/0.8274, allocations: 2.11 MB / 0.7694 GB, free: 3.973 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.687e-05/0.8275, allocations: 355.1 kB / 0.7697 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.8286, allocations: 1.076 MB / 0.7707 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.545e-05/0.8287, allocations: 49.48 kB / 0.7708 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003474/0.8291, allocations: 0.6077 MB / 0.7714 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002441/0.8293, allocations: 455.3 kB / 0.7718 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003531/0.8297, allocations: 287.2 kB / 0.7721 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.8298, allocations: 353 kB / 0.7724 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000909/0.8307, allocations: 478.9 kB / 0.7729 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.8317, allocations: 0.6538 MB / 0.7735 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/0.8336, allocations: 1.115 MB / 0.7746 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.8337, allocations: 3.938 kB / 0.7746 GB, free: 2.301 MB / 0.5762 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003416/0.8371, allocations: 1.514 MB / 0.7761 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.8371, allocations: 7.656 kB / 0.7761 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/0.8371, allocations: 4.281 kB / 0.7761 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.8382, allocations: 173.7 kB / 0.7763 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/0.8393, allocations: 294.4 kB / 0.7766 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003509/0.8428, allocations: 3.287 MB / 0.7798 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.8441, allocations: 165.9 kB / 0.7799 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.8442, allocations: 66.56 kB / 0.78 GB, free: 15.32 MB / 0.5919 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.0006797/0.8449, allocations: 391.5 kB / 0.7804 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002637/0.8452, allocations: 144.2 kB / 0.7805 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004351/0.8496, allocations: 1.969 MB / 0.7824 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.8496, allocations: 20.36 kB / 0.7824 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.8496, allocations: 1.031 kB / 0.7824 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-05/0.8496, allocations: 12.42 kB / 0.7825 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.8512, allocations: 1.461 MB / 0.7839 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.8512, allocations: 0.9375 kB / 0.7839 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.8522, allocations: 279.1 kB / 0.7842 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008488/0.8531, allocations: 142.4 kB / 0.7843 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-05/0.8532, allocations: 45.88 kB / 0.7843 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004024/0.8572, allocations: 3.354 MB / 0.7876 GB, free: 11.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.8573, allocations: 6.406 kB / 0.7876 GB, free: 11.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003664/0.8609, allocations: 1.621 MB / 0.7892 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007599/0.8617, allocations: 428.1 kB / 0.7896 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003111/0.862, allocations: 37.06 kB / 0.7896 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.8632, allocations: 110.6 kB / 0.7897 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.8634, allocations: 115.7 kB / 0.7899 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.8635, allocations: 63.7 kB / 0.7899 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001085/0.8646, allocations: 0.7408 MB / 0.7906 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9.22e-07/0.8646, allocations: 1.031 kB / 0.7906 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001392/0.866, allocations: 482.7 kB / 0.7911 GB, free: 11.29 MB / 0.5919 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.00209/0.8681, allocations: 0.6383 MB / 0.7917 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.004097/0.8722, allocations: 1.875 MB / 0.7936 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.8722, allocations: 0 / 0.7936 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001663/0.8739, allocations: 0.9523 MB / 0.7945 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002134/0.8761, allocations: 0.5574 MB / 0.795 GB, free: 10.56 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00693/0.883, allocations: 3.124 MB / 0.7981 GB, free: 9.543 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009426/0.884, allocations: 1.282 MB / 0.7993 GB, free: 8.824 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005385/0.8845, allocations: 206.8 kB / 0.7995 GB, free: 8.816 MB / 0.5919 GB Notification: Performance of SimCode: time 4.11e-07/0.8845, allocations: 1.203 kB / 0.7995 GB, free: 8.816 MB / 0.5919 GB Notification: Performance of Templates: time 0.04912/0.9336, allocations: 36.95 MB / 0.8356 GB, free: 12.77 MB / 0.6231 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