Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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.BaseClasses.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 109 kB / 16.41 MB, free: 6.449 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.001619/0.001619, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.416/1.416, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8873/0.8873, allocations: 135.2 MB / 426.4 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 71.2 kB / 0.5863 GB, free: 21.76 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1716, allocations: 80.92 MB / 0.6653 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.006855/0.1785, allocations: 4.18 MB / 0.6694 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6345/0.813, allocations: 151.1 MB / 0.817 GB, free: 8.066 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001001/0.814, allocations: 16.31 kB / 0.817 GB, free: 8.062 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.000654/0.8146, allocations: 175.6 kB / 0.8171 GB, free: 7.969 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00179/0.8164, allocations: 496.6 kB / 0.8176 GB, free: 7.773 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002109/0.8185, allocations: 0.8006 MB / 0.8184 GB, free: 7.504 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001411/0.8199, allocations: 1.212 MB / 0.8196 GB, free: 7.172 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007683/0.8207, allocations: 467.7 kB / 0.82 GB, free: 7.016 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006056/0.8213, allocations: 450.7 kB / 0.8205 GB, free: 6.871 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005304/0.8218, allocations: 457.2 kB / 0.8209 GB, free: 6.664 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.822, allocations: 105.4 kB / 0.821 GB, free: 6.664 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009294/0.8229, allocations: 484.8 kB / 0.8215 GB, free: 6.562 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002846/0.8232, allocations: 265.7 kB / 0.8217 GB, free: 6.359 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005084/0.8237, allocations: 0.5132 MB / 0.8222 GB, free: 5.965 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002042/0.8257, allocations: 1.511 MB / 0.8237 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.8257, allocations: 0 / 0.8237 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.873e-06/0.8257, allocations: 0 / 0.8237 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.497e-05/0.8257, allocations: 0 / 0.8237 GB, free: 4.871 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.002516/0.8283, allocations: 1.37 MB / 0.825 GB, free: 3.766 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.8283, allocations: 11.2 kB / 0.825 GB, free: 3.766 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009442/0.8292, allocations: 191.1 kB / 0.8252 GB, free: 3.668 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.8305, allocations: 0.7384 MB / 0.8259 GB, free: 3.059 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.168e-05/0.8306, allocations: 59.44 kB / 0.826 GB, free: 3.031 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.8307, allocations: 81.03 kB / 0.8261 GB, free: 3.004 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.8323, allocations: 0.8876 MB / 0.8269 GB, free: 2.43 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.8323, allocations: 0 / 0.8269 GB, free: 2.43 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.02e-05/0.8324, allocations: 36 kB / 0.827 GB, free: 2.402 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.913e-05/0.8324, allocations: 19.84 kB / 0.827 GB, free: 2.402 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001825/0.8342, allocations: 1.102 MB / 0.8281 GB, free: 1.875 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00413/0.8383, allocations: 2.466 MB / 0.8305 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.8397, allocations: 0.6864 MB / 0.8312 GB, free: 15.63 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005156/0.8403, allocations: 265.4 kB / 0.8314 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.777e-05/0.8403, allocations: 44.16 kB / 0.8314 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008497/0.8412, allocations: 445 kB / 0.8319 GB, free: 15.18 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=76): time 2.535e-06/0.8412, allocations: 0 / 0.8319 GB, free: 15.18 MB / 0.6075 GB Notification: Performance of matching and sorting (n=76): time 0.003079/0.8443, allocations: 1.118 MB / 0.833 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001697/0.8444, allocations: 188.4 kB / 0.8331 GB, free: 14.35 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008549/0.8453, allocations: 0.6084 MB / 0.8337 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.481e-05/0.8454, allocations: 42.42 kB / 0.8338 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003621/0.8457, allocations: 386.7 kB / 0.8341 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002591/0.846, allocations: 268.6 kB / 0.8344 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002725/0.8463, allocations: 162.9 kB / 0.8346 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002378/0.8465, allocations: 378.2 kB / 0.8349 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005052/0.847, allocations: 248 kB / 0.8352 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006351/0.8476, allocations: 346.2 kB / 0.8355 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.8488, allocations: 0.591 MB / 0.8361 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.8488, allocations: 0 / 0.8361 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001947/0.8507, allocations: 0.8147 MB / 0.8369 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.8507, allocations: 4.75 kB / 0.8369 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.8507, allocations: 6.469 kB / 0.8369 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005878/0.8513, allocations: 80.5 kB / 0.8369 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006492/0.852, allocations: 156.4 kB / 0.8371 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002344/0.8543, allocations: 1.626 MB / 0.8387 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006529/0.855, allocations: 90.59 kB / 0.8388 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.617e-05/0.8551, allocations: 39.09 kB / 0.8388 GB, free: 10.1 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 (89): * Single equations (assignments): 88 * 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.0004472/0.8555, allocations: 259.4 kB / 0.8391 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001684/0.8557, allocations: 83.02 kB / 0.8391 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00236/0.858, allocations: 1.012 MB / 0.8401 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.858, allocations: 10.12 kB / 0.8401 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.858, allocations: 3.938 kB / 0.8401 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.858, allocations: 3.984 kB / 0.8401 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003427/0.8615, allocations: 1.887 MB / 0.842 GB, free: 8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.8615, allocations: 0 / 0.842 GB, free: 8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005503/0.862, allocations: 147.3 kB / 0.8421 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004145/0.8624, allocations: 74.56 kB / 0.8422 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.583e-05/0.8625, allocations: 23.89 kB / 0.8422 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002137/0.8646, allocations: 1.659 MB / 0.8438 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.8646, allocations: 3.938 kB / 0.8438 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001973/0.8666, allocations: 0.9334 MB / 0.8448 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003718/0.867, allocations: 265.8 kB / 0.845 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.8671, allocations: 14.78 kB / 0.845 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005508/0.8676, allocations: 53.17 kB / 0.8451 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.8678, allocations: 63.91 kB / 0.8451 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.629e-05/0.8679, allocations: 27.52 kB / 0.8452 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005894/0.8685, allocations: 449 kB / 0.8456 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of sort global known variables: time 7e-08/0.8685, allocations: 0 / 0.8456 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009182/0.8694, allocations: 296.9 kB / 0.8459 GB, free: 5.098 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.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 84 * 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.001926/0.8713, allocations: 0.5954 MB / 0.8464 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001721/0.873, allocations: 0.7668 MB / 0.8472 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.873, allocations: 2.656 kB / 0.8472 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009107/0.8739, allocations: 469.6 kB / 0.8476 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/0.8752, allocations: 299.3 kB / 0.8479 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004439/0.8797, allocations: 1.743 MB / 0.8496 GB, free: 1.945 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008463/0.8805, allocations: 1.007 MB / 0.8506 GB, free: 0.9102 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003642/0.8809, allocations: 111.4 kB / 0.8507 GB, free: 0.8047 MB / 0.6075 GB Notification: Performance of SimCode: time 1.342e-06/0.8809, allocations: 0 / 0.8507 GB, free: 0.8047 MB / 0.6075 GB Notification: Performance of Templates: time 0.02912/0.91, allocations: 17.57 MB / 0.8679 GB, free: 15.24 MB / 0.6387 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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.BaseClasses.Examples.IncidenceAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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.BaseClasses.Examples.IncidenceAngleCalcHelperMain.o] Error 1