Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001144/0.001144, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001115/0.001115, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8174/0.8174, allocations: 132.2 MB / 423.4 MB, free: 6.613 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 62.8 kB / 0.582 GB, free: 23.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1556, allocations: 80.21 MB / 0.6603 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.008292/0.1639, allocations: 6.059 MB / 0.6662 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5921/0.756, allocations: 151.4 MB / 0.8141 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001678/0.7577, allocations: 24.88 kB / 0.8141 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.759, allocations: 243 kB / 0.8144 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002928/0.7619, allocations: 0.6257 MB / 0.815 GB, free: 11.18 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003573/0.7655, allocations: 1.289 MB / 0.8162 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003437/0.769, allocations: 2.422 MB / 0.8186 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002458/0.7714, allocations: 1.583 MB / 0.8202 GB, free: 9.332 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001821/0.7733, allocations: 1.064 MB / 0.8212 GB, free: 8.648 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001384/0.7747, allocations: 1.193 MB / 0.8224 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003511/0.775, allocations: 301 kB / 0.8226 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001236/0.7763, allocations: 0.6763 MB / 0.8233 GB, free: 7.543 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005077/0.7768, allocations: 0.6372 MB / 0.8239 GB, free: 7 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001028/0.7778, allocations: 1.167 MB / 0.8251 GB, free: 6.074 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003542/0.7814, allocations: 3.291 MB / 0.8283 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.7814, allocations: 0 / 0.8283 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.813e-06/0.7814, allocations: 1.906 kB / 0.8283 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.879e-05/0.7815, allocations: 0 / 0.8283 GB, free: 3.551 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: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.005371/0.7868, allocations: 2.583 MB / 0.8308 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.7869, allocations: 10.03 kB / 0.8308 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0153/0.8022, allocations: 2.097 MB / 0.8329 GB, free: 0.75 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002593/0.8048, allocations: 1.222 MB / 0.8341 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.805, allocations: 162 kB / 0.8342 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004348/0.8054, allocations: 208.7 kB / 0.8344 GB, free: 15.6 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00888/0.8143, allocations: 3.162 MB / 0.8375 GB, free: 13.69 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.218e-05/0.8144, allocations: 4 kB / 0.8375 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002797/0.8147, allocations: 92.19 kB / 0.8376 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.54e-05/0.8147, allocations: 52.38 kB / 0.8376 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01255/0.8273, allocations: 4.101 MB / 0.8416 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01618/0.8435, allocations: 6.912 MB / 0.8484 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008725/0.8522, allocations: 2.696 MB / 0.851 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004483/0.8568, allocations: 1.43 MB / 0.8524 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008366/0.8576, allocations: 0.4993 MB / 0.8529 GB, free: 212 kB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005621/0.8633, allocations: 1.7 MB / 0.8546 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=195): time 5.28e-06/0.8633, allocations: 0 / 0.8546 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of matching and sorting (n=195): time 0.01593/0.8793, allocations: 4.193 MB / 0.8587 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.8794, allocations: 209.4 kB / 0.8589 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001565/0.881, allocations: 0.858 MB / 0.8597 GB, free: 9.137 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0004023/0.8814, allocations: 57.7 kB / 0.8598 GB, free: 9.074 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008401/0.8823, allocations: 0.7072 MB / 0.8605 GB, free: 8.359 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007354/0.883, allocations: 0.6274 MB / 0.8611 GB, free: 7.723 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009072/0.8839, allocations: 371.1 kB / 0.8614 GB, free: 7.355 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.8841, allocations: 305.1 kB / 0.8617 GB, free: 7.055 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004436/0.8885, allocations: 1.191 MB / 0.8629 GB, free: 5.863 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004475/0.893, allocations: 1.355 MB / 0.8642 GB, free: 4.48 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008809/0.9018, allocations: 2.489 MB / 0.8666 GB, free: 1.973 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.9019, allocations: 0 / 0.8666 GB, free: 1.973 MB / 0.6231 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.01024/0.9121, allocations: 2.956 MB / 0.8695 GB, free: 15 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.9122, allocations: 13.66 kB / 0.8695 GB, free: 14.98 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.9122, allocations: 3.984 kB / 0.8695 GB, free: 14.98 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006308/0.9128, allocations: 84.72 kB / 0.8696 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003751/0.9166, allocations: 0.571 MB / 0.8702 GB, free: 14.32 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002384/0.919, allocations: 1.645 MB / 0.8718 GB, free: 12.54 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003339/0.9224, allocations: 330.7 kB / 0.8721 GB, free: 12.21 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003925/0.9228, allocations: 95.89 kB / 0.8722 GB, free: 12.12 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.001214/0.924, allocations: 410.2 kB / 0.8726 GB, free: 11.71 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005773/0.9246, allocations: 146.2 kB / 0.8727 GB, free: 11.57 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01194/0.9365, allocations: 3.478 MB / 0.8761 GB, free: 8.074 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.067e-05/0.9366, allocations: 24 kB / 0.8761 GB, free: 8.051 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.9366, allocations: 0 / 0.8761 GB, free: 8.051 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.738e-05/0.9366, allocations: 7.969 kB / 0.8761 GB, free: 8.043 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/0.9513, allocations: 5.762 MB / 0.8818 GB, free: 2.223 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.9514, allocations: 0 / 0.8818 GB, free: 2.223 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003626/0.955, allocations: 0.5422 MB / 0.8823 GB, free: 1.68 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000505/0.9555, allocations: 84.77 kB / 0.8824 GB, free: 1.594 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003532/0.9559, allocations: 63.92 kB / 0.8824 GB, free: 1.531 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/0.958, allocations: 1.654 MB / 0.8841 GB, free: 15.73 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.9581, allocations: 7.922 kB / 0.8841 GB, free: 15.72 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/0.9688, allocations: 3.051 MB / 0.887 GB, free: 12.65 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/0.9699, allocations: 0.5063 MB / 0.8875 GB, free: 12.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004844/0.9704, allocations: 43.83 kB / 0.8876 GB, free: 12.08 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002938/0.9733, allocations: 244.8 kB / 0.8878 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003173/0.9737, allocations: 133.8 kB / 0.8879 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002521/0.9739, allocations: 79.92 kB / 0.888 GB, free: 11.64 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001142/0.9751, allocations: 0.6427 MB / 0.8886 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.4e-07/0.9751, allocations: 3.938 kB / 0.8886 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001862/0.977, allocations: 0.5959 MB / 0.8892 GB, free: 10.38 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.001698/0.9787, allocations: 0.6494 MB / 0.8899 GB, free: 9.945 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.009924/0.9886, allocations: 2.987 MB / 0.8928 GB, free: 6.941 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.9887, allocations: 0 / 0.8928 GB, free: 6.941 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.005135/0.9938, allocations: 1.65 MB / 0.8944 GB, free: 5.285 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/0.9961, allocations: 360.2 kB / 0.8947 GB, free: 4.961 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/1.007, allocations: 3.971 MB / 0.8986 GB, free: 0.957 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/1.008, allocations: 1.365 MB / 0.8999 GB, free: 15.55 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/1.01, allocations: 267.1 kB / 0.9002 GB, free: 15.29 MB / 0.67 GB Notification: Performance of SimCode: time 9.32e-07/1.01, allocations: 0 / 0.9002 GB, free: 15.29 MB / 0.67 GB Notification: Performance of Templates: time 0.05628/1.066, allocations: 38.96 MB / 0.9382 GB, free: 8.324 MB / 0.7012 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.makefile make -j1 -f IDEAS_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/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.DiffusePerezCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffusePerezFunctions.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.DiffusePerezCalcHelperMain.o] Error 1