Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.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.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 108.9 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.001411/0.001411, allocations: 191.2 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.439/1.439, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8592/0.8592, allocations: 132.2 MB / 423.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 61.81 kB / 0.582 GB, free: 23.75 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1645, allocations: 80.21 MB / 0.6603 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.006763/0.1713, allocations: 4.496 MB / 0.6647 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5897/0.7611, allocations: 150.6 MB / 0.8118 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008597/0.762, allocations: 25.66 kB / 0.8118 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005899/0.7626, allocations: 185.6 kB / 0.812 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001681/0.7643, allocations: 0.5008 MB / 0.8125 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001901/0.7662, allocations: 0.8223 MB / 0.8133 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001387/0.7676, allocations: 1.328 MB / 0.8146 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001094/0.7687, allocations: 0.9131 MB / 0.8155 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000716/0.7694, allocations: 0.5391 MB / 0.816 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005499/0.77, allocations: 0.5748 MB / 0.8166 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000156/0.7702, allocations: 140.7 kB / 0.8167 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008608/0.771, allocations: 0.5113 MB / 0.8172 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002682/0.7713, allocations: 343 kB / 0.8175 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004665/0.7718, allocations: 0.6363 MB / 0.8181 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001923/0.7737, allocations: 1.843 MB / 0.8199 GB, free: 9.066 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.7737, allocations: 0 / 0.8199 GB, free: 9.066 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.703e-06/0.7737, allocations: 0 / 0.8199 GB, free: 9.066 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.719e-05/0.7738, allocations: 0 / 0.8199 GB, free: 9.066 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.00246/0.7762, allocations: 1.582 MB / 0.8215 GB, free: 7.836 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.7763, allocations: 14.38 kB / 0.8215 GB, free: 7.832 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000916/0.7772, allocations: 210.7 kB / 0.8217 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.7784, allocations: 0.8319 MB / 0.8225 GB, free: 7.066 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.639e-05/0.7785, allocations: 83.48 kB / 0.8226 GB, free: 7.027 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.7786, allocations: 109.3 kB / 0.8227 GB, free: 6.992 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.7805, allocations: 1.139 MB / 0.8238 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.7805, allocations: 4 kB / 0.8238 GB, free: 6.254 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.532e-05/0.7806, allocations: 48.38 kB / 0.8239 GB, free: 6.219 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.7806, allocations: 27.38 kB / 0.8239 GB, free: 6.219 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001936/0.7826, allocations: 1.241 MB / 0.8251 GB, free: 5.621 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004291/0.7869, allocations: 2.971 MB / 0.828 GB, free: 3.406 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.7882, allocations: 0.7799 MB / 0.8288 GB, free: 3.02 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004998/0.7887, allocations: 294.5 kB / 0.829 GB, free: 2.871 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.528e-05/0.7888, allocations: 29.25 kB / 0.8291 GB, free: 2.863 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007695/0.7896, allocations: 451.5 kB / 0.8295 GB, free: 2.574 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.194e-06/0.7896, allocations: 0 / 0.8295 GB, free: 2.574 MB / 0.5919 GB Notification: Performance of matching and sorting (n=78): time 0.002926/0.7925, allocations: 1.134 MB / 0.8306 GB, free: 1.957 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.7926, allocations: 196.3 kB / 0.8308 GB, free: 1.734 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000841/0.7935, allocations: 0.6888 MB / 0.8315 GB, free: 1.34 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.602e-05/0.7935, allocations: 40.58 kB / 0.8315 GB, free: 1.297 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003792/0.7939, allocations: 0.4948 MB / 0.832 GB, free: 0.8594 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.7941, allocations: 259.5 kB / 0.8322 GB, free: 0.6406 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002237/0.7944, allocations: 162.3 kB / 0.8324 GB, free: 0.543 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.7945, allocations: 394.4 kB / 0.8328 GB, free: 172 kB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004911/0.795, allocations: 256.7 kB / 0.833 GB, free: 44 kB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006153/0.7957, allocations: 347.4 kB / 0.8333 GB, free: 15.85 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.7967, allocations: 0.6018 MB / 0.8339 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.7967, allocations: 0 / 0.8339 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001874/0.7986, allocations: 0.8459 MB / 0.8347 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.7986, allocations: 4.656 kB / 0.8348 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.7987, allocations: 13.7 kB / 0.8348 GB, free: 15.08 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005887/0.7993, allocations: 71.44 kB / 0.8348 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006383/0.7999, allocations: 169.5 kB / 0.835 GB, free: 15 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.802, allocations: 1.631 MB / 0.8366 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007182/0.8027, allocations: 92.22 kB / 0.8367 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-05/0.8028, allocations: 38.62 kB / 0.8367 GB, free: 13.32 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 (92): * Single equations (assignments): 91 * 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.0005149/0.8033, allocations: 278.6 kB / 0.837 GB, free: 13.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.8035, allocations: 90.81 kB / 0.8371 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002162/0.8057, allocations: 1.025 MB / 0.8381 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.8057, allocations: 10.16 kB / 0.8381 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.8057, allocations: 0 / 0.8381 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.8057, allocations: 7.984 kB / 0.8381 GB, free: 12.47 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.8068, allocations: 0.982 MB / 0.839 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.8068, allocations: 96 / 0.839 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005837/0.8074, allocations: 150.4 kB / 0.8392 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004275/0.8078, allocations: 82.42 kB / 0.8393 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/0.8079, allocations: 23.83 kB / 0.8393 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001796/0.8097, allocations: 1.645 MB / 0.8409 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.8097, allocations: 8.125 kB / 0.8409 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.8116, allocations: 0.8848 MB / 0.8418 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003514/0.8119, allocations: 271.7 kB / 0.842 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.812, allocations: 16.72 kB / 0.842 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005434/0.8126, allocations: 56.34 kB / 0.8421 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.8127, allocations: 59.81 kB / 0.8422 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-05/0.8128, allocations: 35.89 kB / 0.8422 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006251/0.8134, allocations: 495.8 kB / 0.8427 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8134, allocations: 0 / 0.8427 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008526/0.8143, allocations: 339.6 kB / 0.843 GB, free: 8.859 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.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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.001303/0.8156, allocations: 0.5961 MB / 0.8436 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001632/0.8173, allocations: 0.8033 MB / 0.8443 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.8173, allocations: 288 / 0.8443 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000873/0.8182, allocations: 0.5082 MB / 0.8448 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.8194, allocations: 300.6 kB / 0.8451 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004216/0.8236, allocations: 1.997 MB / 0.8471 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006248/0.8243, allocations: 1.078 MB / 0.8481 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003475/0.8246, allocations: 119.4 kB / 0.8482 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of SimCode: time 5.71e-07/0.8246, allocations: 0 / 0.8482 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of Templates: time 0.02917/0.8538, allocations: 20.18 MB / 0.868 GB, free: 20 kB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.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.Examples.DiffuseIsotropicCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicFunctions.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.Examples.DiffuseIsotropicCalcHelperMain.o] Error 1