Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.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.SolarIrradiation.BaseClasses.Examples.SkyBrightness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 105.7 kB / 16.41 MB, free: 6.504 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.001238/0.001238, allocations: 187 kB / 17.34 MB, free: 5.742 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.367/1.367, 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-master/package.mo): time 0.8436/0.8436, allocations: 135.1 MB / 426.3 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002326/0.002327, allocations: 66.77 kB / 0.5863 GB, free: 21.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1791, allocations: 80.92 MB / 0.6653 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.006257/0.1854, allocations: 4.196 MB / 0.6694 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5587/0.7441, allocations: 150.5 MB / 0.8164 GB, free: 8.434 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008485/0.745, allocations: 18.88 kB / 0.8164 GB, free: 8.426 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005802/0.7456, allocations: 170 kB / 0.8165 GB, free: 8.336 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001618/0.7473, allocations: 472.4 kB / 0.817 GB, free: 8.145 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002009/0.7493, allocations: 0.8065 MB / 0.8178 GB, free: 7.871 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001497/0.7508, allocations: 1.216 MB / 0.819 GB, free: 7.539 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/0.7519, allocations: 0.6995 MB / 0.8196 GB, free: 7.309 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007804/0.7527, allocations: 468.9 kB / 0.8201 GB, free: 7.16 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008182/0.7535, allocations: 494.3 kB / 0.8206 GB, free: 6.938 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003229/0.7539, allocations: 112.4 kB / 0.8207 GB, free: 6.938 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001118/0.755, allocations: 488.9 kB / 0.8211 GB, free: 6.848 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002711/0.7553, allocations: 290.1 kB / 0.8214 GB, free: 6.703 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005794/0.7559, allocations: 0.5365 MB / 0.8219 GB, free: 6.289 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001969/0.7578, allocations: 1.583 MB / 0.8235 GB, free: 5.141 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.7579, allocations: 0 / 0.8235 GB, free: 5.141 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.854e-06/0.7579, allocations: 0 / 0.8235 GB, free: 5.141 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.51e-05/0.7579, allocations: 0 / 0.8235 GB, free: 5.141 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: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.002419/0.7603, allocations: 1.401 MB / 0.8249 GB, free: 4.031 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.7604, allocations: 8.516 kB / 0.8249 GB, free: 4.031 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.7621, allocations: 292.8 kB / 0.8251 GB, free: 3.906 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001266/0.7633, allocations: 0.7533 MB / 0.8259 GB, free: 3.289 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.303e-05/0.7634, allocations: 68.03 kB / 0.8259 GB, free: 3.258 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.7635, allocations: 89.52 kB / 0.826 GB, free: 3.227 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001779/0.7653, allocations: 1.011 MB / 0.827 GB, free: 2.598 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.7653, allocations: 0 / 0.827 GB, free: 2.598 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.506e-05/0.7654, allocations: 42.38 kB / 0.8271 GB, free: 2.566 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/0.7655, allocations: 20.44 kB / 0.8271 GB, free: 2.566 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.7675, allocations: 1.22 MB / 0.8283 GB, free: 1.992 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004084/0.7716, allocations: 2.525 MB / 0.8307 GB, free: 108 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002366/0.774, allocations: 0.9419 MB / 0.8316 GB, free: 15.58 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006971/0.7747, allocations: 336.7 kB / 0.832 GB, free: 15.42 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 7.698e-05/0.7748, allocations: 32.17 kB / 0.832 GB, free: 15.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009792/0.7758, allocations: 494.6 kB / 0.8325 GB, free: 15.1 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=75): time 2.224e-06/0.7758, allocations: 0 / 0.8325 GB, free: 15.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=75): time 0.003548/0.7794, allocations: 1.228 MB / 0.8337 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.7795, allocations: 192.3 kB / 0.8339 GB, free: 14.23 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007813/0.7803, allocations: 0.597 MB / 0.8344 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.57e-05/0.7804, allocations: 42.83 kB / 0.8345 GB, free: 13.83 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/0.7807, allocations: 416.2 kB / 0.8349 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.781, allocations: 244.8 kB / 0.8351 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002395/0.7812, allocations: 157.1 kB / 0.8353 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001655/0.7814, allocations: 384.1 kB / 0.8356 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000684/0.7821, allocations: 288.8 kB / 0.8359 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007727/0.7828, allocations: 384.3 kB / 0.8363 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.7843, allocations: 0.6526 MB / 0.8369 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.7843, allocations: 0.6875 kB / 0.8369 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00225/0.7866, allocations: 0.8788 MB / 0.8378 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.7866, allocations: 4.438 kB / 0.8378 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.7866, allocations: 3 kB / 0.8378 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006186/0.7872, allocations: 87.11 kB / 0.8379 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000764/0.788, allocations: 173.7 kB / 0.838 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002134/0.7902, allocations: 1.641 MB / 0.8396 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008446/0.791, allocations: 101.4 kB / 0.8397 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.841e-05/0.7911, allocations: 34.23 kB / 0.8398 GB, free: 9.895 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (86): * Single equations (assignments): 85 * 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.0004899/0.7916, allocations: 267 kB / 0.84 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/0.7918, allocations: 77.31 kB / 0.8401 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0026/0.7944, allocations: 1.095 MB / 0.8411 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.7944, allocations: 10.12 kB / 0.8412 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.7944, allocations: 3.938 kB / 0.8412 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.7944, allocations: 3.984 kB / 0.8412 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003618/0.7981, allocations: 2.037 MB / 0.8432 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.7981, allocations: 0 / 0.8432 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007078/0.7988, allocations: 169.6 kB / 0.8433 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000462/0.7993, allocations: 78.14 kB / 0.8434 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/0.7993, allocations: 26.33 kB / 0.8434 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001912/0.8013, allocations: 1.657 MB / 0.845 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.8013, allocations: 0 / 0.845 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002329/0.8036, allocations: 1.024 MB / 0.846 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003925/0.804, allocations: 259.7 kB / 0.8463 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.8041, allocations: 19.94 kB / 0.8463 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006972/0.8048, allocations: 75.92 kB / 0.8464 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.805, allocations: 56.92 kB / 0.8464 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.58e-05/0.8051, allocations: 35.97 kB / 0.8465 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005672/0.8056, allocations: 439 kB / 0.8469 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8056, allocations: 0 / 0.8469 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009178/0.8066, allocations: 303.2 kB / 0.8472 GB, free: 4.109 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 (88): * Single equations (assignments): 85 * 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.001374/0.8079, allocations: 0.5924 MB / 0.8478 GB, free: 3.699 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002026/0.81, allocations: 0.8714 MB / 0.8486 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.81, allocations: 0 / 0.8486 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.8111, allocations: 0.5431 MB / 0.8491 GB, free: 2.262 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.8122, allocations: 292.5 kB / 0.8494 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003953/0.8162, allocations: 1.808 MB / 0.8512 GB, free: 152 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005893/0.8168, allocations: 1.023 MB / 0.8522 GB, free: 15.1 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003324/0.8172, allocations: 119.4 kB / 0.8523 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of SimCode: time 5.71e-07/0.8172, allocations: 0 / 0.8523 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of Templates: time 0.02862/0.8458, allocations: 18.39 MB / 0.8702 GB, free: 12.61 MB / 0.6387 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.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.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessFunctions.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.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.o] Error 1