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.001421/0.001421, allocations: 104.6 kB / 16.27 MB, free: 5.863 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.001477/0.001477, allocations: 192.2 kB / 17.2 MB, free: 5.512 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.318/1.318, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8105/0.8105, allocations: 135.2 MB / 426.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 67.89 kB / 0.506 GB, free: 8.363 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.331, allocations: 80.92 MB / 0.5851 GB, free: 25.35 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.006215/0.3373, allocations: 6.052 MB / 0.591 GB, free: 20.45 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1656/0.5029, allocations: 151.4 MB / 0.7389 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001283/0.5042, allocations: 27.88 kB / 0.7389 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007577/0.505, allocations: 241.4 kB / 0.7391 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002225/0.5072, allocations: 0.6313 MB / 0.7397 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002825/0.5101, allocations: 1.272 MB / 0.741 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003107/0.5132, allocations: 2.396 MB / 0.7433 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002146/0.5153, allocations: 1.592 MB / 0.7449 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001591/0.5169, allocations: 1.043 MB / 0.7459 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00227/0.5192, allocations: 1.179 MB / 0.747 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0006332/0.5199, allocations: 300 kB / 0.7473 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001384/0.5213, allocations: 0.6441 MB / 0.748 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006986/0.522, allocations: 0.6465 MB / 0.7486 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.5233, allocations: 1.162 MB / 0.7497 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.3276/0.8508, allocations: 3.222 MB / 0.7529 GB, free: 9.414 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.8509, allocations: 0 / 0.7529 GB, free: 9.414 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.384e-06/0.8509, allocations: 3.656 kB / 0.7529 GB, free: 9.414 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.16e-05/0.851, allocations: 0 / 0.7529 GB, free: 9.414 MB / 0.5762 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.005495/0.8565, allocations: 2.586 MB / 0.7554 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.8565, allocations: 9.203 kB / 0.7554 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01491/0.8714, allocations: 2.09 MB / 0.7574 GB, free: 8.223 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002924/0.8744, allocations: 1.193 MB / 0.7586 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001894/0.8746, allocations: 166.4 kB / 0.7588 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005048/0.8751, allocations: 209.7 kB / 0.759 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009095/0.8842, allocations: 3.155 MB / 0.762 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.379e-05/0.8843, allocations: 0 / 0.762 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002733/0.8846, allocations: 91.69 kB / 0.7621 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.118e-05/0.8847, allocations: 53 kB / 0.7622 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01285/0.8975, allocations: 4.1 MB / 0.7662 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01431/0.9119, allocations: 7.015 MB / 0.773 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008043/0.92, allocations: 2.691 MB / 0.7757 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003796/0.9238, allocations: 1.429 MB / 0.7771 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006315/0.9244, allocations: 0.5037 MB / 0.7776 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004217/0.9287, allocations: 1.691 MB / 0.7792 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=195): time 3.797e-06/0.9287, allocations: 0 / 0.7792 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of matching and sorting (n=195): time 0.0135/0.9422, allocations: 4.205 MB / 0.7833 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.035e-05/0.9423, allocations: 199.9 kB / 0.7835 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/0.9436, allocations: 0.8595 MB / 0.7843 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001963/0.9438, allocations: 64.45 kB / 0.7844 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004945/0.9443, allocations: 0.6977 MB / 0.7851 GB, free: 4.691 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00049/0.9448, allocations: 0.6387 MB / 0.7857 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006416/0.9454, allocations: 362.5 kB / 0.7861 GB, free: 4.25 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.713e-05/0.9455, allocations: 301.1 kB / 0.7863 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003794/0.9493, allocations: 1.19 MB / 0.7875 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003899/0.9532, allocations: 1.358 MB / 0.7888 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007774/0.961, allocations: 2.494 MB / 0.7913 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.961, allocations: 0 / 0.7913 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.009276/0.9703, allocations: 2.956 MB / 0.7942 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.9703, allocations: 9.312 kB / 0.7942 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.9704, allocations: 6.969 kB / 0.7942 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005596/0.9709, allocations: 86.44 kB / 0.7943 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003455/0.9744, allocations: 0.5682 MB / 0.7948 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001771/0.9762, allocations: 1.637 MB / 0.7964 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00324/0.9794, allocations: 336.1 kB / 0.7967 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002941/0.9797, allocations: 93.62 kB / 0.7968 GB, free: 1.965 MB / 0.5762 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.001145/0.9809, allocations: 402.7 kB / 0.7972 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000587/0.9815, allocations: 151.4 kB / 0.7973 GB, free: 1.773 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01165/0.9931, allocations: 3.481 MB / 0.8007 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.041e-05/0.9932, allocations: 21.5 kB / 0.8008 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.9932, allocations: 0 / 0.8008 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.299e-05/0.9932, allocations: 21.03 kB / 0.8008 GB, free: 0.875 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01411/1.007, allocations: 5.75 MB / 0.8064 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/1.007, allocations: 0 / 0.8064 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0035/1.011, allocations: 0.5415 MB / 0.8069 GB, free: 14.31 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004708/1.011, allocations: 82.41 kB / 0.807 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000327/1.012, allocations: 67.52 kB / 0.8071 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002203/1.014, allocations: 1.653 MB / 0.8087 GB, free: 12.63 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/1.014, allocations: 3 kB / 0.8087 GB, free: 12.63 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01114/1.025, allocations: 3.049 MB / 0.8117 GB, free: 9.637 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001415/1.027, allocations: 0.5063 MB / 0.8122 GB, free: 9.109 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00043/1.027, allocations: 51.78 kB / 0.8122 GB, free: 9.059 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002855/1.03, allocations: 251 kB / 0.8124 GB, free: 8.816 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003166/1.03, allocations: 123.6 kB / 0.8126 GB, free: 8.699 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002229/1.03, allocations: 91.91 kB / 0.8127 GB, free: 8.609 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001118/1.032, allocations: 0.6388 MB / 0.8133 GB, free: 7.961 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/1.032, allocations: 0 / 0.8133 GB, free: 7.961 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002017/1.034, allocations: 0.5959 MB / 0.8139 GB, free: 7.363 MB / 0.5919 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.002218/1.036, allocations: 0.6351 MB / 0.8145 GB, free: 6.98 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01388/1.05, allocations: 3.449 MB / 0.8178 GB, free: 3.562 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/1.05, allocations: 3.672 kB / 0.8179 GB, free: 3.562 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005356/1.055, allocations: 1.662 MB / 0.8195 GB, free: 1.93 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/1.057, allocations: 353.3 kB / 0.8198 GB, free: 1.609 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01037/1.068, allocations: 4.005 MB / 0.8237 GB, free: 13.58 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/1.069, allocations: 1.38 MB / 0.8251 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001669/1.07, allocations: 263.2 kB / 0.8253 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of SimCode: time 1.433e-06/1.07, allocations: 0 / 0.8253 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of Templates: time 0.05788/1.128, allocations: 38.78 MB / 0.8632 GB, free: 5.203 MB / 0.6387 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