Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.BaseClasses.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001344/0.001344, allocations: 107.5 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.001465/0.001465, 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.35/1.35, 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/package.mo): time 0.7658/0.7658, allocations: 132.2 MB / 423.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 63.03 kB / 0.582 GB, free: 23.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1632/0.1644, allocations: 80.21 MB / 0.6603 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.005953/0.1704, allocations: 4.169 MB / 0.6644 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5619/0.7323, allocations: 150.6 MB / 0.8115 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009315/0.7333, allocations: 17.31 kB / 0.8115 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006048/0.7339, allocations: 170.6 kB / 0.8117 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0015/0.7355, allocations: 498.4 kB / 0.8122 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002046/0.7375, allocations: 0.7932 MB / 0.8129 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001394/0.7389, allocations: 1.218 MB / 0.8141 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000964/0.7399, allocations: 0.6245 MB / 0.8147 GB, free: 11.18 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007113/0.7406, allocations: 446.1 kB / 0.8152 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006214/0.7413, allocations: 467.4 kB / 0.8156 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001555/0.7414, allocations: 106 kB / 0.8157 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007913/0.7422, allocations: 472.4 kB / 0.8162 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002284/0.7425, allocations: 273.3 kB / 0.8164 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003878/0.7429, allocations: 0.5047 MB / 0.8169 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001479/0.7444, allocations: 1.502 MB / 0.8184 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.7444, allocations: 3.938 kB / 0.8184 GB, free: 9.957 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7444, allocations: 0.5625 kB / 0.8184 GB, free: 9.957 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.646e-05/0.7444, allocations: 6.312 kB / 0.8184 GB, free: 9.953 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.002178/0.7466, allocations: 1.339 MB / 0.8197 GB, free: 9.047 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.7466, allocations: 10.5 kB / 0.8197 GB, free: 9.047 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008738/0.7475, allocations: 175.6 kB / 0.8199 GB, free: 8.965 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.7486, allocations: 0.7321 MB / 0.8206 GB, free: 8.395 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.421e-05/0.7487, allocations: 65.19 kB / 0.8207 GB, free: 8.363 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.7488, allocations: 76.12 kB / 0.8207 GB, free: 8.34 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.7503, allocations: 0.8925 MB / 0.8216 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.7503, allocations: 0 / 0.8216 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.839e-05/0.7504, allocations: 34.31 kB / 0.8216 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.7504, allocations: 19.69 kB / 0.8216 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.7521, allocations: 1.102 MB / 0.8227 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003872/0.756, allocations: 2.463 MB / 0.8251 GB, free: 5.34 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.7573, allocations: 0.7358 MB / 0.8258 GB, free: 4.98 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004991/0.7578, allocations: 286.5 kB / 0.8261 GB, free: 4.84 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 9.409e-05/0.758, allocations: 32.22 kB / 0.8262 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000796/0.7588, allocations: 450.2 kB / 0.8266 GB, free: 4.539 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=76): time 2.074e-06/0.7588, allocations: 0 / 0.8266 GB, free: 4.539 MB / 0.5919 GB Notification: Performance of matching and sorting (n=76): time 0.002906/0.7617, allocations: 1.113 MB / 0.8277 GB, free: 3.93 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.7618, allocations: 188.5 kB / 0.8278 GB, free: 3.711 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007183/0.7625, allocations: 0.6066 MB / 0.8284 GB, free: 3.352 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.292e-05/0.7626, allocations: 36.36 kB / 0.8285 GB, free: 3.312 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002789/0.7629, allocations: 381.1 kB / 0.8288 GB, free: 2.977 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.7631, allocations: 260.1 kB / 0.8291 GB, free: 2.758 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/0.7633, allocations: 159.9 kB / 0.8292 GB, free: 2.66 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001666/0.7635, allocations: 375.9 kB / 0.8296 GB, free: 2.301 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004764/0.764, allocations: 251.8 kB / 0.8298 GB, free: 2.176 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005755/0.7646, allocations: 346.4 kB / 0.8302 GB, free: 1.973 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.7656, allocations: 0.5871 MB / 0.8307 GB, free: 1.652 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.7656, allocations: 0 / 0.8307 GB, free: 1.652 MB / 0.5919 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001814/0.7674, allocations: 0.806 MB / 0.8315 GB, free: 1.246 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.7675, allocations: 9.359 kB / 0.8315 GB, free: 1.242 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.7675, allocations: 6.469 kB / 0.8315 GB, free: 1.238 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005701/0.7681, allocations: 87.5 kB / 0.8316 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006355/0.7687, allocations: 161.5 kB / 0.8318 GB, free: 1.152 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002119/0.7709, allocations: 1.636 MB / 0.8334 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006176/0.7715, allocations: 87.7 kB / 0.8335 GB, free: 15.49 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.719e-05/0.7716, allocations: 36.5 kB / 0.8335 GB, free: 15.48 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.0003863/0.772, allocations: 260 kB / 0.8337 GB, free: 15.27 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.7721, allocations: 80.59 kB / 0.8338 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002256/0.7744, allocations: 1.019 MB / 0.8348 GB, free: 14.66 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.7744, allocations: 10.12 kB / 0.8348 GB, free: 14.66 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.7744, allocations: 0 / 0.8348 GB, free: 14.66 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.7744, allocations: 7.922 kB / 0.8348 GB, free: 14.65 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003029/0.7775, allocations: 1.889 MB / 0.8367 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.7775, allocations: 0 / 0.8367 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005722/0.7781, allocations: 148.5 kB / 0.8368 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004081/0.7785, allocations: 74.84 kB / 0.8369 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.819e-05/0.7786, allocations: 27.27 kB / 0.8369 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001893/0.7805, allocations: 1.65 MB / 0.8385 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.7805, allocations: 3.938 kB / 0.8385 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001831/0.7823, allocations: 0.9272 MB / 0.8394 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003191/0.7826, allocations: 259.7 kB / 0.8397 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.7827, allocations: 20.77 kB / 0.8397 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005382/0.7833, allocations: 46.86 kB / 0.8398 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.7834, allocations: 67.12 kB / 0.8398 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-05/0.7835, allocations: 30.39 kB / 0.8398 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005663/0.7841, allocations: 445.3 kB / 0.8403 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7841, allocations: 0 / 0.8403 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008557/0.785, allocations: 297.2 kB / 0.8406 GB, free: 10.51 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.001457/0.7864, allocations: 0.5945 MB / 0.8411 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001609/0.788, allocations: 0.7899 MB / 0.8419 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.7881, allocations: 2.406 kB / 0.8419 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008607/0.7889, allocations: 0.4939 MB / 0.8424 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.7901, allocations: 290.7 kB / 0.8427 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.7938, allocations: 1.71 MB / 0.8443 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006466/0.7945, allocations: 0.9994 MB / 0.8453 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003085/0.7948, allocations: 119.4 kB / 0.8454 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of SimCode: time 4.51e-07/0.7948, allocations: 0 / 0.8454 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of Templates: time 0.02429/0.8191, allocations: 17.53 MB / 0.8625 GB, free: 5.48 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_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/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.BaseClasses.Examples.IncidenceAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.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.BaseClasses.Examples.IncidenceAngleCalcHelperMain.o] Error 1