Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SkyTemperature.Examples.BlackBody.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.SkyTemperature.Examples.BlackBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SkyTemperature.Examples.BlackBody") translateModel(IDEAS.BoundaryConditions.SkyTemperature.Examples.BlackBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SkyTemperature.Examples.BlackBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001147, allocations: 107.9 kB / 16.41 MB, free: 6.488 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.001138/0.001138, allocations: 183 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.357/1.357, 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/package.mo): time 0.8056/0.8056, allocations: 132.2 MB / 423.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 58.22 kB / 0.582 GB, free: 23.92 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.1599, allocations: 80.21 MB / 0.6603 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SkyTemperature.Examples.BlackBody): time 0.005943/0.1658, allocations: 4.196 MB / 0.6644 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.56/0.7259, allocations: 150.5 MB / 0.8114 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008263/0.7267, allocations: 18.91 kB / 0.8114 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006031/0.7274, allocations: 166.4 kB / 0.8115 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001641/0.729, allocations: 491.8 kB / 0.812 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001916/0.731, allocations: 0.8137 MB / 0.8128 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001253/0.7322, allocations: 1.211 MB / 0.814 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008635/0.7331, allocations: 0.6403 MB / 0.8146 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000641/0.7337, allocations: 448.5 kB / 0.815 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005303/0.7343, allocations: 466 kB / 0.8155 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.7345, allocations: 104.1 kB / 0.8156 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009111/0.7354, allocations: 474.4 kB / 0.816 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002717/0.7357, allocations: 276.1 kB / 0.8163 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004141/0.7361, allocations: 0.5023 MB / 0.8168 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001637/0.7377, allocations: 1.493 MB / 0.8182 GB, free: 9.93 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.7377, allocations: 0 / 0.8182 GB, free: 9.93 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.216e-06/0.7378, allocations: 6.812 kB / 0.8182 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.308e-05/0.7378, allocations: 3.938 kB / 0.8183 GB, free: 9.922 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: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.002136/0.7399, allocations: 1.349 MB / 0.8196 GB, free: 8.973 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.74, allocations: 8.031 kB / 0.8196 GB, free: 8.973 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/0.7412, allocations: 223.3 kB / 0.8198 GB, free: 8.867 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.7423, allocations: 0.735 MB / 0.8205 GB, free: 8.273 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.135e-05/0.7424, allocations: 64.19 kB / 0.8206 GB, free: 8.242 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.7425, allocations: 79.98 kB / 0.8206 GB, free: 8.215 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.7441, allocations: 0.9219 MB / 0.8215 GB, free: 7.605 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.7441, allocations: 2.406 kB / 0.8215 GB, free: 7.605 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-05/0.7442, allocations: 35.75 kB / 0.8216 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.967e-05/0.7442, allocations: 23.12 kB / 0.8216 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/0.746, allocations: 1.109 MB / 0.8227 GB, free: 7.047 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003799/0.7498, allocations: 2.647 MB / 0.8253 GB, free: 4.977 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.7514, allocations: 0.8582 MB / 0.8261 GB, free: 4.496 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004894/0.7519, allocations: 280.5 kB / 0.8264 GB, free: 4.359 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.648e-05/0.752, allocations: 33.97 kB / 0.8264 GB, free: 4.344 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007522/0.7527, allocations: 429.2 kB / 0.8268 GB, free: 4.066 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=74): time 2.495e-06/0.7527, allocations: 0 / 0.8268 GB, free: 4.066 MB / 0.5919 GB Notification: Performance of matching and sorting (n=74): time 0.002955/0.7557, allocations: 1.089 MB / 0.8279 GB, free: 3.469 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.439e-05/0.7558, allocations: 190.2 kB / 0.8281 GB, free: 3.25 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007262/0.7565, allocations: 0.5878 MB / 0.8286 GB, free: 2.902 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.622e-05/0.7566, allocations: 43.2 kB / 0.8287 GB, free: 2.859 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002918/0.7569, allocations: 393.4 kB / 0.8291 GB, free: 2.512 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.7571, allocations: 248.5 kB / 0.8293 GB, free: 2.305 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00022/0.7573, allocations: 157.6 kB / 0.8294 GB, free: 2.207 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001673/0.7575, allocations: 387.6 kB / 0.8298 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004583/0.758, allocations: 241.7 kB / 0.83 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005671/0.7586, allocations: 348.2 kB / 0.8304 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.7596, allocations: 0.5895 MB / 0.831 GB, free: 1.16 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.7596, allocations: 3.656 kB / 0.831 GB, free: 1.16 MB / 0.5919 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001823/0.7614, allocations: 0.7956 MB / 0.8317 GB, free: 0.7578 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.7615, allocations: 5.812 kB / 0.8317 GB, free: 0.7578 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.7615, allocations: 2.438 kB / 0.8317 GB, free: 0.7578 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005991/0.7621, allocations: 90.28 kB / 0.8318 GB, free: 0.7109 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006247/0.7627, allocations: 156.8 kB / 0.832 GB, free: 0.6719 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002215/0.765, allocations: 1.63 MB / 0.8336 GB, free: 15.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006975/0.7657, allocations: 87.7 kB / 0.8336 GB, free: 15.01 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.953e-05/0.7658, allocations: 38.72 kB / 0.8337 GB, free: 15 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (88): * Single equations (assignments): 87 * 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.0004704/0.7662, allocations: 259.6 kB / 0.8339 GB, free: 14.79 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.7664, allocations: 76.59 kB / 0.834 GB, free: 14.75 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002261/0.7687, allocations: 0.9824 MB / 0.835 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.168e-06/0.7687, allocations: 6.844 kB / 0.835 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.7687, allocations: 2.531 kB / 0.835 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.7688, allocations: 7.922 kB / 0.835 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003442/0.7722, allocations: 1.931 MB / 0.8369 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.7722, allocations: 0 / 0.8369 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005609/0.7728, allocations: 142.5 kB / 0.837 GB, free: 12.85 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004437/0.7733, allocations: 70.47 kB / 0.8371 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.176e-05/0.7733, allocations: 27.8 kB / 0.8371 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002228/0.7756, allocations: 1.649 MB / 0.8387 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/0.7756, allocations: 7.922 kB / 0.8387 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002031/0.7776, allocations: 0.9172 MB / 0.8396 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004182/0.7781, allocations: 252.4 kB / 0.8399 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.7782, allocations: 21.39 kB / 0.8399 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006421/0.7789, allocations: 49.78 kB / 0.8399 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.779, allocations: 63.16 kB / 0.84 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.016e-05/0.7791, allocations: 31.77 kB / 0.84 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006355/0.7798, allocations: 434.3 kB / 0.8404 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7798, allocations: 0 / 0.8404 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009788/0.7808, allocations: 304.2 kB / 0.8407 GB, free: 10.01 MB / 0.6075 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 (86): * Single equations (assignments): 83 * 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.001465/0.7822, allocations: 0.5863 MB / 0.8413 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001783/0.784, allocations: 0.7668 MB / 0.842 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.784, allocations: 3.031 kB / 0.842 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000881/0.7849, allocations: 0.4933 MB / 0.8425 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/0.7864, allocations: 304 kB / 0.8428 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004184/0.7906, allocations: 1.707 MB / 0.8445 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007358/0.7913, allocations: 1.003 MB / 0.8455 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003363/0.7917, allocations: 111.4 kB / 0.8456 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of SimCode: time 4.51e-07/0.7917, allocations: 0 / 0.8456 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of Templates: time 0.02683/0.8185, allocations: 17.45 MB / 0.8626 GB, free: 5.184 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SkyTemperature.Examples.BlackBody.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SkyTemperature.Examples.BlackBody.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.SkyTemperature.Examples.BlackBodyCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SkyTemperature.Examples.BlackBodyCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SkyTemperature.Examples.BlackBodyCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SkyTemperature.Examples.BlackBodyFunctions.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.SkyTemperature.Examples.BlackBodyCalcHelperMain.o] Error 1