Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.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.SolarHourAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 104 kB / 16.41 MB, free: 6.516 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.001742/0.001742, allocations: 188.2 kB / 17.34 MB, free: 5.738 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.446/1.446, 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.8696/0.8696, allocations: 135.2 MB / 426.4 MB, free: 4.051 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 63.19 kB / 0.5863 GB, free: 21.49 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1802, allocations: 80.94 MB / 0.6654 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle): time 0.006721/0.187, allocations: 4.044 MB / 0.6693 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6296/0.8166, allocations: 150.9 MB / 0.8166 GB, free: 8.262 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008588/0.8174, allocations: 14.94 kB / 0.8167 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006199/0.8181, allocations: 169.2 kB / 0.8168 GB, free: 8.168 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001782/0.8198, allocations: 479.4 kB / 0.8173 GB, free: 7.98 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002029/0.8219, allocations: 0.7889 MB / 0.818 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00162/0.8235, allocations: 1.151 MB / 0.8192 GB, free: 7.426 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007189/0.8242, allocations: 453.9 kB / 0.8196 GB, free: 7.281 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007058/0.8249, allocations: 422.4 kB / 0.82 GB, free: 7.145 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005418/0.8255, allocations: 429.9 kB / 0.8204 GB, free: 6.953 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.8256, allocations: 102.9 kB / 0.8205 GB, free: 6.953 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000977/0.8266, allocations: 467.8 kB / 0.821 GB, free: 6.859 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000244/0.8268, allocations: 266.5 kB / 0.8212 GB, free: 6.77 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004548/0.8273, allocations: 491.1 kB / 0.8217 GB, free: 6.414 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001967/0.8292, allocations: 1.46 MB / 0.8231 GB, free: 5.359 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.8292, allocations: 4 kB / 0.8231 GB, free: 5.355 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.793e-06/0.8292, allocations: 0 / 0.8231 GB, free: 5.355 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.595e-05/0.8292, allocations: 0 / 0.8231 GB, free: 5.355 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: 195 * Number of variables: 195 Notification: Performance of Generate backend data structure: time 0.002516/0.8318, allocations: 1.337 MB / 0.8244 GB, free: 4.277 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.8318, allocations: 8.828 kB / 0.8244 GB, free: 4.277 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009266/0.8327, allocations: 183.8 kB / 0.8246 GB, free: 4.188 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.8341, allocations: 0.7217 MB / 0.8253 GB, free: 3.586 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.618e-05/0.8342, allocations: 60.41 kB / 0.8254 GB, free: 3.559 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.88e-05/0.8343, allocations: 75.06 kB / 0.8254 GB, free: 3.535 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.8358, allocations: 0.8401 MB / 0.8263 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.8358, allocations: 0 / 0.8263 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.887e-05/0.8359, allocations: 32 kB / 0.8263 GB, free: 2.961 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.8359, allocations: 19.53 kB / 0.8263 GB, free: 2.961 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.8376, allocations: 1.042 MB / 0.8273 GB, free: 2.473 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00382/0.8414, allocations: 2.308 MB / 0.8296 GB, free: 0.6797 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.8427, allocations: 0.7351 MB / 0.8303 GB, free: 256 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004587/0.8432, allocations: 244.8 kB / 0.8305 GB, free: 132 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 8.199e-05/0.8433, allocations: 33.05 kB / 0.8306 GB, free: 112 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007673/0.844, allocations: 415.8 kB / 0.831 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=70): time 2.465e-06/0.844, allocations: 0 / 0.831 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of matching and sorting (n=70): time 0.002948/0.847, allocations: 1.057 MB / 0.832 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/0.8471, allocations: 191.6 kB / 0.8322 GB, free: 15.03 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007651/0.8479, allocations: 0.5833 MB / 0.8327 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.524e-05/0.848, allocations: 36.17 kB / 0.8328 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003375/0.8483, allocations: 380.2 kB / 0.8331 GB, free: 14.31 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002406/0.8485, allocations: 239.9 kB / 0.8334 GB, free: 14.1 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002408/0.8488, allocations: 147.6 kB / 0.8335 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002153/0.849, allocations: 376 kB / 0.8339 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004686/0.8495, allocations: 234.1 kB / 0.8341 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005749/0.85, allocations: 319.8 kB / 0.8344 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.851, allocations: 0.5305 MB / 0.8349 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.8511, allocations: 0 / 0.8349 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001778/0.8528, allocations: 0.7608 MB / 0.8357 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.8528, allocations: 4.906 kB / 0.8357 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.8529, allocations: 0 / 0.8357 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005577/0.8534, allocations: 80.06 kB / 0.8357 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00056/0.854, allocations: 142.4 kB / 0.8359 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.8563, allocations: 1.634 MB / 0.8375 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006337/0.8569, allocations: 84.56 kB / 0.8375 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.801e-05/0.857, allocations: 36.19 kB / 0.8376 GB, free: 10.92 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 (81): * Single equations (assignments): 80 * 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.0004558/0.8575, allocations: 245.9 kB / 0.8378 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.8576, allocations: 75.28 kB / 0.8379 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002146/0.8598, allocations: 0.9482 MB / 0.8388 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.8598, allocations: 13.59 kB / 0.8388 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.8598, allocations: 0 / 0.8388 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.8598, allocations: 3.984 kB / 0.8388 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003174/0.863, allocations: 1.788 MB / 0.8406 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.863, allocations: 3.188 kB / 0.8406 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005033/0.8635, allocations: 135.8 kB / 0.8407 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004245/0.8639, allocations: 72.5 kB / 0.8408 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.074e-05/0.864, allocations: 27.42 kB / 0.8408 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002159/0.8661, allocations: 1.667 MB / 0.8424 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.8661, allocations: 0 / 0.8424 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001999/0.8681, allocations: 0.8883 MB / 0.8433 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004057/0.8685, allocations: 251.9 kB / 0.8435 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.8686, allocations: 19.66 kB / 0.8436 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005282/0.8692, allocations: 54.22 kB / 0.8436 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.8693, allocations: 61.48 kB / 0.8437 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.235e-05/0.8694, allocations: 27.8 kB / 0.8437 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005581/0.8699, allocations: 422.4 kB / 0.8441 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of sort global known variables: time 7e-08/0.8699, allocations: 0 / 0.8441 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008953/0.8708, allocations: 285.7 kB / 0.8444 GB, free: 6.066 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 (81): * Single equations (assignments): 78 * 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.00203/0.8728, allocations: 0.6005 MB / 0.845 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001597/0.8744, allocations: 0.7095 MB / 0.8456 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.8744, allocations: 0 / 0.8456 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000826/0.8753, allocations: 455.6 kB / 0.8461 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.8765, allocations: 293.1 kB / 0.8464 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004145/0.8806, allocations: 1.671 MB / 0.848 GB, free: 3.52 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007079/0.8813, allocations: 0.9874 MB / 0.849 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003257/0.8817, allocations: 107.4 kB / 0.8491 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of SimCode: time 1.062e-06/0.8817, allocations: 0 / 0.8491 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of Templates: time 0.0274/0.909, allocations: 16.85 MB / 0.8655 GB, free: 1.559 MB / 0.6231 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.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.SolarHourAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngleFunctions.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.SolarHourAngleCalcHelperMain.o] Error 1