Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 111 kB / 16.38 MB, free: 6.469 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.001299/0.001299, allocations: 190.7 kB / 17.31 MB, free: 5.805 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.372/1.372, 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/package.mo): time 0.8333/0.8333, allocations: 132.2 MB / 423.4 MB, free: 6.629 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 70.08 kB / 0.5819 GB, free: 23.85 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1442, allocations: 80.2 MB / 0.6603 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.006441/0.1507, allocations: 4.51 MB / 0.6647 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5035/0.6542, allocations: 150.6 MB / 0.8117 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007184/0.655, allocations: 20.34 kB / 0.8118 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0004945/0.6555, allocations: 188.7 kB / 0.8119 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001456/0.657, allocations: 0.4936 MB / 0.8124 GB, free: 11.51 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001706/0.6587, allocations: 0.8163 MB / 0.8132 GB, free: 11.44 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001142/0.6599, allocations: 1.329 MB / 0.8145 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001058/0.6609, allocations: 0.9153 MB / 0.8154 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006285/0.6616, allocations: 0.5324 MB / 0.8159 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005344/0.6621, allocations: 0.5803 MB / 0.8165 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.6623, allocations: 141.1 kB / 0.8166 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008444/0.6631, allocations: 0.4961 MB / 0.8171 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002381/0.6634, allocations: 351.9 kB / 0.8174 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005157/0.6639, allocations: 0.6423 MB / 0.8181 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001788/0.6657, allocations: 1.831 MB / 0.8199 GB, free: 9.094 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.6657, allocations: 0 / 0.8199 GB, free: 9.094 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.373e-06/0.6657, allocations: 6.25 kB / 0.8199 GB, free: 9.09 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.572e-05/0.6657, allocations: 0 / 0.8199 GB, free: 9.09 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002406/0.6681, allocations: 1.582 MB / 0.8214 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.6682, allocations: 10.72 kB / 0.8214 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000952/0.6691, allocations: 214.7 kB / 0.8216 GB, free: 7.754 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.6704, allocations: 0.826 MB / 0.8224 GB, free: 7.094 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.956e-05/0.6704, allocations: 89.7 kB / 0.8225 GB, free: 7.051 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/0.6706, allocations: 112.6 kB / 0.8226 GB, free: 7.012 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.6724, allocations: 1.141 MB / 0.8237 GB, free: 6.277 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.6724, allocations: 0 / 0.8237 GB, free: 6.277 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.339e-05/0.6725, allocations: 48.28 kB / 0.8238 GB, free: 6.242 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.996e-05/0.6725, allocations: 27.31 kB / 0.8238 GB, free: 6.242 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001899/0.6745, allocations: 1.235 MB / 0.825 GB, free: 5.648 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004384/0.6788, allocations: 2.967 MB / 0.8279 GB, free: 3.438 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.6802, allocations: 0.7825 MB / 0.8287 GB, free: 3.051 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004735/0.6807, allocations: 294.9 kB / 0.829 GB, free: 2.902 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/0.6808, allocations: 25.47 kB / 0.829 GB, free: 2.895 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007231/0.6816, allocations: 456.9 kB / 0.8294 GB, free: 2.598 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.484e-06/0.6816, allocations: 1.688 kB / 0.8294 GB, free: 2.598 MB / 0.5919 GB Notification: Performance of matching and sorting (n=78): time 0.002969/0.6846, allocations: 1.139 MB / 0.8305 GB, free: 1.98 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.618e-05/0.6847, allocations: 196.5 kB / 0.8307 GB, free: 1.754 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008487/0.6855, allocations: 0.6878 MB / 0.8314 GB, free: 1.363 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.182e-05/0.6856, allocations: 40.52 kB / 0.8314 GB, free: 1.32 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003498/0.686, allocations: 0.4983 MB / 0.8319 GB, free: 0.875 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002129/0.6862, allocations: 251.2 kB / 0.8322 GB, free: 0.6641 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000255/0.6864, allocations: 163 kB / 0.8323 GB, free: 0.5664 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.6866, allocations: 390.5 kB / 0.8327 GB, free: 200 kB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004911/0.6871, allocations: 261.9 kB / 0.8329 GB, free: 64 kB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006296/0.6878, allocations: 349.1 kB / 0.8333 GB, free: 15.87 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.6888, allocations: 0.5995 MB / 0.8339 GB, free: 15.54 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.6888, allocations: 3.984 kB / 0.8339 GB, free: 15.54 MB / 0.6075 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001836/0.6907, allocations: 0.8412 MB / 0.8347 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.6907, allocations: 4.875 kB / 0.8347 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.6907, allocations: 1.812 kB / 0.8347 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005946/0.6913, allocations: 83.89 kB / 0.8348 GB, free: 15.06 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006526/0.692, allocations: 160.4 kB / 0.8349 GB, free: 15.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/0.6941, allocations: 1.633 MB / 0.8365 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007179/0.6948, allocations: 93.77 kB / 0.8366 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.975e-05/0.6949, allocations: 30.89 kB / 0.8366 GB, free: 13.35 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (92): * Single equations (assignments): 91 * 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.0004357/0.6953, allocations: 290.1 kB / 0.8369 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/0.6955, allocations: 97.98 kB / 0.837 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002296/0.6978, allocations: 1.02 MB / 0.838 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.6978, allocations: 7.562 kB / 0.838 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.6978, allocations: 2.734 kB / 0.838 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.677e-06/0.6979, allocations: 7.922 kB / 0.838 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.699, allocations: 0.9762 MB / 0.839 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.699, allocations: 0 / 0.839 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000624/0.6996, allocations: 147.2 kB / 0.8391 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004466/0.7001, allocations: 74.84 kB / 0.8392 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.667e-05/0.7001, allocations: 22.92 kB / 0.8392 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001902/0.702, allocations: 1.666 MB / 0.8408 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.702, allocations: 0 / 0.8408 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00182/0.7039, allocations: 0.8812 MB / 0.8417 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003121/0.7042, allocations: 270.8 kB / 0.8419 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.7043, allocations: 18.03 kB / 0.842 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006037/0.7049, allocations: 56.83 kB / 0.842 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.705, allocations: 66.88 kB / 0.8421 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.83e-05/0.7051, allocations: 32.36 kB / 0.8421 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006109/0.7057, allocations: 499.8 kB / 0.8426 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7057, allocations: 0 / 0.8426 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008336/0.7066, allocations: 335.1 kB / 0.8429 GB, free: 8.883 MB / 0.6075 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.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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.001267/0.7078, allocations: 0.5991 MB / 0.8435 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001586/0.7094, allocations: 0.8049 MB / 0.8443 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.7095, allocations: 4 kB / 0.8443 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008656/0.7103, allocations: 0.5002 MB / 0.8448 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.7115, allocations: 301.8 kB / 0.8451 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004127/0.7157, allocations: 1.993 MB / 0.847 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006148/0.7163, allocations: 1.086 MB / 0.8481 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.7167, allocations: 115.3 kB / 0.8482 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of SimCode: time 4.31e-07/0.7167, allocations: 0 / 0.8482 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of Templates: time 0.0251/0.7418, allocations: 20.08 MB / 0.8678 GB, free: 136 kB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.o] Error 1