Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001548/0.001548, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001778/0.001778, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.343/1.343, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.809/0.809, allocations: 132.2 MB / 423.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 67 kB / 0.582 GB, free: 23.94 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1576, allocations: 80.21 MB / 0.6603 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.006603/0.1642, allocations: 4.915 MB / 0.6651 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5592/0.7235, allocations: 150.9 MB / 0.8125 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000931/0.7245, allocations: 20.56 kB / 0.8125 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.000656/0.7252, allocations: 201.5 kB / 0.8127 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001759/0.727, allocations: 0.5946 MB / 0.8133 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001947/0.7289, allocations: 0.8895 MB / 0.8141 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001781/0.7307, allocations: 1.594 MB / 0.8157 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.732, allocations: 1.053 MB / 0.8167 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009754/0.733, allocations: 0.697 MB / 0.8174 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007597/0.7338, allocations: 0.7314 MB / 0.8181 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001896/0.734, allocations: 175.1 kB / 0.8183 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000924/0.7349, allocations: 0.5371 MB / 0.8188 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003296/0.7352, allocations: 417.5 kB / 0.8192 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006522/0.7359, allocations: 0.7826 MB / 0.82 GB, free: 9.395 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002313/0.7382, allocations: 2.182 MB / 0.8221 GB, free: 7.852 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.7382, allocations: 0 / 0.8221 GB, free: 7.852 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.013e-06/0.7382, allocations: 0 / 0.8221 GB, free: 7.852 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.878e-05/0.7383, allocations: 0 / 0.8221 GB, free: 7.852 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.00302/0.7413, allocations: 1.78 MB / 0.8238 GB, free: 6.48 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.7414, allocations: 10.98 kB / 0.8238 GB, free: 6.48 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.7424, allocations: 235.7 kB / 0.8241 GB, free: 6.367 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001297/0.7437, allocations: 0.9021 MB / 0.825 GB, free: 5.645 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.585e-05/0.7438, allocations: 108.7 kB / 0.8251 GB, free: 5.594 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.7439, allocations: 138.7 kB / 0.8252 GB, free: 5.547 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002316/0.7463, allocations: 1.426 MB / 0.8266 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.7463, allocations: 2.562 kB / 0.8266 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.7464, allocations: 58.97 kB / 0.8266 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.284e-05/0.7464, allocations: 36.38 kB / 0.8267 GB, free: 4.609 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002291/0.7487, allocations: 1.515 MB / 0.8282 GB, free: 3.879 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005819/0.7546, allocations: 3.725 MB / 0.8318 GB, free: 1.109 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.7562, allocations: 0.9614 MB / 0.8327 GB, free: 0.6367 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006339/0.7568, allocations: 395.2 kB / 0.8331 GB, free: 444 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 8.772e-05/0.7569, allocations: 50.97 kB / 0.8332 GB, free: 428 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009968/0.7579, allocations: 0.5767 MB / 0.8337 GB, free: 48 kB / 0.5919 GB Notification: Performance of pre-optimization done (n=104): time 2.735e-06/0.7579, allocations: 4 kB / 0.8337 GB, free: 44 kB / 0.5919 GB Notification: Performance of matching and sorting (n=104): time 0.00376/0.7617, allocations: 1.482 MB / 0.8352 GB, free: 15.28 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.7618, allocations: 190.5 kB / 0.8354 GB, free: 15.06 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009774/0.7628, allocations: 0.7636 MB / 0.8361 GB, free: 14.63 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.569e-05/0.7629, allocations: 42.64 kB / 0.8361 GB, free: 14.59 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004619/0.7634, allocations: 0.562 MB / 0.8367 GB, free: 14.09 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002939/0.7637, allocations: 343.6 kB / 0.837 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000315/0.764, allocations: 216.9 kB / 0.8372 GB, free: 13.67 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.7642, allocations: 347.4 kB / 0.8376 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006623/0.7649, allocations: 366.6 kB / 0.8379 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007712/0.7656, allocations: 467.6 kB / 0.8383 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.7671, allocations: 0.8349 MB / 0.8392 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.7671, allocations: 3.75 kB / 0.8392 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002386/0.7695, allocations: 1.109 MB / 0.8403 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.016e-05/0.7696, allocations: 9.047 kB / 0.8403 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.7696, allocations: 0 / 0.8403 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006481/0.7702, allocations: 89.94 kB / 0.8403 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009725/0.7712, allocations: 225.7 kB / 0.8406 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002454/0.7737, allocations: 1.636 MB / 0.8422 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009518/0.7746, allocations: 119.2 kB / 0.8423 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.908e-05/0.7747, allocations: 50.7 kB / 0.8423 GB, free: 10.05 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.0006538/0.7754, allocations: 320.3 kB / 0.8426 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.7756, allocations: 102.1 kB / 0.8427 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002987/0.7786, allocations: 1.38 MB / 0.8441 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.7786, allocations: 12 kB / 0.8441 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.7786, allocations: 3.938 kB / 0.8441 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.7787, allocations: 7.969 kB / 0.8441 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004228/0.7829, allocations: 2.557 MB / 0.8466 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.7829, allocations: 3.984 kB / 0.8466 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007893/0.7837, allocations: 187.8 kB / 0.8468 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004451/0.7842, allocations: 80.72 kB / 0.8468 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.739e-05/0.7842, allocations: 23.98 kB / 0.8469 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001975/0.7862, allocations: 1.679 MB / 0.8485 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.7862, allocations: 144 / 0.8485 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002371/0.7886, allocations: 1.173 MB / 0.8497 GB, free: 3.035 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004862/0.7891, allocations: 323.4 kB / 0.85 GB, free: 2.699 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001616/0.7893, allocations: 27.94 kB / 0.85 GB, free: 2.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007067/0.79, allocations: 57.36 kB / 0.85 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.7902, allocations: 76.88 kB / 0.8501 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-05/0.7903, allocations: 39.98 kB / 0.8502 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007805/0.791, allocations: 0.5693 MB / 0.8507 GB, free: 1.941 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7911, allocations: 0 / 0.8507 GB, free: 1.941 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001092/0.7922, allocations: 410.6 kB / 0.8511 GB, free: 1.539 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 (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.001387/0.7936, allocations: 0.5974 MB / 0.8517 GB, free: 1.172 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002131/0.7957, allocations: 1.042 MB / 0.8527 GB, free: 120 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.7957, allocations: 0 / 0.8527 GB, free: 120 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.7968, allocations: 0.6096 MB / 0.8533 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.7982, allocations: 320.9 kB / 0.8536 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004966/0.8032, allocations: 2.361 MB / 0.8559 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007622/0.804, allocations: 1.165 MB / 0.8571 GB, free: 11.62 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000481/0.8045, allocations: 151.3 kB / 0.8572 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of SimCode: time 1.001e-06/0.8045, allocations: 0 / 0.8572 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of Templates: time 0.03197/0.8365, allocations: 23.87 MB / 0.8805 GB, free: 3.633 MB / 0.6387 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_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/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.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleFunctions.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.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.o] Error 1