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.001936/0.001936, allocations: 108.3 kB / 16.41 MB, free: 6.473 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.002064/0.002064, allocations: 187 kB / 17.34 MB, free: 5.715 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.485/1.485, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8477/0.8477, allocations: 135.2 MB / 426.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002472/0.002472, allocations: 65.91 kB / 0.5863 GB, free: 21.36 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2191/0.2216, allocations: 80.93 MB / 0.6653 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.008956/0.2306, allocations: 6.052 MB / 0.6713 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.6157/0.8463, allocations: 151.9 MB / 0.8196 GB, free: 6.594 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001389/0.8477, allocations: 19.22 kB / 0.8196 GB, free: 6.59 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0009184/0.8486, allocations: 251.4 kB / 0.8198 GB, free: 6.383 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00251/0.8511, allocations: 0.6342 MB / 0.8205 GB, free: 6.004 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002968/0.8541, allocations: 1.288 MB / 0.8217 GB, free: 5.512 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003193/0.8573, allocations: 2.399 MB / 0.8241 GB, free: 4.078 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001675/0.859, allocations: 1.15 MB / 0.8252 GB, free: 3.227 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00158/0.8606, allocations: 1.061 MB / 0.8262 GB, free: 2.547 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001466/0.862, allocations: 1.198 MB / 0.8274 GB, free: 1.641 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003497/0.8624, allocations: 297.5 kB / 0.8277 GB, free: 1.641 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.8636, allocations: 0.6698 MB / 0.8283 GB, free: 1.449 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006126/0.8642, allocations: 0.6442 MB / 0.829 GB, free: 0.9023 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001221/0.8654, allocations: 1.171 MB / 0.8301 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.004598/0.87, allocations: 3.309 MB / 0.8333 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.87, allocations: 4 kB / 0.8333 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.884e-06/0.87, allocations: 0 / 0.8333 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.724e-05/0.8701, allocations: 0 / 0.8333 GB, free: 13.43 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.005828/0.8759, allocations: 2.648 MB / 0.8359 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.876, allocations: 11.23 kB / 0.8359 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01459/0.8906, allocations: 2.101 MB / 0.838 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002918/0.8935, allocations: 1.22 MB / 0.8392 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.8936, allocations: 163.1 kB / 0.8393 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003574/0.894, allocations: 206.9 kB / 0.8395 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008726/0.9027, allocations: 3.159 MB / 0.8426 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.356e-05/0.9028, allocations: 2.75 kB / 0.8426 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002773/0.903, allocations: 92.95 kB / 0.8427 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.199e-05/0.9031, allocations: 54.16 kB / 0.8428 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01244/0.9155, allocations: 4.108 MB / 0.8468 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01564/0.9312, allocations: 6.944 MB / 0.8535 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009141/0.9403, allocations: 2.521 MB / 0.856 GB, free: 11.44 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005176/0.9455, allocations: 1.301 MB / 0.8573 GB, free: 10.13 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001174/0.9466, allocations: 0.5074 MB / 0.8578 GB, free: 9.535 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00783/0.9545, allocations: 1.692 MB / 0.8594 GB, free: 7.824 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=195): time 5.63e-06/0.9545, allocations: 0 / 0.8594 GB, free: 7.824 MB / 0.6231 GB Notification: Performance of matching and sorting (n=195): time 0.02314/0.9776, allocations: 4.201 MB / 0.8635 GB, free: 3.598 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002161/0.9778, allocations: 201.9 kB / 0.8637 GB, free: 3.355 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002149/0.98, allocations: 0.8658 MB / 0.8646 GB, free: 2.465 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0006286/0.9806, allocations: 61.7 kB / 0.8646 GB, free: 2.398 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001027/0.9816, allocations: 0.7169 MB / 0.8653 GB, free: 1.672 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.00122/0.9829, allocations: 0.6661 MB / 0.866 GB, free: 1 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001189/0.984, allocations: 363.3 kB / 0.8663 GB, free: 0.6406 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001987/0.9842, allocations: 309.1 kB / 0.8666 GB, free: 344 kB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006362/0.9906, allocations: 1.187 MB / 0.8678 GB, free: 15.14 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006336/0.9969, allocations: 1.366 MB / 0.8691 GB, free: 13.76 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01089/1.008, allocations: 2.493 MB / 0.8715 GB, free: 11.25 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/1.008, allocations: 0 / 0.8715 GB, free: 11.25 MB / 0.6387 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.01135/1.019, allocations: 2.953 MB / 0.8744 GB, free: 8.281 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/1.019, allocations: 11.98 kB / 0.8744 GB, free: 8.27 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/1.019, allocations: 0 / 0.8744 GB, free: 8.27 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006066/1.02, allocations: 84.84 kB / 0.8745 GB, free: 8.184 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003951/1.024, allocations: 0.5695 MB / 0.8751 GB, free: 7.613 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002577/1.026, allocations: 1.64 MB / 0.8767 GB, free: 5.828 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/1.03, allocations: 342.6 kB / 0.877 GB, free: 5.492 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003252/1.03, allocations: 91.89 kB / 0.8771 GB, free: 5.402 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.001147/1.031, allocations: 405.6 kB / 0.8775 GB, free: 4.996 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004547/1.032, allocations: 154.9 kB / 0.8776 GB, free: 4.844 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01188/1.044, allocations: 3.482 MB / 0.881 GB, free: 1.348 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.189e-05/1.044, allocations: 20 kB / 0.881 GB, free: 1.328 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/1.044, allocations: 0 / 0.881 GB, free: 1.328 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-05/1.044, allocations: 11.95 kB / 0.8811 GB, free: 1.316 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01475/1.058, allocations: 5.759 MB / 0.8867 GB, free: 11.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/1.058, allocations: 0 / 0.8867 GB, free: 11.5 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003477/1.062, allocations: 0.5461 MB / 0.8872 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004585/1.062, allocations: 80.72 kB / 0.8873 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002365/1.063, allocations: 67.92 kB / 0.8874 GB, free: 10.81 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002137/1.065, allocations: 1.659 MB / 0.889 GB, free: 9.004 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.065, allocations: 3.969 kB / 0.889 GB, free: 9 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/1.075, allocations: 3.058 MB / 0.892 GB, free: 5.918 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/1.076, allocations: 0.511 MB / 0.8925 GB, free: 5.387 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003441/1.077, allocations: 47.88 kB / 0.8925 GB, free: 5.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002642/1.079, allocations: 247.7 kB / 0.8928 GB, free: 5.098 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003115/1.079, allocations: 125.8 kB / 0.8929 GB, free: 4.977 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002258/1.08, allocations: 79.92 kB / 0.8929 GB, free: 4.898 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001052/1.081, allocations: 0.6388 MB / 0.8936 GB, free: 4.25 MB / 0.6544 GB Notification: Performance of sort global known variables: time 8.1e-08/1.081, allocations: 0 / 0.8936 GB, free: 4.25 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001907/1.083, allocations: 0.6039 MB / 0.8942 GB, free: 3.645 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.002243/1.085, allocations: 0.6521 MB / 0.8948 GB, free: 3.172 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.009921/1.095, allocations: 2.862 MB / 0.8976 GB, free: 304 kB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/1.095, allocations: 0 / 0.8976 GB, free: 304 kB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.005156/1.1, allocations: 1.54 MB / 0.8991 GB, free: 14.75 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/1.102, allocations: 359.6 kB / 0.8994 GB, free: 14.41 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/1.112, allocations: 4.029 MB / 0.9034 GB, free: 10.35 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/1.113, allocations: 1.365 MB / 0.9047 GB, free: 8.949 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001629/1.115, allocations: 259.2 kB / 0.905 GB, free: 8.695 MB / 0.67 GB Notification: Performance of SimCode: time 7.51e-07/1.115, allocations: 0 / 0.905 GB, free: 8.695 MB / 0.67 GB Notification: Performance of Templates: time 0.06709/1.182, allocations: 39.05 MB / 0.9431 GB, free: 1.625 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