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.001376/0.001376, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001448/0.001448, allocations: 188.9 kB / 17.34 MB, free: 5.695 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.392/1.392, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8156/0.8156, allocations: 135.1 MB / 426.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 66.81 kB / 0.5863 GB, free: 21.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.175/0.1762, allocations: 80.93 MB / 0.6653 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.006469/0.1827, allocations: 4.197 MB / 0.6694 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6684/0.8511, allocations: 150.5 MB / 0.8164 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009319/0.8521, allocations: 15.53 kB / 0.8164 GB, free: 8.461 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006012/0.8527, allocations: 169 kB / 0.8165 GB, free: 8.371 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001641/0.8544, allocations: 490.6 kB / 0.817 GB, free: 8.172 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002096/0.8565, allocations: 0.8047 MB / 0.8178 GB, free: 7.922 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001184/0.8577, allocations: 1.212 MB / 0.819 GB, free: 7.594 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009165/0.8587, allocations: 0.7017 MB / 0.8197 GB, free: 7.363 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005542/0.8592, allocations: 466.4 kB / 0.8201 GB, free: 7.215 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004753/0.8597, allocations: 498.8 kB / 0.8206 GB, free: 6.992 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.8598, allocations: 117.2 kB / 0.8207 GB, free: 6.988 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008487/0.8607, allocations: 485.5 kB / 0.8211 GB, free: 6.902 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002634/0.861, allocations: 298.3 kB / 0.8214 GB, free: 6.742 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004244/0.8614, allocations: 0.5314 MB / 0.822 GB, free: 6.336 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001648/0.8631, allocations: 1.584 MB / 0.8235 GB, free: 5.184 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.8631, allocations: 0 / 0.8235 GB, free: 5.184 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.743e-06/0.8631, allocations: 0 / 0.8235 GB, free: 5.184 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.497e-05/0.8631, allocations: 0 / 0.8235 GB, free: 5.184 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.002184/0.8653, allocations: 1.392 MB / 0.8249 GB, free: 4.082 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.8653, allocations: 15.3 kB / 0.8249 GB, free: 4.078 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001598/0.8669, allocations: 290.6 kB / 0.8251 GB, free: 3.953 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/0.868, allocations: 0.7488 MB / 0.8259 GB, free: 3.34 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-05/0.8681, allocations: 71.59 kB / 0.8259 GB, free: 3.305 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.8682, allocations: 86.09 kB / 0.826 GB, free: 3.277 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.8702, allocations: 1.011 MB / 0.827 GB, free: 2.648 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.8702, allocations: 7.688 kB / 0.827 GB, free: 2.645 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-05/0.8703, allocations: 37.5 kB / 0.8271 GB, free: 2.617 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.335e-05/0.8703, allocations: 22.81 kB / 0.8271 GB, free: 2.617 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002274/0.8726, allocations: 1.225 MB / 0.8283 GB, free: 2.039 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003933/0.8766, allocations: 2.525 MB / 0.8307 GB, free: 152 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.8789, allocations: 0.9415 MB / 0.8317 GB, free: 15.63 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006947/0.8796, allocations: 340.2 kB / 0.832 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 7.771e-05/0.8797, allocations: 35.89 kB / 0.832 GB, free: 15.45 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000955/0.8807, allocations: 486.1 kB / 0.8325 GB, free: 15.15 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=75): time 2.474e-06/0.8807, allocations: 0 / 0.8325 GB, free: 15.15 MB / 0.6075 GB Notification: Performance of matching and sorting (n=75): time 0.003422/0.8841, allocations: 1.239 MB / 0.8337 GB, free: 14.49 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.8842, allocations: 188.2 kB / 0.8339 GB, free: 14.27 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006884/0.8849, allocations: 0.6006 MB / 0.8345 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.249e-05/0.885, allocations: 38.36 kB / 0.8345 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003078/0.8853, allocations: 404.4 kB / 0.8349 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.8855, allocations: 250.4 kB / 0.8351 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/0.8857, allocations: 151.3 kB / 0.8353 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000173/0.8859, allocations: 388.6 kB / 0.8356 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006852/0.8866, allocations: 292.7 kB / 0.8359 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007589/0.8874, allocations: 384.1 kB / 0.8363 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/0.8888, allocations: 0.6526 MB / 0.8369 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.8888, allocations: 0 / 0.8369 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002162/0.891, allocations: 0.8808 MB / 0.8378 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.851e-05/0.891, allocations: 9.156 kB / 0.8378 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.891, allocations: 1.781 kB / 0.8378 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000565/0.8916, allocations: 79.94 kB / 0.8379 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007219/0.8923, allocations: 177.6 kB / 0.838 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002288/0.8946, allocations: 1.63 MB / 0.8396 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007286/0.8953, allocations: 105.5 kB / 0.8397 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.794e-05/0.8954, allocations: 40.06 kB / 0.8398 GB, free: 9.938 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.0004278/0.8959, allocations: 255.2 kB / 0.84 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001537/0.896, allocations: 76.75 kB / 0.8401 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002646/0.8987, allocations: 1.1 MB / 0.8412 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.8987, allocations: 13.34 kB / 0.8412 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.8987, allocations: 3.938 kB / 0.8412 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.8987, allocations: 3.984 kB / 0.8412 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003819/0.9025, allocations: 2.036 MB / 0.8432 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.9026, allocations: 0 / 0.8432 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007026/0.9033, allocations: 175.8 kB / 0.8433 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004242/0.9037, allocations: 70.8 kB / 0.8434 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.493e-05/0.9038, allocations: 18.83 kB / 0.8434 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001898/0.9057, allocations: 1.662 MB / 0.845 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.9057, allocations: 0 / 0.845 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002344/0.908, allocations: 1.025 MB / 0.846 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003751/0.9084, allocations: 267.7 kB / 0.8463 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/0.9086, allocations: 19.94 kB / 0.8463 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000711/0.9093, allocations: 71.92 kB / 0.8464 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.9094, allocations: 60.91 kB / 0.8464 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.886e-05/0.9095, allocations: 35.98 kB / 0.8465 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000592/0.9101, allocations: 439 kB / 0.8469 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9101, allocations: 0 / 0.8469 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001145/0.9113, allocations: 303.2 kB / 0.8472 GB, free: 4.133 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.00161/0.9129, allocations: 0.5824 MB / 0.8478 GB, free: 3.73 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002222/0.9151, allocations: 0.8753 MB / 0.8486 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/0.9152, allocations: 4 kB / 0.8486 GB, free: 2.84 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.9163, allocations: 0.543 MB / 0.8491 GB, free: 2.285 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.9175, allocations: 290.3 kB / 0.8494 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004351/0.9219, allocations: 1.816 MB / 0.8512 GB, free: 172 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007296/0.9226, allocations: 1.027 MB / 0.8522 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003393/0.923, allocations: 115.4 kB / 0.8523 GB, free: 15 MB / 0.6231 GB Notification: Performance of SimCode: time 8.31e-07/0.923, allocations: 0 / 0.8523 GB, free: 15 MB / 0.6231 GB Notification: Performance of Templates: time 0.02645/0.9494, allocations: 18.25 MB / 0.8701 GB, free: 12.77 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