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.001538/0.001538, allocations: 110.7 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.001603/0.001603, allocations: 187 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8078/0.8078, allocations: 132.2 MB / 423.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 66.52 kB / 0.582 GB, free: 23.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1803, allocations: 80.21 MB / 0.6603 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.005912/0.1863, allocations: 4.191 MB / 0.6644 GB, free: 6.047 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.665/0.8513, allocations: 150.5 MB / 0.8114 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.8524, allocations: 21.81 kB / 0.8114 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006234/0.853, allocations: 170.7 kB / 0.8116 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001713/0.8548, allocations: 478.7 kB / 0.812 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002074/0.8569, allocations: 0.813 MB / 0.8128 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001459/0.8584, allocations: 1.211 MB / 0.814 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000971/0.8593, allocations: 0.7018 MB / 0.8147 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006978/0.86, allocations: 465.9 kB / 0.8151 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005633/0.8606, allocations: 492.5 kB / 0.8156 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001644/0.8608, allocations: 113.7 kB / 0.8157 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009535/0.8617, allocations: 485.6 kB / 0.8162 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002805/0.862, allocations: 300.9 kB / 0.8165 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004399/0.8625, allocations: 0.5295 MB / 0.817 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001753/0.8643, allocations: 1.587 MB / 0.8185 GB, free: 9.883 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.8643, allocations: 0 / 0.8185 GB, free: 9.883 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.923e-06/0.8643, allocations: 0 / 0.8185 GB, free: 9.883 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.321e-05/0.8643, allocations: 0 / 0.8185 GB, free: 9.883 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.002368/0.8667, allocations: 1.389 MB / 0.8199 GB, free: 8.855 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.8667, allocations: 7.562 kB / 0.8199 GB, free: 8.855 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001641/0.8684, allocations: 296.5 kB / 0.8202 GB, free: 8.727 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.8696, allocations: 0.7523 MB / 0.8209 GB, free: 8.121 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.669e-05/0.8696, allocations: 73.38 kB / 0.821 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.8698, allocations: 89.45 kB / 0.8211 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001909/0.8717, allocations: 1.006 MB / 0.822 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.8717, allocations: 0 / 0.822 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.252e-05/0.8718, allocations: 45.56 kB / 0.8221 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.105e-05/0.8718, allocations: 22.31 kB / 0.8221 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002182/0.874, allocations: 1.216 MB / 0.8233 GB, free: 6.824 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004334/0.8784, allocations: 2.538 MB / 0.8258 GB, free: 4.949 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002395/0.8808, allocations: 0.9428 MB / 0.8267 GB, free: 4.43 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007199/0.8815, allocations: 339.4 kB / 0.827 GB, free: 4.27 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 8.332e-05/0.8816, allocations: 35.8 kB / 0.8271 GB, free: 4.258 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00101/0.8826, allocations: 492.7 kB / 0.8275 GB, free: 3.949 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=75): time 2.645e-06/0.8826, allocations: 0 / 0.8275 GB, free: 3.949 MB / 0.5919 GB Notification: Performance of matching and sorting (n=75): time 0.003614/0.8863, allocations: 1.231 MB / 0.8287 GB, free: 3.305 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.8864, allocations: 188 kB / 0.8289 GB, free: 3.082 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008281/0.8872, allocations: 0.6006 MB / 0.8295 GB, free: 2.727 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.812e-05/0.8873, allocations: 43.36 kB / 0.8295 GB, free: 2.684 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003589/0.8877, allocations: 402.1 kB / 0.8299 GB, free: 2.332 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002245/0.8879, allocations: 244 kB / 0.8301 GB, free: 2.125 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002343/0.8882, allocations: 160.6 kB / 0.8303 GB, free: 2.027 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001761/0.8883, allocations: 384 kB / 0.8307 GB, free: 1.66 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006987/0.889, allocations: 292.5 kB / 0.8309 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008055/0.8899, allocations: 380.8 kB / 0.8313 GB, free: 1.312 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.8913, allocations: 0.6563 MB / 0.8319 GB, free: 0.9766 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.8914, allocations: 0 / 0.8319 GB, free: 0.9766 MB / 0.5919 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002359/0.8937, allocations: 0.8833 MB / 0.8328 GB, free: 0.5312 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.8938, allocations: 7.438 kB / 0.8328 GB, free: 0.5312 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.8938, allocations: 6.859 kB / 0.8328 GB, free: 0.5312 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005912/0.8944, allocations: 79.53 kB / 0.8329 GB, free: 0.4922 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007664/0.8952, allocations: 183.9 kB / 0.8331 GB, free: 448 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002132/0.8973, allocations: 1.627 MB / 0.8347 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008759/0.8982, allocations: 100.2 kB / 0.8348 GB, free: 14.79 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.994e-05/0.8983, allocations: 32.19 kB / 0.8348 GB, free: 14.77 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.00054/0.8988, allocations: 270.2 kB / 0.835 GB, free: 14.56 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.899, allocations: 80.66 kB / 0.8351 GB, free: 14.52 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002724/0.9017, allocations: 1.098 MB / 0.8362 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.9017, allocations: 9.438 kB / 0.8362 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.9018, allocations: 3.938 kB / 0.8362 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.9018, allocations: 3.984 kB / 0.8362 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003821/0.9056, allocations: 2.042 MB / 0.8382 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.9056, allocations: 3.938 kB / 0.8382 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007089/0.9063, allocations: 168 kB / 0.8384 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004398/0.9068, allocations: 72.03 kB / 0.8384 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.621e-05/0.9069, allocations: 25.36 kB / 0.8385 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001899/0.9088, allocations: 1.65 MB / 0.8401 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.9088, allocations: 0 / 0.8401 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002401/0.9112, allocations: 1.025 MB / 0.8411 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004209/0.9116, allocations: 254.7 kB / 0.8413 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.9117, allocations: 23.34 kB / 0.8413 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007002/0.9125, allocations: 77.55 kB / 0.8414 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.9126, allocations: 62.94 kB / 0.8415 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.659e-05/0.9127, allocations: 27.7 kB / 0.8415 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005827/0.9133, allocations: 443.3 kB / 0.8419 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9133, allocations: 0 / 0.8419 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009465/0.9142, allocations: 308.6 kB / 0.8422 GB, free: 9.633 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.00148/0.9157, allocations: 0.5913 MB / 0.8428 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002166/0.9179, allocations: 0.8712 MB / 0.8436 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.9179, allocations: 3.938 kB / 0.8437 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.919, allocations: 0.5432 MB / 0.8442 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.9203, allocations: 283.2 kB / 0.8445 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004279/0.9246, allocations: 1.825 MB / 0.8462 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006317/0.9252, allocations: 1.019 MB / 0.8472 GB, free: 5.043 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/0.9256, allocations: 111.4 kB / 0.8473 GB, free: 4.934 MB / 0.6075 GB Notification: Performance of SimCode: time 1.092e-06/0.9256, allocations: 4 kB / 0.8473 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of Templates: time 0.02506/0.9506, allocations: 18.24 MB / 0.8652 GB, free: 2.723 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