Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.Examples.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.0009991/0.0009991, allocations: 110.6 kB / 16.41 MB, free: 6.445 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.00111/0.00111, allocations: 187 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.246/1.246, 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-master/package.mo): time 0.7424/0.7424, allocations: 135.1 MB / 426.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 58.22 kB / 0.5862 GB, free: 21.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1363, allocations: 80.92 MB / 0.6653 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.006585/0.1429, allocations: 6.067 MB / 0.6712 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.4329/0.5758, allocations: 151.4 MB / 0.8191 GB, free: 6.98 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008595/0.5767, allocations: 24.38 kB / 0.8191 GB, free: 6.973 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006365/0.5773, allocations: 248.5 kB / 0.8194 GB, free: 6.77 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001676/0.579, allocations: 0.6272 MB / 0.82 GB, free: 6.395 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002325/0.5814, allocations: 1.289 MB / 0.8212 GB, free: 5.91 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002181/0.5836, allocations: 2.426 MB / 0.8236 GB, free: 4.523 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001784/0.5854, allocations: 1.578 MB / 0.8251 GB, free: 3.547 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00134/0.5867, allocations: 1.059 MB / 0.8262 GB, free: 2.867 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001288/0.588, allocations: 1.201 MB / 0.8273 GB, free: 1.953 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003361/0.5883, allocations: 296.4 kB / 0.8276 GB, free: 1.953 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.5899, allocations: 0.6687 MB / 0.8283 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005163/0.5904, allocations: 0.6468 MB / 0.8289 GB, free: 1.215 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.5915, allocations: 1.169 MB / 0.8301 GB, free: 296 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003647/0.5951, allocations: 3.293 MB / 0.8333 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.5952, allocations: 0 / 0.8333 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.866e-06/0.5952, allocations: 2.406 kB / 0.8333 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.332e-05/0.5952, allocations: 0 / 0.8333 GB, free: 13.76 MB / 0.6075 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.005169/0.6004, allocations: 2.576 MB / 0.8358 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.6005, allocations: 15.2 kB / 0.8358 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01376/0.6142, allocations: 2.094 MB / 0.8378 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002346/0.6166, allocations: 1.216 MB / 0.839 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.6168, allocations: 164.1 kB / 0.8392 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004098/0.6172, allocations: 206.3 kB / 0.8394 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007889/0.6251, allocations: 3.163 MB / 0.8425 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.974e-05/0.6251, allocations: 0 / 0.8425 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002357/0.6254, allocations: 96.06 kB / 0.8426 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.192e-05/0.6254, allocations: 52.16 kB / 0.8426 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01127/0.6367, allocations: 4.104 MB / 0.8466 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01311/0.6498, allocations: 6.921 MB / 0.8534 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007852/0.6577, allocations: 2.692 MB / 0.856 GB, free: 11.46 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003869/0.6616, allocations: 1.426 MB / 0.8574 GB, free: 10.03 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006628/0.6623, allocations: 0.5074 MB / 0.8579 GB, free: 9.434 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004324/0.6666, allocations: 1.703 MB / 0.8596 GB, free: 7.711 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=195): time 3.146e-06/0.6666, allocations: 0 / 0.8596 GB, free: 7.711 MB / 0.6231 GB Notification: Performance of matching and sorting (n=195): time 0.01307/0.6797, allocations: 4.189 MB / 0.8637 GB, free: 3.496 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.6798, allocations: 205.9 kB / 0.8639 GB, free: 3.25 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/0.681, allocations: 0.8658 MB / 0.8647 GB, free: 2.359 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001728/0.6811, allocations: 57.7 kB / 0.8648 GB, free: 2.297 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005013/0.6816, allocations: 0.6995 MB / 0.8654 GB, free: 1.586 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005027/0.6822, allocations: 0.6313 MB / 0.8661 GB, free: 0.9453 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006341/0.6828, allocations: 371.2 kB / 0.8664 GB, free: 0.5781 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 8.847e-05/0.6829, allocations: 301.1 kB / 0.8667 GB, free: 288 kB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003753/0.6866, allocations: 1.187 MB / 0.8679 GB, free: 15.09 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003995/0.6907, allocations: 1.355 MB / 0.8692 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00759/0.6983, allocations: 2.497 MB / 0.8716 GB, free: 11.2 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.6983, allocations: 4 kB / 0.8716 GB, free: 11.19 MB / 0.6387 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.008957/0.7072, allocations: 2.956 MB / 0.8745 GB, free: 8.223 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.7073, allocations: 4.109 kB / 0.8745 GB, free: 8.219 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.7073, allocations: 7.938 kB / 0.8745 GB, free: 8.211 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005547/0.7079, allocations: 88.83 kB / 0.8746 GB, free: 8.121 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003269/0.7111, allocations: 0.5694 MB / 0.8752 GB, free: 7.551 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002011/0.7132, allocations: 1.628 MB / 0.8767 GB, free: 5.777 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002638/0.7158, allocations: 341 kB / 0.8771 GB, free: 5.445 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002071/0.716, allocations: 87.89 kB / 0.8772 GB, free: 5.359 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.0008228/0.7169, allocations: 410.9 kB / 0.8775 GB, free: 4.949 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003511/0.7172, allocations: 154.1 kB / 0.8777 GB, free: 4.797 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01016/0.7274, allocations: 3.473 MB / 0.8811 GB, free: 1.309 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.7274, allocations: 20 kB / 0.8811 GB, free: 1.289 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.7274, allocations: 0 / 0.8811 GB, free: 1.289 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.038e-05/0.7274, allocations: 11.95 kB / 0.8811 GB, free: 1.277 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/0.7397, allocations: 5.754 MB / 0.8867 GB, free: 11.46 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.7397, allocations: 4 kB / 0.8867 GB, free: 11.46 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003146/0.7429, allocations: 0.5383 MB / 0.8873 GB, free: 10.92 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004386/0.7433, allocations: 80.78 kB / 0.8873 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002061/0.7435, allocations: 63.92 kB / 0.8874 GB, free: 10.78 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001714/0.7453, allocations: 1.663 MB / 0.889 GB, free: 8.969 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.7453, allocations: 5.109 kB / 0.889 GB, free: 8.965 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008861/0.7541, allocations: 3.05 MB / 0.892 GB, free: 5.895 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000762/0.7549, allocations: 0.5102 MB / 0.8925 GB, free: 5.363 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002719/0.7552, allocations: 39.94 kB / 0.8925 GB, free: 5.324 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002372/0.7576, allocations: 247.7 kB / 0.8928 GB, free: 5.082 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/0.7578, allocations: 125.8 kB / 0.8929 GB, free: 4.961 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001948/0.758, allocations: 83.91 kB / 0.893 GB, free: 4.879 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0008002/0.7588, allocations: 0.6427 MB / 0.8936 GB, free: 4.227 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7588, allocations: 0 / 0.8936 GB, free: 4.227 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001422/0.7603, allocations: 0.5958 MB / 0.8942 GB, free: 3.629 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.001355/0.7616, allocations: 0.6458 MB / 0.8948 GB, free: 3.156 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.008389/0.77, allocations: 2.991 MB / 0.8977 GB, free: 152 kB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.77, allocations: 0 / 0.8977 GB, free: 152 kB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.004304/0.7744, allocations: 1.658 MB / 0.8994 GB, free: 14.48 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.7758, allocations: 351.1 kB / 0.8997 GB, free: 14.15 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008229/0.7841, allocations: 3.973 MB / 0.9036 GB, free: 10.15 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007969/0.7849, allocations: 1.361 MB / 0.9049 GB, free: 8.75 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001307/0.7862, allocations: 267.2 kB / 0.9052 GB, free: 8.488 MB / 0.67 GB Notification: Performance of SimCode: time 1.834e-06/0.7862, allocations: 0 / 0.9052 GB, free: 8.488 MB / 0.67 GB Notification: Performance of Templates: time 0.04248/0.8287, allocations: 38.97 MB / 0.9432 GB, free: 1.5 MB / 0.7012 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.makefile make -j1 -f IDEAS_dev_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-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.Examples.DiffusePerezCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezFunctions.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.Examples.DiffusePerezCalcHelperMain.o] Error 1