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.001265/0.001265, allocations: 104.3 kB / 16.41 MB, free: 6.496 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.001337/0.001337, allocations: 191 kB / 17.34 MB, free: 5.762 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8347/0.8347, allocations: 132.2 MB / 423.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 63.69 kB / 0.582 GB, free: 23.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1587, allocations: 80.2 MB / 0.6603 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.006492/0.1652, allocations: 4.184 MB / 0.6644 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5957/0.7609, allocations: 150.6 MB / 0.8115 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008838/0.7618, allocations: 16.19 kB / 0.8115 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005724/0.7624, allocations: 170.6 kB / 0.8117 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001541/0.764, allocations: 493.4 kB / 0.8122 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001771/0.7658, allocations: 0.7894 MB / 0.8129 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001342/0.7671, allocations: 1.212 MB / 0.8141 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009722/0.7681, allocations: 0.6206 MB / 0.8147 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007586/0.7689, allocations: 449.6 kB / 0.8151 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005732/0.7695, allocations: 461.7 kB / 0.8156 GB, free: 11 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001846/0.7697, allocations: 104.2 kB / 0.8157 GB, free: 11 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001093/0.7708, allocations: 480.7 kB / 0.8161 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002501/0.771, allocations: 271.8 kB / 0.8164 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004113/0.7714, allocations: 0.5005 MB / 0.8169 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00163/0.7731, allocations: 1.507 MB / 0.8184 GB, free: 9.973 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.7731, allocations: 0 / 0.8184 GB, free: 9.973 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7731, allocations: 7.938 kB / 0.8184 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.363e-05/0.7731, allocations: 0 / 0.8184 GB, free: 9.965 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.002116/0.7753, allocations: 1.334 MB / 0.8197 GB, free: 9.059 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.7753, allocations: 7.406 kB / 0.8197 GB, free: 9.059 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008578/0.7762, allocations: 189.2 kB / 0.8199 GB, free: 8.973 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.7772, allocations: 0.729 MB / 0.8206 GB, free: 8.406 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.534e-05/0.7772, allocations: 63.44 kB / 0.8206 GB, free: 8.375 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.686e-05/0.7773, allocations: 77.09 kB / 0.8207 GB, free: 8.352 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.7791, allocations: 0.8867 MB / 0.8216 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.7791, allocations: 4.062 kB / 0.8216 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.268e-05/0.7792, allocations: 35.19 kB / 0.8216 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.688e-05/0.7793, allocations: 20.72 kB / 0.8216 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001821/0.7811, allocations: 1.093 MB / 0.8227 GB, free: 7.227 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003636/0.7847, allocations: 2.469 MB / 0.8251 GB, free: 5.352 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.786, allocations: 0.7348 MB / 0.8258 GB, free: 4.992 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004663/0.7865, allocations: 282.3 kB / 0.8261 GB, free: 4.855 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 8.501e-05/0.7866, allocations: 36.66 kB / 0.8261 GB, free: 4.84 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007536/0.7873, allocations: 446.2 kB / 0.8266 GB, free: 4.555 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=76): time 2.495e-06/0.7873, allocations: 0 / 0.8266 GB, free: 4.555 MB / 0.5919 GB Notification: Performance of matching and sorting (n=76): time 0.002941/0.7903, allocations: 1.114 MB / 0.8276 GB, free: 3.945 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.7904, allocations: 190 kB / 0.8278 GB, free: 3.727 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006928/0.7911, allocations: 0.6054 MB / 0.8284 GB, free: 3.367 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.899e-05/0.7912, allocations: 40.45 kB / 0.8285 GB, free: 3.324 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.7915, allocations: 381.1 kB / 0.8288 GB, free: 2.988 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/0.7917, allocations: 250.2 kB / 0.8291 GB, free: 2.777 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002335/0.7919, allocations: 165.8 kB / 0.8292 GB, free: 2.68 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.792, allocations: 384.6 kB / 0.8296 GB, free: 2.312 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000464/0.7925, allocations: 247 kB / 0.8298 GB, free: 2.191 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005649/0.7931, allocations: 347.1 kB / 0.8302 GB, free: 1.988 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.7941, allocations: 0.5905 MB / 0.8307 GB, free: 1.664 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.7941, allocations: 0 / 0.8307 GB, free: 1.664 MB / 0.5919 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001799/0.7959, allocations: 0.8105 MB / 0.8315 GB, free: 1.254 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.796, allocations: 8.844 kB / 0.8315 GB, free: 1.25 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.796, allocations: 2.25 kB / 0.8315 GB, free: 1.25 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005847/0.7966, allocations: 79.91 kB / 0.8316 GB, free: 1.211 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006406/0.7972, allocations: 165.6 kB / 0.8318 GB, free: 1.164 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002069/0.7993, allocations: 1.631 MB / 0.8334 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006495/0.8, allocations: 80.33 kB / 0.8334 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-05/0.8001, allocations: 35.66 kB / 0.8335 GB, free: 15.49 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.0004609/0.8005, allocations: 256.6 kB / 0.8337 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.8007, allocations: 80.62 kB / 0.8338 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.8031, allocations: 1.026 MB / 0.8348 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.8031, allocations: 10.41 kB / 0.8348 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.8031, allocations: 0 / 0.8348 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.8031, allocations: 3.984 kB / 0.8348 GB, free: 14.66 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003358/0.8065, allocations: 1.888 MB / 0.8366 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.8065, allocations: 2.594 kB / 0.8367 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005737/0.8071, allocations: 142.3 kB / 0.8368 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004492/0.8076, allocations: 78.5 kB / 0.8369 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.946e-05/0.8076, allocations: 23.67 kB / 0.8369 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001895/0.8095, allocations: 1.657 MB / 0.8385 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.8096, allocations: 6.812 kB / 0.8385 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002011/0.8116, allocations: 0.9254 MB / 0.8394 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004986/0.8121, allocations: 261.1 kB / 0.8397 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001817/0.8123, allocations: 18.84 kB / 0.8397 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006231/0.8129, allocations: 53.3 kB / 0.8397 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.8131, allocations: 59.56 kB / 0.8398 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.319e-05/0.8131, allocations: 37.11 kB / 0.8398 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000765/0.8139, allocations: 444.4 kB / 0.8402 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.11e-07/0.8139, allocations: 0 / 0.8402 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001283/0.8152, allocations: 299.7 kB / 0.8405 GB, free: 10.52 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.001814/0.817, allocations: 0.5993 MB / 0.8411 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001802/0.8188, allocations: 0.7814 MB / 0.8419 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.8189, allocations: 0 / 0.8419 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000934/0.8198, allocations: 0.4909 MB / 0.8424 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.8212, allocations: 293.8 kB / 0.8426 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004223/0.8254, allocations: 1.717 MB / 0.8443 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007291/0.8262, allocations: 1.003 MB / 0.8453 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003211/0.8265, allocations: 115.4 kB / 0.8454 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of SimCode: time 5.01e-07/0.8265, allocations: 0 / 0.8454 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of Templates: time 0.02801/0.8545, allocations: 17.43 MB / 0.8624 GB, free: 5.625 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