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.000897/0.0008969, allocations: 92.62 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 177.6 kB / 16.92 MB, free: 6.652 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.261/1.261, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8957/0.8957, allocations: 135.3 MB / 427.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002922, allocations: 8 kB / 0.5082 GB, free: 4.73 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1338, allocations: 82.29 MB / 0.5886 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.005891/0.1398, allocations: 5.543 MB / 0.594 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.3643/0.5041, allocations: 147.5 MB / 0.7381 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009895/0.5051, allocations: 23.28 kB / 0.7381 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006621/0.5058, allocations: 181.9 kB / 0.7383 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00205/0.5079, allocations: 0.5124 MB / 0.7388 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002564/0.5105, allocations: 1.14 MB / 0.7399 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002697/0.5132, allocations: 2.229 MB / 0.7421 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001708/0.5149, allocations: 1.493 MB / 0.7435 GB, free: 9.27 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001009/0.5159, allocations: 0.691 MB / 0.7442 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008882/0.5168, allocations: 0.8221 MB / 0.745 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.517, allocations: 60.36 kB / 0.7451 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008949/0.5179, allocations: 422.1 kB / 0.7455 GB, free: 8.473 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003194/0.5182, allocations: 367.1 kB / 0.7458 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0007023/0.5189, allocations: 0.8746 MB / 0.7467 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001945/0.5209, allocations: 2.389 MB / 0.749 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.5209, allocations: 3.344 kB / 0.749 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.533e-06/0.5209, allocations: 4 kB / 0.749 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.744e-05/0.5209, allocations: 0 / 0.749 GB, free: 5.863 MB / 0.5606 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.004091/0.525, allocations: 2.099 MB / 0.7511 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.525, allocations: 8.719 kB / 0.7511 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01544/0.5405, allocations: 2.281 MB / 0.7533 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002033/0.5426, allocations: 1.193 MB / 0.7545 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.5427, allocations: 160.4 kB / 0.7546 GB, free: 1.816 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003651/0.5431, allocations: 215.9 kB / 0.7548 GB, free: 1.605 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008365/0.5514, allocations: 3.232 MB / 0.758 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.304e-05/0.5515, allocations: 0 / 0.758 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002589/0.5517, allocations: 88 kB / 0.7581 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-05/0.5518, allocations: 52 kB / 0.7581 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01265/0.5645, allocations: 4.247 MB / 0.7622 GB, free: 9.871 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01527/0.5798, allocations: 7.042 MB / 0.7691 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008545/0.5883, allocations: 2.708 MB / 0.7718 GB, free: 56 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004288/0.5926, allocations: 1.443 MB / 0.7732 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007089/0.5934, allocations: 0.5035 MB / 0.7737 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004808/0.5982, allocations: 1.707 MB / 0.7753 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=195): time 3.998e-06/0.5982, allocations: 0 / 0.7753 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of matching and sorting (n=195): time 0.0143/0.6125, allocations: 4.243 MB / 0.7795 GB, free: 8.02 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.6127, allocations: 197.9 kB / 0.7797 GB, free: 7.781 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/0.6139, allocations: 0.858 MB / 0.7805 GB, free: 6.898 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0002247/0.6141, allocations: 61.7 kB / 0.7806 GB, free: 6.832 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000647/0.6148, allocations: 0.7111 MB / 0.7813 GB, free: 6.109 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000598/0.6154, allocations: 0.6314 MB / 0.7819 GB, free: 5.469 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000279/0.6157, allocations: 129.6 kB / 0.782 GB, free: 5.336 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.914e-05/0.6158, allocations: 305.1 kB / 0.7823 GB, free: 5.035 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004153/0.62, allocations: 1.202 MB / 0.7835 GB, free: 3.832 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004334/0.6243, allocations: 1.371 MB / 0.7848 GB, free: 2.441 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00824/0.6326, allocations: 2.528 MB / 0.7873 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.6326, allocations: 3.938 kB / 0.7873 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.009809/0.6424, allocations: 2.976 MB / 0.7902 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.6425, allocations: 8 kB / 0.7902 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.6425, allocations: 0 / 0.7902 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005863/0.6431, allocations: 92.77 kB / 0.7903 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003531/0.6466, allocations: 0.5773 MB / 0.7908 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002042/0.6487, allocations: 1.523 MB / 0.7923 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002958/0.6516, allocations: 347.5 kB / 0.7927 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002547/0.6519, allocations: 95.89 kB / 0.7928 GB, free: 10.13 MB / 0.6075 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.0009481/0.6529, allocations: 412.8 kB / 0.7931 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003436/0.6532, allocations: 142.2 kB / 0.7933 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/0.6643, allocations: 3.51 MB / 0.7967 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.732e-05/0.6643, allocations: 20 kB / 0.7967 GB, free: 6.035 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.6643, allocations: 4 kB / 0.7967 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.066e-05/0.6644, allocations: 11.95 kB / 0.7967 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01327/0.6776, allocations: 5.773 MB / 0.8024 GB, free: 192 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.6777, allocations: 4 kB / 0.8024 GB, free: 188 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003394/0.6811, allocations: 0.55 MB / 0.8029 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005401/0.6816, allocations: 96.64 kB / 0.803 GB, free: 15.53 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002185/0.6819, allocations: 67.92 kB / 0.8031 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001818/0.6837, allocations: 1.546 MB / 0.8046 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.6837, allocations: 0 / 0.8046 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009711/0.6934, allocations: 3.082 MB / 0.8076 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.6945, allocations: 0.5296 MB / 0.8081 GB, free: 10.13 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00037/0.6949, allocations: 36 kB / 0.8082 GB, free: 10.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002847/0.6977, allocations: 271.6 kB / 0.8084 GB, free: 9.836 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002813/0.698, allocations: 129.8 kB / 0.8085 GB, free: 9.711 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002251/0.6983, allocations: 83.92 kB / 0.8086 GB, free: 9.629 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001021/0.6993, allocations: 0.6465 MB / 0.8092 GB, free: 8.973 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6993, allocations: 0 / 0.8092 GB, free: 8.973 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001748/0.7011, allocations: 0.5958 MB / 0.8098 GB, free: 8.375 MB / 0.6231 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.00154/0.7026, allocations: 0.6478 MB / 0.8105 GB, free: 7.941 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.009448/0.7121, allocations: 3.007 MB / 0.8134 GB, free: 4.922 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.7121, allocations: 8.062 kB / 0.8134 GB, free: 4.914 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.004946/0.7171, allocations: 1.665 MB / 0.815 GB, free: 3.238 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002262/0.7193, allocations: 323.5 kB / 0.8153 GB, free: 2.926 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.7298, allocations: 5.009 MB / 0.8202 GB, free: 13.88 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001044/0.7309, allocations: 1.365 MB / 0.8216 GB, free: 12.48 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001766/0.7326, allocations: 271.1 kB / 0.8218 GB, free: 12.21 MB / 0.6387 GB Notification: Performance of SimCode: time 7.42e-07/0.7326, allocations: 0 / 0.8218 GB, free: 12.21 MB / 0.6387 GB Notification: Performance of Templates: time 0.05268/0.7853, allocations: 38.52 MB / 0.8594 GB, free: 5.707 MB / 0.67 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++14 -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