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.00119/0.00119, allocations: 110.6 kB / 16.41 MB, free: 6.496 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.001242/0.001242, allocations: 188.1 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8605/0.8605, allocations: 132.2 MB / 423.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 61.61 kB / 0.582 GB, free: 23.75 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1767, allocations: 80.21 MB / 0.6603 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.006526/0.1833, allocations: 4.192 MB / 0.6644 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6642/0.8475, allocations: 150.5 MB / 0.8114 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009961/0.8485, allocations: 16.09 kB / 0.8114 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0008125/0.8493, allocations: 170.6 kB / 0.8116 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001905/0.8513, allocations: 484 kB / 0.8121 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002069/0.8534, allocations: 0.8163 MB / 0.8129 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001348/0.8547, allocations: 1.214 MB / 0.814 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009912/0.8557, allocations: 0.6804 MB / 0.8147 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006848/0.8564, allocations: 468 kB / 0.8152 GB, free: 11.08 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005271/0.857, allocations: 481.5 kB / 0.8156 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001507/0.8571, allocations: 117 kB / 0.8157 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.8581, allocations: 499.9 kB / 0.8162 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002483/0.8584, allocations: 293.4 kB / 0.8165 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004482/0.8589, allocations: 0.5297 MB / 0.817 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001719/0.8606, allocations: 1.59 MB / 0.8186 GB, free: 9.883 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.8606, allocations: 4 kB / 0.8186 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8606, allocations: 0 / 0.8186 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.335e-05/0.8606, allocations: 1.781 kB / 0.8186 GB, free: 9.879 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.002338/0.863, allocations: 1.389 MB / 0.8199 GB, free: 8.875 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.863, allocations: 8.219 kB / 0.8199 GB, free: 8.875 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001101/0.8641, allocations: 208.7 kB / 0.8201 GB, free: 8.777 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.8653, allocations: 0.7452 MB / 0.8209 GB, free: 8.176 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.644e-05/0.8653, allocations: 70.92 kB / 0.8209 GB, free: 8.141 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.8654, allocations: 85.19 kB / 0.821 GB, free: 8.113 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.8671, allocations: 0.9474 MB / 0.8219 GB, free: 7.512 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.8671, allocations: 0 / 0.8219 GB, free: 7.512 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.972e-05/0.8672, allocations: 46.34 kB / 0.822 GB, free: 7.477 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.8673, allocations: 22.75 kB / 0.822 GB, free: 7.477 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001794/0.8691, allocations: 1.125 MB / 0.8231 GB, free: 6.938 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00421/0.8733, allocations: 2.52 MB / 0.8256 GB, free: 5.035 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.8748, allocations: 0.8278 MB / 0.8264 GB, free: 4.57 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000536/0.8753, allocations: 286.5 kB / 0.8266 GB, free: 4.43 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007311/0.8761, allocations: 467.3 kB / 0.8271 GB, free: 3.93 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009129/0.877, allocations: 442.2 kB / 0.8275 GB, free: 3.645 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=73): time 2.275e-06/0.877, allocations: 0 / 0.8275 GB, free: 3.645 MB / 0.5919 GB Notification: Performance of matching and sorting (n=73): time 0.003036/0.88, allocations: 1.098 MB / 0.8286 GB, free: 3.047 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.8802, allocations: 188.3 kB / 0.8288 GB, free: 2.824 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007906/0.881, allocations: 0.6003 MB / 0.8293 GB, free: 2.473 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.81e-05/0.8811, allocations: 42.86 kB / 0.8294 GB, free: 2.43 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003585/0.8814, allocations: 399.6 kB / 0.8298 GB, free: 2.078 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.8817, allocations: 244.2 kB / 0.83 GB, free: 1.871 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002343/0.8819, allocations: 156 kB / 0.8301 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001767/0.8821, allocations: 381.6 kB / 0.8305 GB, free: 1.41 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004908/0.8826, allocations: 249 kB / 0.8307 GB, free: 1.289 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006097/0.8832, allocations: 336.9 kB / 0.8311 GB, free: 1.094 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.8843, allocations: 0.571 MB / 0.8316 GB, free: 0.7891 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.8843, allocations: 0 / 0.8316 GB, free: 0.7891 MB / 0.5919 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001863/0.8862, allocations: 0.7923 MB / 0.8324 GB, free: 388 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.8862, allocations: 5.25 kB / 0.8324 GB, free: 388 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.8862, allocations: 2.719 kB / 0.8324 GB, free: 388 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005768/0.8868, allocations: 82.94 kB / 0.8325 GB, free: 344 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006118/0.8874, allocations: 150.6 kB / 0.8326 GB, free: 308 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002161/0.8896, allocations: 1.636 MB / 0.8342 GB, free: 14.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007144/0.8903, allocations: 84.7 kB / 0.8343 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.501e-05/0.8904, allocations: 35.73 kB / 0.8343 GB, free: 14.63 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.0005216/0.8909, allocations: 270.7 kB / 0.8346 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.8911, allocations: 76.38 kB / 0.8347 GB, free: 14.38 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002242/0.8933, allocations: 0.9838 MB / 0.8356 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.8934, allocations: 7.938 kB / 0.8356 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.8934, allocations: 10.55 kB / 0.8356 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.8934, allocations: 7.922 kB / 0.8357 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003331/0.8967, allocations: 1.899 MB / 0.8375 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.8967, allocations: 0 / 0.8375 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005741/0.8973, allocations: 147.2 kB / 0.8376 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004383/0.8978, allocations: 74.22 kB / 0.8377 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.391e-05/0.8978, allocations: 19.95 kB / 0.8377 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002106/0.8999, allocations: 1.657 MB / 0.8394 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.9, allocations: 0 / 0.8394 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002098/0.9021, allocations: 0.9261 MB / 0.8403 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004663/0.9025, allocations: 262 kB / 0.8405 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/0.9027, allocations: 16.88 kB / 0.8405 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006802/0.9034, allocations: 56.97 kB / 0.8406 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.9036, allocations: 52.55 kB / 0.8406 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-05/0.9037, allocations: 32.17 kB / 0.8407 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007347/0.9044, allocations: 435.2 kB / 0.8411 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9044, allocations: 4 kB / 0.8411 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001125/0.9055, allocations: 323.2 kB / 0.8414 GB, free: 9.652 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.001762/0.9073, allocations: 0.6114 MB / 0.842 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001986/0.9093, allocations: 0.7745 MB / 0.8427 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.9093, allocations: 0 / 0.8427 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.9104, allocations: 497.7 kB / 0.8432 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001499/0.9119, allocations: 292.4 kB / 0.8435 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004555/0.9164, allocations: 1.755 MB / 0.8452 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007976/0.9172, allocations: 1.007 MB / 0.8462 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003331/0.9176, allocations: 115.3 kB / 0.8463 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of SimCode: time 1.032e-06/0.9176, allocations: 4 kB / 0.8463 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of Templates: time 0.02884/0.9465, allocations: 18.05 MB / 0.8639 GB, free: 3.91 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