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.001438/0.001438, allocations: 105.7 kB / 16.41 MB, free: 6.492 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.001197/0.001197, allocations: 185.5 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.39/1.39, 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-master/package.mo): time 0.8348/0.8348, allocations: 135.1 MB / 426.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 60.53 kB / 0.5863 GB, free: 21.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1771, allocations: 80.92 MB / 0.6653 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.006633/0.1838, allocations: 4.176 MB / 0.6694 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5336/0.7174, allocations: 150.7 MB / 0.8165 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008777/0.7183, allocations: 24.56 kB / 0.8165 GB, free: 8.344 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006075/0.7189, allocations: 163.1 kB / 0.8167 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001752/0.7208, allocations: 499.2 kB / 0.8171 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001906/0.7227, allocations: 0.7874 MB / 0.8179 GB, free: 7.793 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001352/0.724, allocations: 1.214 MB / 0.8191 GB, free: 7.461 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008156/0.7249, allocations: 0.6229 MB / 0.8197 GB, free: 7.254 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006436/0.7255, allocations: 448.3 kB / 0.8201 GB, free: 7.109 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005235/0.726, allocations: 463 kB / 0.8206 GB, free: 6.902 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001383/0.7262, allocations: 105.1 kB / 0.8207 GB, free: 6.902 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009205/0.7271, allocations: 479.2 kB / 0.8211 GB, free: 6.809 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002465/0.7274, allocations: 277.9 kB / 0.8214 GB, free: 6.703 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004208/0.7278, allocations: 0.5007 MB / 0.8219 GB, free: 6.32 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001764/0.7296, allocations: 1.501 MB / 0.8233 GB, free: 5.238 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.7296, allocations: 2.188 kB / 0.8233 GB, free: 5.238 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.757e-06/0.7296, allocations: 0 / 0.8233 GB, free: 5.238 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.578e-05/0.7296, allocations: 3.938 kB / 0.8233 GB, free: 5.234 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.002203/0.7318, allocations: 1.331 MB / 0.8246 GB, free: 4.172 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.7319, allocations: 8.453 kB / 0.8247 GB, free: 4.172 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009307/0.7328, allocations: 188.2 kB / 0.8248 GB, free: 4.078 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.7339, allocations: 0.7345 MB / 0.8256 GB, free: 3.48 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.831e-05/0.734, allocations: 62.28 kB / 0.8256 GB, free: 3.449 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.7341, allocations: 74.56 kB / 0.8257 GB, free: 3.426 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.7355, allocations: 0.8929 MB / 0.8266 GB, free: 2.848 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.7355, allocations: 0 / 0.8266 GB, free: 2.848 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-05/0.7356, allocations: 38.47 kB / 0.8266 GB, free: 2.82 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.7356, allocations: 21.97 kB / 0.8266 GB, free: 2.816 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.7373, allocations: 1.095 MB / 0.8277 GB, free: 2.293 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003733/0.741, allocations: 2.465 MB / 0.8301 GB, free: 408 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.7422, allocations: 0.7314 MB / 0.8308 GB, free: 32 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004834/0.7427, allocations: 287.6 kB / 0.8311 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 7.813e-05/0.7428, allocations: 35.5 kB / 0.8311 GB, free: 15.87 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007285/0.7436, allocations: 446 kB / 0.8315 GB, free: 15.58 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=76): time 2.405e-06/0.7436, allocations: 4 kB / 0.8315 GB, free: 15.58 MB / 0.6075 GB Notification: Performance of matching and sorting (n=76): time 0.003063/0.7466, allocations: 1.118 MB / 0.8326 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.7468, allocations: 187.4 kB / 0.8328 GB, free: 14.75 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007799/0.7476, allocations: 0.6052 MB / 0.8334 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.058e-05/0.7476, allocations: 42.55 kB / 0.8334 GB, free: 14.34 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003114/0.748, allocations: 377.7 kB / 0.8338 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002176/0.7482, allocations: 242 kB / 0.834 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/0.7484, allocations: 168.2 kB / 0.8342 GB, free: 13.7 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001709/0.7486, allocations: 378 kB / 0.8346 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004774/0.7491, allocations: 257.4 kB / 0.8348 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005594/0.7497, allocations: 339.1 kB / 0.8351 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.7507, allocations: 0.5892 MB / 0.8357 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.7507, allocations: 0 / 0.8357 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001885/0.7526, allocations: 0.8164 MB / 0.8365 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.7526, allocations: 4.781 kB / 0.8365 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.7526, allocations: 0 / 0.8365 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006244/0.7533, allocations: 90.06 kB / 0.8366 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006484/0.7539, allocations: 151.7 kB / 0.8367 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00235/0.7563, allocations: 1.65 MB / 0.8383 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007692/0.7571, allocations: 82.14 kB / 0.8384 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-05/0.7572, allocations: 30.77 kB / 0.8385 GB, free: 10.52 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.0005401/0.7577, allocations: 262.4 kB / 0.8387 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002354/0.7579, allocations: 80.09 kB / 0.8388 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002454/0.7604, allocations: 1.023 MB / 0.8398 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.7604, allocations: 7.844 kB / 0.8398 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.7604, allocations: 2.906 kB / 0.8398 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.7605, allocations: 3.984 kB / 0.8398 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003416/0.7639, allocations: 1.877 MB / 0.8416 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/0.7639, allocations: 4 kB / 0.8416 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005887/0.7645, allocations: 144.6 kB / 0.8418 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004505/0.765, allocations: 70.03 kB / 0.8418 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.679e-05/0.765, allocations: 23.7 kB / 0.8419 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001936/0.767, allocations: 1.661 MB / 0.8435 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.767, allocations: 7.875 kB / 0.8435 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001977/0.769, allocations: 0.9276 MB / 0.8444 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004474/0.7695, allocations: 259.2 kB / 0.8446 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001842/0.7696, allocations: 21.27 kB / 0.8447 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006493/0.7703, allocations: 49.19 kB / 0.8447 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.7705, allocations: 64.67 kB / 0.8448 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.506e-05/0.7705, allocations: 34.39 kB / 0.8448 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0008777/0.7714, allocations: 441.7 kB / 0.8452 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7714, allocations: 4 kB / 0.8452 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001161/0.7726, allocations: 298 kB / 0.8455 GB, free: 5.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.001564/0.7742, allocations: 0.5831 MB / 0.8461 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001741/0.7759, allocations: 0.796 MB / 0.8469 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.7759, allocations: 3.984 kB / 0.8469 GB, free: 4.633 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009294/0.7769, allocations: 496.3 kB / 0.8473 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.7782, allocations: 291.8 kB / 0.8476 GB, free: 3.867 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004224/0.7825, allocations: 1.713 MB / 0.8493 GB, free: 2.117 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007099/0.7832, allocations: 1.007 MB / 0.8503 GB, free: 1.082 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003388/0.7836, allocations: 111.3 kB / 0.8504 GB, free: 0.9766 MB / 0.6075 GB Notification: Performance of SimCode: time 1.212e-06/0.7836, allocations: 4 kB / 0.8504 GB, free: 0.9727 MB / 0.6075 GB Notification: Performance of Templates: time 0.02676/0.8103, allocations: 17.67 MB / 0.8676 GB, free: 15.31 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