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.00143/0.00143, allocations: 99.77 kB / 16.4 MB, free: 6.496 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.001515/0.001515, allocations: 189.5 kB / 17.34 MB, free: 5.77 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.823/0.823, allocations: 135.1 MB / 426.3 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 67.62 kB / 0.5863 GB, free: 21.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.181, allocations: 80.91 MB / 0.6653 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.007459/0.1885, allocations: 6.059 MB / 0.6712 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.6397/0.8282, allocations: 151.5 MB / 0.8191 GB, free: 6.922 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001537/0.8298, allocations: 24.03 kB / 0.8191 GB, free: 6.914 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.8309, allocations: 242.4 kB / 0.8193 GB, free: 6.715 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002679/0.8336, allocations: 0.6193 MB / 0.82 GB, free: 6.336 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003265/0.8369, allocations: 1.282 MB / 0.8212 GB, free: 5.859 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003638/0.8405, allocations: 2.425 MB / 0.8236 GB, free: 4.473 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002864/0.8434, allocations: 1.575 MB / 0.8251 GB, free: 3.496 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002194/0.8456, allocations: 1.062 MB / 0.8261 GB, free: 2.816 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002083/0.8477, allocations: 1.197 MB / 0.8273 GB, free: 1.906 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.00101/0.8487, allocations: 297.3 kB / 0.8276 GB, free: 1.906 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002099/0.8509, allocations: 0.6792 MB / 0.8283 GB, free: 1.707 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001048/0.8519, allocations: 0.6351 MB / 0.8289 GB, free: 1.168 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001337/0.8533, allocations: 1.172 MB / 0.83 GB, free: 244 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003803/0.8571, allocations: 3.289 MB / 0.8332 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.8571, allocations: 0 / 0.8332 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.893e-06/0.8571, allocations: 0 / 0.8332 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.038e-05/0.8572, allocations: 2.781 kB / 0.8332 GB, free: 13.71 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.005353/0.8625, allocations: 2.575 MB / 0.8358 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.8626, allocations: 13.33 kB / 0.8358 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01444/0.877, allocations: 2.094 MB / 0.8378 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00272/0.8798, allocations: 1.224 MB / 0.839 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.8799, allocations: 158.6 kB / 0.8392 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003529/0.8803, allocations: 208.7 kB / 0.8394 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008309/0.8886, allocations: 3.166 MB / 0.8425 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.346e-05/0.8887, allocations: 3.375 kB / 0.8425 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002387/0.889, allocations: 89.78 kB / 0.8425 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.579e-05/0.889, allocations: 56.7 kB / 0.8426 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01239/0.9014, allocations: 4.1 MB / 0.8466 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01573/0.9172, allocations: 6.93 MB / 0.8534 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008902/0.9261, allocations: 2.69 MB / 0.856 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004573/0.9307, allocations: 1.426 MB / 0.8574 GB, free: 10 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008735/0.9316, allocations: 0.4996 MB / 0.8579 GB, free: 9.41 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005179/0.9368, allocations: 1.703 MB / 0.8595 GB, free: 7.688 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=195): time 5.34e-06/0.9369, allocations: 0 / 0.8595 GB, free: 7.688 MB / 0.6231 GB Notification: Performance of matching and sorting (n=195): time 0.01508/0.9519, allocations: 4.197 MB / 0.8636 GB, free: 3.465 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/0.9521, allocations: 201.9 kB / 0.8638 GB, free: 3.223 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001574/0.9537, allocations: 0.858 MB / 0.8647 GB, free: 2.34 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002697/0.954, allocations: 61.69 kB / 0.8647 GB, free: 2.273 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007326/0.9547, allocations: 0.7031 MB / 0.8654 GB, free: 1.562 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007411/0.9555, allocations: 0.6313 MB / 0.866 GB, free: 0.9219 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000929/0.9564, allocations: 367.2 kB / 0.8664 GB, free: 0.5586 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.9566, allocations: 305.1 kB / 0.8667 GB, free: 264 kB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004208/0.9608, allocations: 1.187 MB / 0.8678 GB, free: 15.07 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004341/0.9651, allocations: 1.355 MB / 0.8692 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008425/0.9736, allocations: 2.496 MB / 0.8716 GB, free: 11.17 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.9736, allocations: 4 kB / 0.8716 GB, free: 11.17 MB / 0.6387 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.01014/0.9838, allocations: 2.96 MB / 0.8745 GB, free: 8.195 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.9838, allocations: 10.44 kB / 0.8745 GB, free: 8.188 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.9839, allocations: 4 kB / 0.8745 GB, free: 8.184 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006119/0.9845, allocations: 88.78 kB / 0.8746 GB, free: 8.094 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003529/0.988, allocations: 0.5695 MB / 0.8751 GB, free: 7.523 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/0.9903, allocations: 1.63 MB / 0.8767 GB, free: 5.75 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003066/0.9934, allocations: 338.2 kB / 0.8771 GB, free: 5.418 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003353/0.9937, allocations: 95.89 kB / 0.8771 GB, free: 5.324 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.001189/0.9949, allocations: 402.8 kB / 0.8775 GB, free: 4.922 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005535/0.9955, allocations: 146.2 kB / 0.8777 GB, free: 4.777 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01124/1.007, allocations: 3.482 MB / 0.8811 GB, free: 1.281 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/1.007, allocations: 20 kB / 0.8811 GB, free: 1.262 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/1.007, allocations: 0 / 0.8811 GB, free: 1.262 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.626e-05/1.007, allocations: 11.95 kB / 0.8811 GB, free: 1.25 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01437/1.021, allocations: 5.751 MB / 0.8867 GB, free: 11.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.557e-06/1.021, allocations: 0 / 0.8867 GB, free: 11.44 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003362/1.025, allocations: 0.5422 MB / 0.8872 GB, free: 10.89 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004907/1.025, allocations: 76.78 kB / 0.8873 GB, free: 10.82 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002586/1.025, allocations: 71.92 kB / 0.8874 GB, free: 10.75 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002/1.027, allocations: 1.659 MB / 0.889 GB, free: 8.941 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/1.027, allocations: 3.938 kB / 0.889 GB, free: 8.938 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01/1.037, allocations: 3.05 MB / 0.892 GB, free: 5.867 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/1.039, allocations: 0.5102 MB / 0.8925 GB, free: 5.336 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003915/1.039, allocations: 35.94 kB / 0.8925 GB, free: 5.301 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002749/1.042, allocations: 243.7 kB / 0.8928 GB, free: 5.062 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002734/1.042, allocations: 129.8 kB / 0.8929 GB, free: 4.938 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002122/1.042, allocations: 92.61 kB / 0.893 GB, free: 4.848 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001058/1.043, allocations: 0.6349 MB / 0.8936 GB, free: 4.203 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.31e-07/1.043, allocations: 0 / 0.8936 GB, free: 4.203 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001864/1.045, allocations: 0.5997 MB / 0.8942 GB, free: 3.602 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.00166/1.047, allocations: 0.6532 MB / 0.8948 GB, free: 3.129 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.009459/1.056, allocations: 2.983 MB / 0.8977 GB, free: 132 kB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/1.056, allocations: 0 / 0.8977 GB, free: 132 kB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.004851/1.061, allocations: 1.654 MB / 0.8993 GB, free: 14.47 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001969/1.063, allocations: 343.6 kB / 0.8997 GB, free: 14.14 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009874/1.073, allocations: 3.98 MB / 0.9036 GB, free: 10.14 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001156/1.074, allocations: 1.365 MB / 0.9049 GB, free: 8.734 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00143/1.076, allocations: 267.2 kB / 0.9051 GB, free: 8.473 MB / 0.67 GB Notification: Performance of SimCode: time 8.42e-07/1.076, allocations: 0 / 0.9051 GB, free: 8.473 MB / 0.67 GB Notification: Performance of Templates: time 0.05265/1.128, allocations: 39.25 MB / 0.9435 GB, free: 1.199 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