Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.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.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 103.7 kB / 16.4 MB, free: 6.453 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.001127/0.001127, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.795/0.795, allocations: 132.2 MB / 423.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 67.11 kB / 0.582 GB, free: 23.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1569, allocations: 80.2 MB / 0.6603 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.008235/0.1651, allocations: 6.058 MB / 0.6662 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5255/0.6906, allocations: 151.4 MB / 0.8141 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.6917, allocations: 23.47 kB / 0.8141 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007193/0.6925, allocations: 241.4 kB / 0.8144 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001781/0.6943, allocations: 0.6173 MB / 0.815 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002794/0.6971, allocations: 1.283 MB / 0.8162 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002498/0.6996, allocations: 2.425 MB / 0.8186 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001779/0.7014, allocations: 1.585 MB / 0.8201 GB, free: 9.301 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001295/0.7027, allocations: 1.06 MB / 0.8212 GB, free: 8.621 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001218/0.7039, allocations: 1.195 MB / 0.8223 GB, free: 7.711 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003277/0.7042, allocations: 301.5 kB / 0.8226 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00117/0.7054, allocations: 0.6758 MB / 0.8233 GB, free: 7.512 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005396/0.706, allocations: 0.6334 MB / 0.8239 GB, free: 6.973 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009378/0.7069, allocations: 1.168 MB / 0.8251 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003044/0.71, allocations: 3.296 MB / 0.8283 GB, free: 3.523 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.71, allocations: 3.984 kB / 0.8283 GB, free: 3.52 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.352e-06/0.71, allocations: 0 / 0.8283 GB, free: 3.52 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.922e-05/0.71, allocations: 0 / 0.8283 GB, free: 3.52 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.005103/0.7151, allocations: 2.58 MB / 0.8308 GB, free: 1.676 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.7152, allocations: 13.72 kB / 0.8308 GB, free: 1.672 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01509/0.7303, allocations: 2.101 MB / 0.8329 GB, free: 0.7148 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002256/0.7326, allocations: 1.21 MB / 0.834 GB, free: 15.72 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.7327, allocations: 164 kB / 0.8342 GB, free: 15.64 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003239/0.733, allocations: 210.5 kB / 0.8344 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0081/0.7411, allocations: 3.164 MB / 0.8375 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.939e-05/0.7412, allocations: 4 kB / 0.8375 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000247/0.7414, allocations: 86.22 kB / 0.8376 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.058e-05/0.7415, allocations: 55.31 kB / 0.8376 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/0.7536, allocations: 4.098 MB / 0.8416 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01383/0.7675, allocations: 6.918 MB / 0.8484 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008622/0.7761, allocations: 2.699 MB / 0.851 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004236/0.7804, allocations: 1.423 MB / 0.8524 GB, free: 0.7656 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007236/0.7811, allocations: 0.5072 MB / 0.8529 GB, free: 172 kB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004834/0.786, allocations: 1.692 MB / 0.8546 GB, free: 14.46 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=195): time 3.898e-06/0.786, allocations: 4 kB / 0.8546 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of matching and sorting (n=195): time 0.01481/0.8008, allocations: 4.197 MB / 0.8587 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.8009, allocations: 201.9 kB / 0.8589 GB, free: 9.988 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.8021, allocations: 0.8541 MB / 0.8597 GB, free: 9.109 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001963/0.8023, allocations: 57.7 kB / 0.8597 GB, free: 9.047 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005649/0.8029, allocations: 0.7112 MB / 0.8604 GB, free: 8.324 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005452/0.8035, allocations: 0.6313 MB / 0.8611 GB, free: 7.684 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006976/0.8042, allocations: 363.1 kB / 0.8614 GB, free: 7.324 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.858e-05/0.8043, allocations: 305.1 kB / 0.8617 GB, free: 7.023 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004258/0.8085, allocations: 1.194 MB / 0.8629 GB, free: 5.828 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004401/0.8129, allocations: 1.355 MB / 0.8642 GB, free: 4.445 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008614/0.8216, allocations: 2.493 MB / 0.8666 GB, free: 1.938 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.8216, allocations: 7.938 kB / 0.8666 GB, free: 1.93 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.0103/0.8319, allocations: 2.949 MB / 0.8695 GB, free: 14.96 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.832, allocations: 17.86 kB / 0.8695 GB, free: 14.95 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.832, allocations: 3.938 kB / 0.8695 GB, free: 14.94 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005888/0.8326, allocations: 84.78 kB / 0.8696 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003682/0.8363, allocations: 0.5664 MB / 0.8702 GB, free: 14.29 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002177/0.8385, allocations: 1.64 MB / 0.8718 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002972/0.8415, allocations: 330.2 kB / 0.8721 GB, free: 12.18 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002477/0.8417, allocations: 95.89 kB / 0.8722 GB, free: 12.09 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (215): * Single equations (assignments): 214 * 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.0009748/0.8427, allocations: 410.2 kB / 0.8726 GB, free: 11.68 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003623/0.8431, allocations: 146.2 kB / 0.8727 GB, free: 11.53 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01121/0.8543, allocations: 3.476 MB / 0.8761 GB, free: 8.039 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.286e-05/0.8544, allocations: 24 kB / 0.8761 GB, free: 8.016 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.8544, allocations: 0 / 0.8761 GB, free: 8.016 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/0.8544, allocations: 15.95 kB / 0.8761 GB, free: 8 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01367/0.8681, allocations: 5.758 MB / 0.8818 GB, free: 2.184 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.8681, allocations: 0 / 0.8818 GB, free: 2.184 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003369/0.8715, allocations: 0.5422 MB / 0.8823 GB, free: 1.641 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004528/0.8719, allocations: 80.78 kB / 0.8824 GB, free: 1.559 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001994/0.8722, allocations: 63.92 kB / 0.8824 GB, free: 1.496 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002043/0.8742, allocations: 1.658 MB / 0.884 GB, free: 15.69 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.8742, allocations: 11.94 kB / 0.8841 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009776/0.884, allocations: 3.046 MB / 0.887 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008393/0.8849, allocations: 0.5025 MB / 0.8875 GB, free: 12.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002778/0.8852, allocations: 51.83 kB / 0.8876 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002538/0.8877, allocations: 243.7 kB / 0.8878 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.888, allocations: 129.8 kB / 0.8879 GB, free: 11.68 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002129/0.8882, allocations: 83.92 kB / 0.888 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0008302/0.889, allocations: 0.6427 MB / 0.8886 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.5e-07/0.889, allocations: 0 / 0.8886 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001531/0.8906, allocations: 0.5958 MB / 0.8892 GB, free: 10.34 MB / 0.6544 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 (210): * Single equations (assignments): 207 * 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.00145/0.892, allocations: 0.6489 MB / 0.8898 GB, free: 9.906 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.009164/0.9012, allocations: 2.983 MB / 0.8928 GB, free: 6.906 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.9012, allocations: 4 kB / 0.8928 GB, free: 6.902 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.004636/0.9059, allocations: 1.65 MB / 0.8944 GB, free: 5.246 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/0.9075, allocations: 352.8 kB / 0.8947 GB, free: 4.922 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008868/0.9164, allocations: 3.971 MB / 0.8986 GB, free: 0.918 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008596/0.9173, allocations: 1.369 MB / 0.8999 GB, free: 15.51 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/0.9186, allocations: 263.2 kB / 0.9002 GB, free: 15.25 MB / 0.67 GB Notification: Performance of SimCode: time 5.81e-07/0.9186, allocations: 0 / 0.9002 GB, free: 15.25 MB / 0.67 GB Notification: Performance of Templates: time 0.04718/0.9658, allocations: 39.26 MB / 0.9385 GB, free: 8 MB / 0.7012 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.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.DiffusePerezCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezFunctions.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.DiffusePerezCalcHelperMain.o] Error 1