Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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.SkyClearness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 105.8 kB / 16.41 MB, free: 6.438 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.001352/0.001352, allocations: 189.5 kB / 17.34 MB, free: 5.707 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.413/1.413, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7624/0.7624, allocations: 132.2 MB / 423.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 68.98 kB / 0.582 GB, free: 23.74 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1489, allocations: 80.2 MB / 0.6603 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.00603/0.1549, allocations: 4.186 MB / 0.6644 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5772/0.7322, allocations: 150.5 MB / 0.8114 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008935/0.7331, allocations: 20.88 kB / 0.8114 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0008462/0.734, allocations: 169.9 kB / 0.8116 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002105/0.7361, allocations: 482.1 kB / 0.8121 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002188/0.7383, allocations: 0.8106 MB / 0.8129 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001607/0.74, allocations: 1.212 MB / 0.814 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00111/0.7411, allocations: 0.6738 MB / 0.8147 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008332/0.7419, allocations: 471.4 kB / 0.8151 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008242/0.7428, allocations: 482.5 kB / 0.8156 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003434/0.7431, allocations: 116.5 kB / 0.8157 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001276/0.7444, allocations: 0.4937 MB / 0.8162 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003841/0.7448, allocations: 290 kB / 0.8165 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007674/0.7456, allocations: 0.5271 MB / 0.817 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002185/0.7478, allocations: 1.589 MB / 0.8185 GB, free: 9.859 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.7478, allocations: 0 / 0.8185 GB, free: 9.859 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.753e-06/0.7478, allocations: 0 / 0.8185 GB, free: 9.859 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.314e-05/0.7479, allocations: 4 kB / 0.8185 GB, free: 9.855 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.003023/0.7509, allocations: 1.391 MB / 0.8199 GB, free: 8.887 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.7509, allocations: 8.312 kB / 0.8199 GB, free: 8.887 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.7521, allocations: 210.3 kB / 0.8201 GB, free: 8.789 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.7534, allocations: 0.753 MB / 0.8208 GB, free: 8.184 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.432e-05/0.7535, allocations: 64.19 kB / 0.8209 GB, free: 8.152 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.7536, allocations: 85.66 kB / 0.821 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/0.7554, allocations: 0.9523 MB / 0.8219 GB, free: 7.52 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.7554, allocations: 0 / 0.8219 GB, free: 7.52 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.7555, allocations: 46.31 kB / 0.822 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.7556, allocations: 20.47 kB / 0.822 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.7575, allocations: 1.128 MB / 0.8231 GB, free: 6.945 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004338/0.7619, allocations: 2.512 MB / 0.8255 GB, free: 5.047 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.7634, allocations: 0.8198 MB / 0.8263 GB, free: 4.586 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005387/0.764, allocations: 289.1 kB / 0.8266 GB, free: 4.449 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006366/0.7646, allocations: 476.3 kB / 0.8271 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008038/0.7654, allocations: 440.9 kB / 0.8275 GB, free: 3.656 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=73): time 4.919e-06/0.7654, allocations: 4 kB / 0.8275 GB, free: 3.652 MB / 0.5919 GB Notification: Performance of matching and sorting (n=73): time 0.002959/0.7684, allocations: 1.097 MB / 0.8286 GB, free: 3.055 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.7685, allocations: 187.9 kB / 0.8287 GB, free: 2.832 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008256/0.7694, allocations: 0.5996 MB / 0.8293 GB, free: 2.48 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.514e-05/0.7695, allocations: 40.11 kB / 0.8294 GB, free: 2.438 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003409/0.7698, allocations: 402.5 kB / 0.8298 GB, free: 2.086 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000205/0.77, allocations: 243.8 kB / 0.83 GB, free: 1.879 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002394/0.7703, allocations: 149.3 kB / 0.8301 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001824/0.7705, allocations: 388.5 kB / 0.8305 GB, free: 1.418 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005142/0.771, allocations: 249.1 kB / 0.8307 GB, free: 1.297 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006087/0.7716, allocations: 332.3 kB / 0.8311 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.7727, allocations: 0.5686 MB / 0.8316 GB, free: 0.8008 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.7727, allocations: 0 / 0.8316 GB, free: 0.8008 MB / 0.5919 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001833/0.7745, allocations: 0.7955 MB / 0.8324 GB, free: 396 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.7745, allocations: 7.531 kB / 0.8324 GB, free: 396 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.7746, allocations: 0 / 0.8324 GB, free: 396 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005822/0.7751, allocations: 83.22 kB / 0.8325 GB, free: 352 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006015/0.7758, allocations: 152.5 kB / 0.8326 GB, free: 316 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002178/0.7779, allocations: 1.635 MB / 0.8342 GB, free: 14.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006672/0.7786, allocations: 85.2 kB / 0.8343 GB, free: 14.65 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.319e-05/0.7787, allocations: 30.2 kB / 0.8343 GB, free: 14.64 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 (84): * Single equations (assignments): 83 * 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.0003878/0.7791, allocations: 276.9 kB / 0.8346 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.7793, allocations: 78.12 kB / 0.8347 GB, free: 14.38 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002175/0.7815, allocations: 0.9858 MB / 0.8356 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.7815, allocations: 7.75 kB / 0.8356 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.7815, allocations: 4 kB / 0.8356 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.7815, allocations: 7.922 kB / 0.8356 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003313/0.7848, allocations: 1.902 MB / 0.8375 GB, free: 12.56 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.7848, allocations: 0 / 0.8375 GB, free: 12.56 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005581/0.7854, allocations: 146.1 kB / 0.8376 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000415/0.7858, allocations: 72 kB / 0.8377 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.04e-05/0.7859, allocations: 19.64 kB / 0.8377 GB, free: 12.47 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001843/0.7878, allocations: 1.663 MB / 0.8394 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.7878, allocations: 0 / 0.8394 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.7897, allocations: 0.9268 MB / 0.8403 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003735/0.7901, allocations: 257.1 kB / 0.8405 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.7902, allocations: 16.41 kB / 0.8405 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006129/0.7908, allocations: 57.34 kB / 0.8406 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.791, allocations: 55.58 kB / 0.8406 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.451e-05/0.7911, allocations: 36.17 kB / 0.8407 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005404/0.7916, allocations: 434.9 kB / 0.8411 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2e-07/0.7916, allocations: 0 / 0.8411 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000904/0.7925, allocations: 323.2 kB / 0.8414 GB, free: 9.656 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 (84): * Single equations (assignments): 81 * 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.001472/0.794, allocations: 0.6062 MB / 0.842 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001656/0.7957, allocations: 0.778 MB / 0.8427 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.7957, allocations: 3.938 kB / 0.8427 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008912/0.7966, allocations: 494.1 kB / 0.8432 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.7978, allocations: 285.2 kB / 0.8435 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003693/0.8015, allocations: 1.751 MB / 0.8452 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005829/0.8021, allocations: 1.011 MB / 0.8462 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002824/0.8023, allocations: 119.3 kB / 0.8463 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of SimCode: time 2.6e-07/0.8024, allocations: 0 / 0.8463 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of Templates: time 0.02481/0.8272, allocations: 18.18 MB / 0.8641 GB, free: 3.801 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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.SkyClearnessCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessFunctions.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.SkyClearnessCalcHelperMain.o] Error 1