Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth.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.SolarAzimuth,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 110.4 kB / 16.41 MB, free: 6.508 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.001096/0.001097, allocations: 189.7 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.363/1.363, 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.8018/0.8018, allocations: 132.2 MB / 423.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 66.52 kB / 0.582 GB, free: 23.74 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1579, allocations: 80.21 MB / 0.6603 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth): time 0.006505/0.1644, allocations: 4.218 MB / 0.6644 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.609/0.7735, allocations: 150.6 MB / 0.8115 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009008/0.7744, allocations: 15.84 kB / 0.8115 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006313/0.7751, allocations: 171.6 kB / 0.8116 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001836/0.777, allocations: 482.6 kB / 0.8121 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002149/0.7791, allocations: 0.8278 MB / 0.8129 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001703/0.7808, allocations: 1.226 MB / 0.8141 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001033/0.7819, allocations: 0.6356 MB / 0.8147 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006766/0.7826, allocations: 459.1 kB / 0.8152 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005836/0.7832, allocations: 466.1 kB / 0.8156 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.7834, allocations: 106.7 kB / 0.8157 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001024/0.7844, allocations: 0.4941 MB / 0.8162 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002511/0.7846, allocations: 278.5 kB / 0.8165 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004586/0.7851, allocations: 0.5076 MB / 0.817 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001683/0.7868, allocations: 1.535 MB / 0.8185 GB, free: 9.934 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.7868, allocations: 0 / 0.8185 GB, free: 9.934 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.615e-06/0.7868, allocations: 0 / 0.8185 GB, free: 9.934 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.508e-05/0.7869, allocations: 0 / 0.8185 GB, free: 9.934 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: 210 * Number of variables: 210 Notification: Performance of Generate backend data structure: time 0.0023/0.7892, allocations: 1.366 MB / 0.8198 GB, free: 9 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.7892, allocations: 7.781 kB / 0.8198 GB, free: 9 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009157/0.7901, allocations: 181.7 kB / 0.82 GB, free: 8.914 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.7912, allocations: 0.737 MB / 0.8207 GB, free: 8.32 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.942e-05/0.7913, allocations: 56.88 kB / 0.8207 GB, free: 8.293 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.7914, allocations: 82.09 kB / 0.8208 GB, free: 8.266 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.7929, allocations: 0.8985 MB / 0.8217 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.462e-05/0.7929, allocations: 3.938 kB / 0.8217 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-05/0.793, allocations: 43.95 kB / 0.8217 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.793, allocations: 22.28 kB / 0.8218 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001652/0.7947, allocations: 1.094 MB / 0.8228 GB, free: 7.125 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00386/0.7985, allocations: 2.487 MB / 0.8253 GB, free: 5.242 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001823/0.8004, allocations: 0.8668 MB / 0.8261 GB, free: 4.762 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005066/0.8009, allocations: 286.7 kB / 0.8264 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 8.887e-05/0.801, allocations: 42.08 kB / 0.8264 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000776/0.8018, allocations: 452.4 kB / 0.8269 GB, free: 4.312 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=76): time 2.765e-06/0.8018, allocations: 3.938 kB / 0.8269 GB, free: 4.309 MB / 0.5919 GB Notification: Performance of matching and sorting (n=76): time 0.003122/0.8049, allocations: 1.114 MB / 0.828 GB, free: 3.699 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.8051, allocations: 194.7 kB / 0.8281 GB, free: 3.477 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008175/0.8059, allocations: 0.6013 MB / 0.8287 GB, free: 3.121 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.472e-05/0.806, allocations: 36.45 kB / 0.8288 GB, free: 3.082 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003163/0.8063, allocations: 381.1 kB / 0.8291 GB, free: 2.746 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.8065, allocations: 252.3 kB / 0.8294 GB, free: 2.535 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002373/0.8068, allocations: 160.3 kB / 0.8295 GB, free: 2.438 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.8069, allocations: 388.2 kB / 0.8299 GB, free: 2.07 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004671/0.8074, allocations: 251.1 kB / 0.8301 GB, free: 1.949 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005823/0.808, allocations: 343.4 kB / 0.8305 GB, free: 1.746 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.809, allocations: 0.5769 MB / 0.831 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.809, allocations: 0 / 0.831 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001892/0.8109, allocations: 0.8122 MB / 0.8318 GB, free: 1.02 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.811, allocations: 11.53 kB / 0.8318 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.811, allocations: 0 / 0.8318 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006135/0.8116, allocations: 81.69 kB / 0.8319 GB, free: 0.9766 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006437/0.8122, allocations: 158.6 kB / 0.832 GB, free: 0.9375 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002158/0.8144, allocations: 1.632 MB / 0.8336 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007179/0.8152, allocations: 87.72 kB / 0.8337 GB, free: 15.27 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.59e-05/0.8152, allocations: 34.38 kB / 0.8338 GB, free: 15.26 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: 9 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,solAzi.outsidePolarCircle,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 (88): * Single equations (assignments): 87 * 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.0004925/0.8157, allocations: 260.2 kB / 0.834 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001813/0.8159, allocations: 81.03 kB / 0.8341 GB, free: 15.01 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002333/0.8183, allocations: 1.054 MB / 0.8351 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.8183, allocations: 10.06 kB / 0.8351 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.8183, allocations: 0 / 0.8351 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.8183, allocations: 7.922 kB / 0.8351 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003309/0.8216, allocations: 1.934 MB / 0.837 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.8216, allocations: 0 / 0.837 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005748/0.8222, allocations: 152.6 kB / 0.8372 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004354/0.8227, allocations: 78.59 kB / 0.8372 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.369e-05/0.8227, allocations: 23.45 kB / 0.8373 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.8246, allocations: 1.665 MB / 0.8389 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.8246, allocations: 0 / 0.8389 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.8265, allocations: 0.9619 MB / 0.8398 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004083/0.8269, allocations: 261.2 kB / 0.8401 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.8271, allocations: 23.28 kB / 0.8401 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005788/0.8276, allocations: 57.06 kB / 0.8402 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.8278, allocations: 65.31 kB / 0.8402 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.42e-05/0.8279, allocations: 33.55 kB / 0.8402 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005603/0.8284, allocations: 434.7 kB / 0.8407 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.6e-07/0.8285, allocations: 0 / 0.8407 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009494/0.8294, allocations: 301.2 kB / 0.841 GB, free: 10.23 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 (93): * Single equations (assignments): 90 * 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.001413/0.8308, allocations: 0.612 MB / 0.8415 GB, free: 10 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001639/0.8325, allocations: 0.7977 MB / 0.8423 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.8325, allocations: 0 / 0.8423 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008425/0.8333, allocations: 0.512 MB / 0.8428 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.8345, allocations: 305.3 kB / 0.8431 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003931/0.8384, allocations: 1.744 MB / 0.8448 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006052/0.8391, allocations: 1.015 MB / 0.8458 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003057/0.8394, allocations: 115.4 kB / 0.8459 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/0.8394, allocations: 0 / 0.8459 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of Templates: time 0.0259/0.8653, allocations: 17.73 MB / 0.8632 GB, free: 4.746 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth.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.SolarAzimuthCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuthCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuthCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuthFunctions.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.SolarAzimuthCalcHelperMain.o] Error 1