Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.SolarIrradiation.BaseClasses.Examples.SkyBrightness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001036/0.001036, allocations: 105.2 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.001087/0.001087, allocations: 189.5 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.311/1.311, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7671/0.7671, allocations: 132.2 MB / 423.4 MB, free: 6.641 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 64.66 kB / 0.582 GB, free: 23.69 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1479, allocations: 80.2 MB / 0.6603 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.006189/0.1541, allocations: 4.195 MB / 0.6644 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5027/0.6569, allocations: 150.5 MB / 0.8114 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007275/0.6576, allocations: 19.19 kB / 0.8114 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006916/0.6583, allocations: 172.4 kB / 0.8116 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00173/0.6601, allocations: 467 kB / 0.812 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001888/0.662, allocations: 0.8075 MB / 0.8128 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001445/0.6635, allocations: 1.219 MB / 0.814 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001037/0.6645, allocations: 0.6934 MB / 0.8147 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007145/0.6653, allocations: 471.2 kB / 0.8151 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007995/0.6661, allocations: 499.4 kB / 0.8156 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003042/0.6664, allocations: 112.8 kB / 0.8157 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001071/0.6675, allocations: 484 kB / 0.8162 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000363/0.6678, allocations: 294 kB / 0.8164 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006634/0.6685, allocations: 0.5326 MB / 0.817 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002032/0.6706, allocations: 1.589 MB / 0.8185 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.6706, allocations: 0 / 0.8185 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.412e-06/0.6706, allocations: 0 / 0.8185 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.179e-05/0.6706, allocations: 0 / 0.8185 GB, free: 9.914 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.003061/0.6737, allocations: 1.396 MB / 0.8199 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.6737, allocations: 7.469 kB / 0.8199 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001786/0.6755, allocations: 294.9 kB / 0.8202 GB, free: 8.766 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.6769, allocations: 0.7442 MB / 0.8209 GB, free: 8.164 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.723e-05/0.677, allocations: 72.94 kB / 0.821 GB, free: 8.129 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.6771, allocations: 87.69 kB / 0.821 GB, free: 8.102 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001984/0.6791, allocations: 1.014 MB / 0.822 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/0.6791, allocations: 0 / 0.822 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.729e-05/0.6792, allocations: 37.69 kB / 0.8221 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.6793, allocations: 22.94 kB / 0.8221 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002211/0.6815, allocations: 1.224 MB / 0.8233 GB, free: 6.863 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004374/0.6859, allocations: 2.538 MB / 0.8258 GB, free: 4.988 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002377/0.6883, allocations: 0.9384 MB / 0.8267 GB, free: 4.477 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000718/0.689, allocations: 336.5 kB / 0.827 GB, free: 4.316 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.108e-05/0.6891, allocations: 33.7 kB / 0.827 GB, free: 4.305 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009635/0.6901, allocations: 488.4 kB / 0.8275 GB, free: 4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=75): time 2.585e-06/0.6901, allocations: 6.031 kB / 0.8275 GB, free: 3.996 MB / 0.5919 GB Notification: Performance of matching and sorting (n=75): time 0.003566/0.6936, allocations: 1.228 MB / 0.8287 GB, free: 3.352 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.6938, allocations: 196.1 kB / 0.8289 GB, free: 3.125 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007633/0.6945, allocations: 0.6009 MB / 0.8295 GB, free: 2.77 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.1e-05/0.6946, allocations: 38.89 kB / 0.8295 GB, free: 2.73 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003102/0.6949, allocations: 401.8 kB / 0.8299 GB, free: 2.379 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.6951, allocations: 248 kB / 0.8301 GB, free: 2.168 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002468/0.6954, allocations: 156.2 kB / 0.8303 GB, free: 2.074 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001704/0.6956, allocations: 388.1 kB / 0.8307 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006902/0.6963, allocations: 292.5 kB / 0.8309 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007552/0.697, allocations: 376.7 kB / 0.8313 GB, free: 1.359 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.6985, allocations: 0.6556 MB / 0.8319 GB, free: 1.023 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.6985, allocations: 0 / 0.8319 GB, free: 1.023 MB / 0.5919 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002275/0.7008, allocations: 0.8892 MB / 0.8328 GB, free: 0.5742 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.7008, allocations: 7.688 kB / 0.8328 GB, free: 0.5742 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.7008, allocations: 0 / 0.8328 GB, free: 0.5742 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006107/0.7014, allocations: 83.56 kB / 0.8329 GB, free: 0.5312 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007527/0.7022, allocations: 175.8 kB / 0.8331 GB, free: 496 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002168/0.7044, allocations: 1.627 MB / 0.8346 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008049/0.7052, allocations: 103.7 kB / 0.8347 GB, free: 14.82 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-05/0.7053, allocations: 36.09 kB / 0.8348 GB, free: 14.81 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.0004245/0.7057, allocations: 262 kB / 0.835 GB, free: 14.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001963/0.7059, allocations: 76.75 kB / 0.8351 GB, free: 14.56 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002759/0.7087, allocations: 1.101 MB / 0.8362 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.7087, allocations: 9.719 kB / 0.8362 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.7087, allocations: 3.938 kB / 0.8362 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.7087, allocations: 3.984 kB / 0.8362 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003822/0.7126, allocations: 2.038 MB / 0.8382 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.7126, allocations: 3.938 kB / 0.8382 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007144/0.7133, allocations: 172.1 kB / 0.8384 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004539/0.7138, allocations: 74.58 kB / 0.8384 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.42e-05/0.7138, allocations: 19.52 kB / 0.8384 GB, free: 12.53 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001918/0.7158, allocations: 1.659 MB / 0.8401 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.7158, allocations: 0 / 0.8401 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.7181, allocations: 1.025 MB / 0.8411 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003849/0.7185, allocations: 257.8 kB / 0.8413 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000164/0.7187, allocations: 22.47 kB / 0.8413 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007707/0.7195, allocations: 83.72 kB / 0.8414 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.7196, allocations: 58.47 kB / 0.8415 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.185e-05/0.7197, allocations: 32.8 kB / 0.8415 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005587/0.7202, allocations: 439 kB / 0.8419 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7202, allocations: 0 / 0.8419 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008948/0.7211, allocations: 304.7 kB / 0.8422 GB, free: 9.676 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.001409/0.7226, allocations: 0.588 MB / 0.8428 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002105/0.7247, allocations: 0.8742 MB / 0.8436 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.7247, allocations: 0 / 0.8436 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.7259, allocations: 0.5393 MB / 0.8442 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001233/0.7271, allocations: 291.6 kB / 0.8444 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004218/0.7313, allocations: 1.819 MB / 0.8462 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006857/0.732, allocations: 1.019 MB / 0.8472 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003326/0.7324, allocations: 115.4 kB / 0.8473 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of SimCode: time 8.72e-07/0.7324, allocations: 0 / 0.8473 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of Templates: time 0.02619/0.7586, allocations: 18.39 MB / 0.8653 GB, free: 2.625 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.makefile make -j1 -f IDEAS_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/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.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessFunctions.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.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.o] Error 1