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.001125/0.001125, allocations: 105.4 kB / 16.41 MB, free: 6.461 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.001077/0.001077, allocations: 187 kB / 17.34 MB, free: 5.719 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.854/0.854, allocations: 132.2 MB / 423.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 71.48 kB / 0.582 GB, free: 23.71 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1521, allocations: 80.21 MB / 0.6603 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth): time 0.006251/0.1584, allocations: 4.2 MB / 0.6644 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5394/0.6978, allocations: 150.6 MB / 0.8115 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007693/0.6986, allocations: 14.91 kB / 0.8115 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.000579/0.6993, allocations: 172.9 kB / 0.8116 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001439/0.7007, allocations: 480.5 kB / 0.8121 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001826/0.7026, allocations: 0.834 MB / 0.8129 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001092/0.7036, allocations: 1.233 MB / 0.8141 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008713/0.7045, allocations: 0.6222 MB / 0.8147 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006258/0.7052, allocations: 459.1 kB / 0.8152 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004863/0.7057, allocations: 473.7 kB / 0.8156 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001492/0.7058, allocations: 106.1 kB / 0.8157 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008803/0.7067, allocations: 0.4885 MB / 0.8162 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002579/0.707, allocations: 276.5 kB / 0.8165 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003787/0.7074, allocations: 0.507 MB / 0.817 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001556/0.7089, allocations: 1.543 MB / 0.8185 GB, free: 9.957 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.7089, allocations: 0 / 0.8185 GB, free: 9.957 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.162e-06/0.709, allocations: 4 kB / 0.8185 GB, free: 9.953 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.858e-05/0.709, allocations: 0 / 0.8185 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: 210 * Number of variables: 210 Notification: Performance of Generate backend data structure: time 0.002182/0.7112, allocations: 1.365 MB / 0.8198 GB, free: 9 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.7112, allocations: 7.375 kB / 0.8198 GB, free: 9 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009275/0.7121, allocations: 185.1 kB / 0.82 GB, free: 8.914 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.7132, allocations: 0.7335 MB / 0.8207 GB, free: 8.32 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.991e-05/0.7133, allocations: 60.22 kB / 0.8208 GB, free: 8.293 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.148e-05/0.7134, allocations: 80.06 kB / 0.8208 GB, free: 8.266 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.7149, allocations: 0.8974 MB / 0.8217 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.7149, allocations: 0 / 0.8217 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.762e-05/0.715, allocations: 33.59 kB / 0.8217 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.715, allocations: 19.94 kB / 0.8218 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.7168, allocations: 1.099 MB / 0.8228 GB, free: 7.137 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004084/0.7209, allocations: 2.501 MB / 0.8253 GB, free: 5.242 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001883/0.7228, allocations: 0.864 MB / 0.8261 GB, free: 4.762 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005324/0.7233, allocations: 294.6 kB / 0.8264 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.562e-05/0.7234, allocations: 34.92 kB / 0.8264 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000776/0.7242, allocations: 446.3 kB / 0.8269 GB, free: 4.316 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=76): time 1.994e-06/0.7242, allocations: 6.812 kB / 0.8269 GB, free: 4.312 MB / 0.5919 GB Notification: Performance of matching and sorting (n=76): time 0.003192/0.7274, allocations: 1.119 MB / 0.828 GB, free: 3.703 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.478e-05/0.7276, allocations: 196.2 kB / 0.8281 GB, free: 3.477 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006576/0.7282, allocations: 0.5972 MB / 0.8287 GB, free: 3.125 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.69e-05/0.7283, allocations: 38.14 kB / 0.8288 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002739/0.7286, allocations: 379.3 kB / 0.8291 GB, free: 2.75 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.7288, allocations: 254.1 kB / 0.8294 GB, free: 2.535 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002278/0.7291, allocations: 159.3 kB / 0.8295 GB, free: 2.441 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.7292, allocations: 381.8 kB / 0.8299 GB, free: 2.074 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004955/0.7297, allocations: 251.5 kB / 0.8301 GB, free: 1.953 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006265/0.7304, allocations: 338.8 kB / 0.8304 GB, free: 1.754 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.7315, allocations: 0.5841 MB / 0.831 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.7315, allocations: 0 / 0.831 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001874/0.7334, allocations: 0.8085 MB / 0.8318 GB, free: 1.023 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.7334, allocations: 7.406 kB / 0.8318 GB, free: 1.023 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.7334, allocations: 0 / 0.8318 GB, free: 1.023 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000603/0.734, allocations: 86.3 kB / 0.8319 GB, free: 0.9805 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006679/0.7347, allocations: 153.6 kB / 0.832 GB, free: 0.9414 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002137/0.7369, allocations: 1.635 MB / 0.8336 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006981/0.7376, allocations: 86.27 kB / 0.8337 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.7377, allocations: 40 kB / 0.8338 GB, free: 15.27 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.0003956/0.7381, allocations: 265.7 kB / 0.834 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.7383, allocations: 80.06 kB / 0.8341 GB, free: 15.01 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00247/0.7408, allocations: 1.048 MB / 0.8351 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.7408, allocations: 7.75 kB / 0.8351 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.7408, allocations: 6.562 kB / 0.8351 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.7408, allocations: 11.92 kB / 0.8351 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003336/0.7441, allocations: 1.933 MB / 0.837 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.7442, allocations: 3.938 kB / 0.837 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006127/0.7448, allocations: 157 kB / 0.8372 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004734/0.7453, allocations: 74.28 kB / 0.8372 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.652e-05/0.7454, allocations: 23.52 kB / 0.8373 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001909/0.7473, allocations: 1.653 MB / 0.8389 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.7474, allocations: 4.062 kB / 0.8389 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001979/0.7493, allocations: 0.9568 MB / 0.8398 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003601/0.7497, allocations: 267.9 kB / 0.8401 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.7498, allocations: 20.94 kB / 0.8401 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006227/0.7505, allocations: 55.44 kB / 0.8402 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.7506, allocations: 62.94 kB / 0.8402 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.55e-05/0.7507, allocations: 38.73 kB / 0.8402 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005365/0.7512, allocations: 432.8 kB / 0.8407 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7512, allocations: 0 / 0.8407 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008825/0.7521, allocations: 303 kB / 0.841 GB, free: 10.24 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.001308/0.7534, allocations: 0.6181 MB / 0.8416 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001617/0.7551, allocations: 0.7932 MB / 0.8423 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.7551, allocations: 0 / 0.8423 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000923/0.756, allocations: 0.5153 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.001227/0.7573, allocations: 299.6 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.0038/0.7611, allocations: 1.743 MB / 0.8448 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006124/0.7617, allocations: 1.008 MB / 0.8458 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003158/0.762, allocations: 123.4 kB / 0.8459 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of SimCode: time 4.11e-07/0.762, allocations: 0 / 0.8459 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of Templates: time 0.02532/0.7873, allocations: 17.86 MB / 0.8634 GB, free: 4.621 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