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.001395/0.001403, allocations: 108.2 kB / 16.41 MB, free: 6.504 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.002092/0.002092, 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8346/0.8346, allocations: 135.1 MB / 426.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001314, allocations: 62.14 kB / 0.5862 GB, free: 21.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1604/0.1617, allocations: 80.93 MB / 0.6653 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.006918/0.1687, allocations: 4.905 MB / 0.6701 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6342/0.8029, allocations: 150.9 MB / 0.8174 GB, free: 7.941 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009924/0.8039, allocations: 19.56 kB / 0.8175 GB, free: 7.938 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006222/0.8046, allocations: 205.7 kB / 0.8177 GB, free: 7.82 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001791/0.8064, allocations: 0.5975 MB / 0.8182 GB, free: 7.5 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002119/0.8085, allocations: 0.8835 MB / 0.8191 GB, free: 7.152 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001449/0.81, allocations: 1.595 MB / 0.8207 GB, free: 6.707 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001216/0.8112, allocations: 1.057 MB / 0.8217 GB, free: 6.234 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007733/0.812, allocations: 0.7014 MB / 0.8224 GB, free: 5.781 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007159/0.8127, allocations: 0.7332 MB / 0.8231 GB, free: 5.227 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001907/0.8129, allocations: 175.4 kB / 0.8233 GB, free: 5.227 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009788/0.8139, allocations: 0.5347 MB / 0.8238 GB, free: 5.047 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003609/0.8143, allocations: 415.8 kB / 0.8242 GB, free: 4.711 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000641/0.8149, allocations: 0.779 MB / 0.8249 GB, free: 4.109 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002159/0.8171, allocations: 2.183 MB / 0.8271 GB, free: 2.477 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.383e-06/0.8171, allocations: 6.281 kB / 0.8271 GB, free: 2.473 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.884e-06/0.8171, allocations: 0 / 0.8271 GB, free: 2.473 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.194e-05/0.8172, allocations: 0 / 0.8271 GB, free: 2.473 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.002884/0.8201, allocations: 1.773 MB / 0.8288 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.8201, allocations: 7.75 kB / 0.8288 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001019/0.8211, allocations: 235.4 kB / 0.829 GB, free: 0.9922 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.8224, allocations: 0.9078 MB / 0.8299 GB, free: 260 kB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.616e-05/0.8225, allocations: 104.4 kB / 0.83 GB, free: 212 kB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.8226, allocations: 139 kB / 0.8302 GB, free: 164 kB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/0.8248, allocations: 1.432 MB / 0.8316 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.737e-05/0.8249, allocations: 0 / 0.8316 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/0.825, allocations: 59.09 kB / 0.8316 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.897e-05/0.825, allocations: 35.06 kB / 0.8316 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002391/0.8274, allocations: 1.518 MB / 0.8331 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005351/0.8328, allocations: 3.72 MB / 0.8368 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.8344, allocations: 0.9574 MB / 0.8377 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006376/0.835, allocations: 401.4 kB / 0.8381 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.123e-05/0.8351, allocations: 45.42 kB / 0.8381 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009736/0.8361, allocations: 0.5793 MB / 0.8387 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=104): time 2.335e-06/0.8361, allocations: 0 / 0.8387 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=104): time 0.003485/0.8396, allocations: 1.473 MB / 0.8401 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.8397, allocations: 193.5 kB / 0.8403 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000885/0.8406, allocations: 0.7724 MB / 0.8411 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.857e-05/0.8407, allocations: 45.05 kB / 0.8411 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004092/0.8411, allocations: 0.5529 MB / 0.8417 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002515/0.8414, allocations: 341.6 kB / 0.842 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003026/0.8417, allocations: 222.8 kB / 0.8422 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.8419, allocations: 347.5 kB / 0.8425 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006798/0.8425, allocations: 358.5 kB / 0.8429 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008542/0.8434, allocations: 477.8 kB / 0.8433 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.8451, allocations: 0.8279 MB / 0.8441 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.8451, allocations: 3.938 kB / 0.8441 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002647/0.8478, allocations: 1.113 MB / 0.8452 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.8478, allocations: 8.969 kB / 0.8452 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.8479, allocations: 0 / 0.8452 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006333/0.8485, allocations: 86.62 kB / 0.8453 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009523/0.8495, allocations: 225.5 kB / 0.8455 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002163/0.8516, allocations: 1.644 MB / 0.8471 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008623/0.8525, allocations: 107 kB / 0.8472 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.612e-05/0.8526, allocations: 51.95 kB / 0.8473 GB, free: 4.309 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.0006472/0.8533, allocations: 315 kB / 0.8476 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001968/0.8535, allocations: 110.7 kB / 0.8477 GB, free: 3.883 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003056/0.8565, allocations: 1.376 MB / 0.849 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.8565, allocations: 12 kB / 0.849 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.8566, allocations: 7.688 kB / 0.8491 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.8566, allocations: 7.969 kB / 0.8491 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004276/0.8609, allocations: 2.56 MB / 0.8516 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.8609, allocations: 3.938 kB / 0.8516 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007538/0.8616, allocations: 183.8 kB / 0.8517 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004353/0.8621, allocations: 76.78 kB / 0.8518 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-05/0.8622, allocations: 27.98 kB / 0.8518 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001865/0.864, allocations: 1.686 MB / 0.8535 GB, free: 13.73 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.8641, allocations: 0 / 0.8535 GB, free: 13.73 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.8664, allocations: 1.173 MB / 0.8546 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005293/0.867, allocations: 323.4 kB / 0.8549 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001916/0.8672, allocations: 31.84 kB / 0.855 GB, free: 12.17 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007255/0.8679, allocations: 55.94 kB / 0.855 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.8681, allocations: 80.89 kB / 0.8551 GB, free: 12.04 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.962e-05/0.8682, allocations: 35.98 kB / 0.8551 GB, free: 12 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0009768/0.8692, allocations: 0.5693 MB / 0.8557 GB, free: 11.44 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8692, allocations: 0 / 0.8557 GB, free: 11.44 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001241/0.8704, allocations: 410.6 kB / 0.8561 GB, free: 11.04 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.001578/0.872, allocations: 0.6024 MB / 0.8567 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002412/0.8744, allocations: 1.038 MB / 0.8577 GB, free: 9.555 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.8744, allocations: 0 / 0.8577 GB, free: 9.555 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.8756, allocations: 0.6097 MB / 0.8583 GB, free: 8.938 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/0.8771, allocations: 298.7 kB / 0.8586 GB, free: 8.664 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005386/0.8825, allocations: 2.361 MB / 0.8609 GB, free: 6.27 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.8836, allocations: 1.173 MB / 0.862 GB, free: 5.066 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000525/0.8841, allocations: 143.4 kB / 0.8622 GB, free: 4.93 MB / 0.6231 GB Notification: Performance of SimCode: time 1.453e-06/0.8841, allocations: 0 / 0.8622 GB, free: 4.93 MB / 0.6231 GB Notification: Performance of Templates: time 0.03752/0.9216, allocations: 23.89 MB / 0.8855 GB, free: 13.06 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