Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 108.6 kB / 16.41 MB, free: 6.512 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.001298/0.001298, allocations: 187 kB / 17.34 MB, free: 5.742 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.209/1.209, 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-master/package.mo): time 0.7132/0.7132, allocations: 135.1 MB / 426.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 63.17 kB / 0.5862 GB, free: 21.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1273, allocations: 80.93 MB / 0.6653 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.005887/0.1332, allocations: 4.915 MB / 0.6701 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4416/0.5748, allocations: 150.9 MB / 0.8175 GB, free: 7.848 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006693/0.5755, allocations: 17.81 kB / 0.8175 GB, free: 7.844 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005101/0.5761, allocations: 196.4 kB / 0.8177 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00141/0.5775, allocations: 0.5941 MB / 0.8182 GB, free: 7.434 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001648/0.5792, allocations: 0.8894 MB / 0.8191 GB, free: 7.082 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001201/0.5804, allocations: 1.592 MB / 0.8207 GB, free: 6.641 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.5814, allocations: 1.063 MB / 0.8217 GB, free: 6.207 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006973/0.5821, allocations: 0.697 MB / 0.8224 GB, free: 5.758 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006615/0.5828, allocations: 0.733 MB / 0.8231 GB, free: 5.203 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.5829, allocations: 177.1 kB / 0.8233 GB, free: 5.203 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007907/0.5837, allocations: 0.532 MB / 0.8238 GB, free: 5.02 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002912/0.584, allocations: 419.7 kB / 0.8242 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000528/0.5846, allocations: 0.7754 MB / 0.8249 GB, free: 4.082 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001821/0.5864, allocations: 2.184 MB / 0.8271 GB, free: 2.449 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.5864, allocations: 0 / 0.8271 GB, free: 2.449 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.232e-06/0.5864, allocations: 0 / 0.8271 GB, free: 2.449 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.598e-05/0.5865, allocations: 2.156 kB / 0.8271 GB, free: 2.449 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: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.002541/0.589, allocations: 1.784 MB / 0.8288 GB, free: 1.07 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.589, allocations: 9.938 kB / 0.8288 GB, free: 1.07 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008626/0.5899, allocations: 238.7 kB / 0.8291 GB, free: 0.9531 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.591, allocations: 0.9041 MB / 0.8299 GB, free: 224 kB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.166e-05/0.5911, allocations: 103.1 kB / 0.83 GB, free: 176 kB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001411/0.5913, allocations: 137.2 kB / 0.8302 GB, free: 132 kB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002025/0.5933, allocations: 1.427 MB / 0.8316 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.5933, allocations: 3.125 kB / 0.8316 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.5934, allocations: 64.64 kB / 0.8316 GB, free: 15.18 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.398e-05/0.5935, allocations: 33.06 kB / 0.8317 GB, free: 15.18 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002078/0.5955, allocations: 1.508 MB / 0.8331 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005064/0.6006, allocations: 3.718 MB / 0.8368 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001421/0.6021, allocations: 0.9657 MB / 0.8377 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005793/0.6027, allocations: 396.2 kB / 0.8381 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.292e-05/0.6028, allocations: 49.16 kB / 0.8381 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008977/0.6037, allocations: 0.5821 MB / 0.8387 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=104): time 2.485e-06/0.6037, allocations: 0 / 0.8387 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of matching and sorting (n=104): time 0.00318/0.6069, allocations: 1.471 MB / 0.8401 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.161e-05/0.607, allocations: 199.8 kB / 0.8403 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008229/0.6078, allocations: 0.7585 MB / 0.8411 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.109e-05/0.6079, allocations: 46.98 kB / 0.8411 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003633/0.6082, allocations: 0.5514 MB / 0.8416 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.6085, allocations: 349.8 kB / 0.842 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002807/0.6088, allocations: 213.9 kB / 0.8422 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.6089, allocations: 348.6 kB / 0.8425 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005902/0.6095, allocations: 362.4 kB / 0.8429 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006895/0.6102, allocations: 475.3 kB / 0.8433 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.6115, allocations: 0.8247 MB / 0.8441 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.6115, allocations: 6.094 kB / 0.8441 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002103/0.6136, allocations: 1.117 MB / 0.8452 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.6136, allocations: 5.25 kB / 0.8452 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.6137, allocations: 3.875 kB / 0.8452 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005261/0.6142, allocations: 86.02 kB / 0.8453 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008617/0.6151, allocations: 221.5 kB / 0.8455 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/0.617, allocations: 1.646 MB / 0.8471 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007647/0.6178, allocations: 111 kB / 0.8472 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.112e-05/0.6179, allocations: 43.97 kB / 0.8473 GB, free: 4.227 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 (125): * Single equations (assignments): 124 * 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.0005065/0.6184, allocations: 318.9 kB / 0.8476 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.6186, allocations: 102.7 kB / 0.8477 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002764/0.6213, allocations: 1.383 MB / 0.849 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.6214, allocations: 12 kB / 0.849 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.6214, allocations: 3.938 kB / 0.849 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.6214, allocations: 7.984 kB / 0.8491 GB, free: 2.391 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003725/0.6251, allocations: 2.564 MB / 0.8516 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.6251, allocations: 3.938 kB / 0.8516 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007313/0.6259, allocations: 195.5 kB / 0.8517 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004052/0.6263, allocations: 72.8 kB / 0.8518 GB, free: 15.49 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.184e-05/0.6264, allocations: 31.97 kB / 0.8518 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0017/0.6281, allocations: 1.674 MB / 0.8535 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.6281, allocations: 4 kB / 0.8535 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/0.6301, allocations: 1.177 MB / 0.8546 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003604/0.6305, allocations: 315.4 kB / 0.8549 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.6306, allocations: 31.84 kB / 0.855 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000627/0.6313, allocations: 57.5 kB / 0.855 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.6314, allocations: 76.89 kB / 0.8551 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-05/0.6315, allocations: 39.97 kB / 0.8551 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006468/0.6322, allocations: 0.5771 MB / 0.8557 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6322, allocations: 0 / 0.8557 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0009059/0.6331, allocations: 406.6 kB / 0.8561 GB, free: 10.95 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 (115): * Single equations (assignments): 112 * 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.001263/0.6343, allocations: 0.6014 MB / 0.8567 GB, free: 10.53 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001937/0.6363, allocations: 1.03 MB / 0.8577 GB, free: 9.48 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.6363, allocations: 0 / 0.8577 GB, free: 9.48 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000928/0.6372, allocations: 0.6134 MB / 0.8583 GB, free: 8.859 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.6384, allocations: 307.7 kB / 0.8586 GB, free: 8.574 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004098/0.6425, allocations: 2.362 MB / 0.8609 GB, free: 6.176 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.6431, allocations: 1.169 MB / 0.862 GB, free: 4.977 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000385/0.6435, allocations: 147.3 kB / 0.8622 GB, free: 4.836 MB / 0.6231 GB Notification: Performance of SimCode: time 3.3e-07/0.6435, allocations: 4 kB / 0.8622 GB, free: 4.832 MB / 0.6231 GB Notification: Performance of Templates: time 0.02524/0.6688, allocations: 23.88 MB / 0.8855 GB, free: 12.98 MB / 0.6544 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleFunctions.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.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.o] Error 1