Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient.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.BrighteningCoefficient,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001357/0.001358, allocations: 107.5 kB / 16.41 MB, free: 6.5 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.001311/0.001311, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.473/1.473, 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.8129/0.8129, allocations: 132.2 MB / 423.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 63.06 kB / 0.582 GB, free: 23.74 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1615, allocations: 80.2 MB / 0.6603 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient): time 0.00847/0.17, allocations: 4.415 MB / 0.6646 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5288/0.6989, allocations: 150.7 MB / 0.8118 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007951/0.6997, allocations: 20.12 kB / 0.8118 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005711/0.7003, allocations: 179.2 kB / 0.8119 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001401/0.7017, allocations: 491.2 kB / 0.8124 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001692/0.7034, allocations: 0.899 MB / 0.8133 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001299/0.7048, allocations: 1.368 MB / 0.8146 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009871/0.7058, allocations: 0.7895 MB / 0.8154 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006912/0.7065, allocations: 0.5237 MB / 0.8159 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006752/0.7071, allocations: 0.5757 MB / 0.8165 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001709/0.7073, allocations: 130.1 kB / 0.8166 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009499/0.7083, allocations: 0.5076 MB / 0.8171 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002588/0.7086, allocations: 332.6 kB / 0.8174 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004809/0.709, allocations: 0.5953 MB / 0.818 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001813/0.7109, allocations: 1.744 MB / 0.8197 GB, free: 9.363 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.7109, allocations: 0 / 0.8197 GB, free: 9.363 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.453e-06/0.7109, allocations: 0 / 0.8197 GB, free: 9.363 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.77e-05/0.7109, allocations: 5.594 kB / 0.8197 GB, free: 9.359 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: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.002791/0.7137, allocations: 1.559 MB / 0.8212 GB, free: 8.168 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.7138, allocations: 10.53 kB / 0.8212 GB, free: 8.168 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005085/0.7188, allocations: 0.7448 MB / 0.822 GB, free: 7.832 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001662/0.7205, allocations: 0.7996 MB / 0.8227 GB, free: 7.184 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.164e-05/0.7206, allocations: 80.75 kB / 0.8228 GB, free: 7.145 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002143/0.7208, allocations: 99.47 kB / 0.8229 GB, free: 7.113 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003441/0.7243, allocations: 1.374 MB / 0.8243 GB, free: 6.254 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.7243, allocations: 0 / 0.8243 GB, free: 6.254 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001349/0.7245, allocations: 46.09 kB / 0.8243 GB, free: 6.219 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.7245, allocations: 25.19 kB / 0.8243 GB, free: 6.219 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004703/0.7292, allocations: 1.838 MB / 0.8261 GB, free: 5.348 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006757/0.736, allocations: 3.085 MB / 0.8291 GB, free: 3.102 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003425/0.7394, allocations: 1.271 MB / 0.8304 GB, free: 2.426 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.741, allocations: 0.5683 MB / 0.8309 GB, free: 2.145 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007243/0.7418, allocations: 485.3 kB / 0.8314 GB, free: 1.641 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001956/0.7438, allocations: 0.7296 MB / 0.8321 GB, free: 1.188 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=100): time 4.388e-06/0.7438, allocations: 0 / 0.8321 GB, free: 1.188 MB / 0.5919 GB Notification: Performance of matching and sorting (n=100): time 0.006307/0.7501, allocations: 1.851 MB / 0.8339 GB, free: 240 kB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.7502, allocations: 190.4 kB / 0.8341 GB, free: 12 kB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009551/0.7512, allocations: 0.6146 MB / 0.8347 GB, free: 15.64 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.7514, allocations: 42.23 kB / 0.8347 GB, free: 15.6 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000369/0.7517, allocations: 419.5 kB / 0.8351 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003356/0.7521, allocations: 333.5 kB / 0.8354 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003848/0.7525, allocations: 194.5 kB / 0.8356 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.7527, allocations: 384.6 kB / 0.836 GB, free: 14.47 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/0.7542, allocations: 482.4 kB / 0.8365 GB, free: 14.24 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.7557, allocations: 0.579 MB / 0.837 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003026/0.7588, allocations: 1.022 MB / 0.838 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.7588, allocations: 0 / 0.838 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004068/0.7629, allocations: 1.296 MB / 0.8393 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.7629, allocations: 6.469 kB / 0.8393 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.7629, allocations: 3 kB / 0.8393 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006037/0.7635, allocations: 83.64 kB / 0.8394 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.765, allocations: 252.9 kB / 0.8396 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002275/0.7672, allocations: 1.637 MB / 0.8412 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.7686, allocations: 146 kB / 0.8414 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001588/0.7688, allocations: 43.56 kB / 0.8414 GB, free: 10.93 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (112): * Single equations (assignments): 111 * 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.0005983/0.7694, allocations: 281.2 kB / 0.8417 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003156/0.7697, allocations: 89.47 kB / 0.8418 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004789/0.7745, allocations: 1.576 MB / 0.8433 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/0.7746, allocations: 12 kB / 0.8433 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.7746, allocations: 3.984 kB / 0.8433 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.792e-05/0.7746, allocations: 3.984 kB / 0.8433 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006693/0.7813, allocations: 2.735 MB / 0.846 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.7814, allocations: 0 / 0.846 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/0.7827, allocations: 247.6 kB / 0.8462 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004682/0.7832, allocations: 72.8 kB / 0.8463 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/0.7834, allocations: 33.66 kB / 0.8463 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.7854, allocations: 1.664 MB / 0.8479 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.7854, allocations: 0 / 0.8479 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004211/0.7896, allocations: 1.435 MB / 0.8493 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005531/0.7902, allocations: 291.6 kB / 0.8496 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002203/0.7904, allocations: 24 kB / 0.8496 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.7916, allocations: 111.9 kB / 0.8498 GB, free: 2.363 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.7918, allocations: 76.83 kB / 0.8498 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.7919, allocations: 39.97 kB / 0.8499 GB, free: 2.25 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006527/0.7926, allocations: 447 kB / 0.8503 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.8e-07/0.7926, allocations: 0 / 0.8503 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001177/0.7938, allocations: 367 kB / 0.8506 GB, free: 1.461 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 (113): * Single equations (assignments): 110 * 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.001611/0.7954, allocations: 0.6226 MB / 0.8512 GB, free: 1.074 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003857/0.7993, allocations: 1.32 MB / 0.8525 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.7993, allocations: 0 / 0.8525 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001993/0.8013, allocations: 0.7695 MB / 0.8533 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.8028, allocations: 294.5 kB / 0.8536 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005189/0.808, allocations: 2.132 MB / 0.8557 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007305/0.8088, allocations: 1.056 MB / 0.8567 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005765/0.8094, allocations: 135.3 kB / 0.8568 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of SimCode: time 6.21e-07/0.8094, allocations: 0 / 0.8568 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of Templates: time 0.02776/0.8371, allocations: 21.17 MB / 0.8775 GB, free: 6.18 MB / 0.6387 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient.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.BrighteningCoefficientCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientFunctions.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.BrighteningCoefficientCalcHelperMain.o] Error 1