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.001382/0.001382, allocations: 110.1 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.001455/0.001454, allocations: 185.5 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.346/1.346, 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.808/0.808, allocations: 135.1 MB / 426.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 70.58 kB / 0.5862 GB, free: 21.71 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.1848, allocations: 80.92 MB / 0.6653 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.WeatherData.Examples.ReaderTMY3): time 0.009081/0.194, allocations: 6.226 MB / 0.6713 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.6429/0.8369, allocations: 153.2 MB / 0.821 GB, free: 5.715 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001874/0.8389, allocations: 35.56 kB / 0.821 GB, free: 5.703 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.000965/0.8398, allocations: 323.9 kB / 0.8213 GB, free: 5.457 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002592/0.8425, allocations: 0.6573 MB / 0.822 GB, free: 5.066 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003328/0.8458, allocations: 1.299 MB / 0.8232 GB, free: 4.379 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003157/0.849, allocations: 2.323 MB / 0.8255 GB, free: 2.93 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001527/0.8506, allocations: 1.069 MB / 0.8265 GB, free: 2.262 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001264/0.8518, allocations: 0.7828 MB / 0.8273 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008759/0.8527, allocations: 0.7887 MB / 0.8281 GB, free: 1.215 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002311/0.8529, allocations: 185.7 kB / 0.8283 GB, free: 1.215 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001736/0.8547, allocations: 0.949 MB / 0.8292 GB, free: 0.793 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004588/0.8552, allocations: 496.8 kB / 0.8297 GB, free: 420 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009551/0.8561, allocations: 0.8933 MB / 0.8305 GB, free: 15.73 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003938/0.8601, allocations: 2.712 MB / 0.8332 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.8601, allocations: 7.234 kB / 0.8332 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.874e-06/0.8601, allocations: 0 / 0.8332 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.331e-05/0.8601, allocations: 0 / 0.8332 GB, free: 13.78 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.004117/0.8643, allocations: 2.147 MB / 0.8353 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.8643, allocations: 7.953 kB / 0.8353 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002033/0.8664, allocations: 366.3 kB / 0.8356 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001991/0.8684, allocations: 1.234 MB / 0.8368 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.243e-05/0.8685, allocations: 103.7 kB / 0.8369 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/0.8686, allocations: 125.2 kB / 0.8371 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002786/0.8714, allocations: 1.527 MB / 0.8385 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.84e-05/0.8715, allocations: 0 / 0.8385 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001417/0.8716, allocations: 59.25 kB / 0.8386 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.8717, allocations: 32.5 kB / 0.8386 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003222/0.8749, allocations: 2.051 MB / 0.8406 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007334/0.8822, allocations: 4.387 MB / 0.8449 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002765/0.885, allocations: 1.437 MB / 0.8463 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.8861, allocations: 0.5348 MB / 0.8468 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001162/0.8862, allocations: 60.53 kB / 0.8469 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001461/0.8877, allocations: 0.7925 MB / 0.8477 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=136): time 3.056e-06/0.8877, allocations: 0 / 0.8477 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of matching and sorting (n=136): time 0.005934/0.8936, allocations: 2.109 MB / 0.8497 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001714/0.8938, allocations: 351.3 kB / 0.8501 GB, free: 1.438 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/0.8954, allocations: 1.075 MB / 0.8511 GB, free: 360 kB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001298/0.8956, allocations: 53.7 kB / 0.8512 GB, free: 300 kB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000561/0.8961, allocations: 0.6068 MB / 0.8518 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004041/0.8965, allocations: 453.3 kB / 0.8522 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004096/0.897, allocations: 282.7 kB / 0.8525 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.8971, allocations: 365.9 kB / 0.8528 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/0.8982, allocations: 474.3 kB / 0.8533 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.8994, allocations: 0.6574 MB / 0.8539 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002148/0.9015, allocations: 1.116 MB / 0.855 GB, free: 12.28 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.9016, allocations: 0 / 0.855 GB, free: 12.28 MB / 0.6231 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003983/0.9056, allocations: 1.52 MB / 0.8565 GB, free: 10.74 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.9056, allocations: 9.812 kB / 0.8565 GB, free: 10.73 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.9056, allocations: 4.281 kB / 0.8565 GB, free: 10.73 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/0.9068, allocations: 169.5 kB / 0.8567 GB, free: 10.56 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.908, allocations: 295.5 kB / 0.8569 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004378/0.9124, allocations: 3.296 MB / 0.8602 GB, free: 6.684 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.9141, allocations: 150.9 kB / 0.8603 GB, free: 6.535 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002568/0.9144, allocations: 73.06 kB / 0.8604 GB, free: 6.465 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.001099/0.9155, allocations: 379.8 kB / 0.8607 GB, free: 6.082 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005269/0.916, allocations: 154.2 kB / 0.8609 GB, free: 5.93 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005042/0.9211, allocations: 1.958 MB / 0.8628 GB, free: 3.957 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.489e-05/0.9211, allocations: 23.94 kB / 0.8628 GB, free: 3.934 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.9211, allocations: 4 kB / 0.8628 GB, free: 3.93 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.817e-05/0.9211, allocations: 7.969 kB / 0.8628 GB, free: 3.922 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002482/0.9236, allocations: 1.459 MB / 0.8643 GB, free: 2.414 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-05/0.9237, allocations: 4 kB / 0.8643 GB, free: 2.41 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/0.9248, allocations: 279.6 kB / 0.8645 GB, free: 2.137 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008835/0.9257, allocations: 141.6 kB / 0.8647 GB, free: 1.992 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001316/0.9259, allocations: 43.97 kB / 0.8647 GB, free: 1.949 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00409/0.93, allocations: 3.354 MB / 0.868 GB, free: 14.31 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.93, allocations: 3.938 kB / 0.868 GB, free: 14.3 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004322/0.9343, allocations: 1.619 MB / 0.8696 GB, free: 12.66 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009034/0.9352, allocations: 426.7 kB / 0.87 GB, free: 12.22 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003887/0.9356, allocations: 35.98 kB / 0.87 GB, free: 12.18 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.9369, allocations: 108.6 kB / 0.8701 GB, free: 12.08 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/0.9371, allocations: 121.8 kB / 0.8702 GB, free: 11.96 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/0.9372, allocations: 63.91 kB / 0.8703 GB, free: 11.9 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001277/0.9385, allocations: 0.7417 MB / 0.871 GB, free: 11.15 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9385, allocations: 0 / 0.871 GB, free: 11.15 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001466/0.94, allocations: 478.9 kB / 0.8715 GB, free: 10.68 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.001608/0.9416, allocations: 0.6339 MB / 0.8721 GB, free: 10.22 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0034/0.945, allocations: 1.515 MB / 0.8736 GB, free: 8.68 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.9451, allocations: 8 kB / 0.8736 GB, free: 8.672 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001839/0.9469, allocations: 0.9498 MB / 0.8745 GB, free: 7.699 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/0.9494, allocations: 0.5536 MB / 0.875 GB, free: 7.188 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007445/0.9568, allocations: 3.093 MB / 0.8781 GB, free: 4.055 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.9579, allocations: 1.285 MB / 0.8793 GB, free: 2.738 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005623/0.9585, allocations: 199.3 kB / 0.8795 GB, free: 2.547 MB / 0.6387 GB Notification: Performance of SimCode: time 8.72e-07/0.9585, allocations: 0 / 0.8795 GB, free: 2.547 MB / 0.6387 GB Notification: Performance of Templates: time 0.05087/1.009, allocations: 37.13 MB / 0.9158 GB, free: 13.43 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