Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.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.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 107.1 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.001291/0.001291, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.296/1.296, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.78/0.78, allocations: 135.1 MB / 426.3 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 66.3 kB / 0.5862 GB, free: 21.45 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1441, allocations: 80.91 MB / 0.6653 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.00583/0.15, allocations: 4.072 MB / 0.6692 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5125/0.6626, allocations: 150.5 MB / 0.8162 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007094/0.6633, allocations: 18.88 kB / 0.8162 GB, free: 8.598 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005118/0.6639, allocations: 161.2 kB / 0.8164 GB, free: 8.512 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001412/0.6653, allocations: 466.4 kB / 0.8168 GB, free: 8.328 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001784/0.6671, allocations: 0.7999 MB / 0.8176 GB, free: 8.066 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001054/0.6682, allocations: 1.175 MB / 0.8187 GB, free: 7.746 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007293/0.6689, allocations: 0.6118 MB / 0.8193 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004598/0.6694, allocations: 431.8 kB / 0.8197 GB, free: 7.418 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004048/0.6698, allocations: 445.8 kB / 0.8202 GB, free: 7.219 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000128/0.6699, allocations: 103.8 kB / 0.8203 GB, free: 7.219 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008224/0.6707, allocations: 472.8 kB / 0.8207 GB, free: 7.137 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002173/0.671, allocations: 268.9 kB / 0.821 GB, free: 7.043 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003771/0.6714, allocations: 496.5 kB / 0.8214 GB, free: 6.699 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001462/0.6728, allocations: 1.492 MB / 0.8229 GB, free: 5.625 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.6728, allocations: 0 / 0.8229 GB, free: 5.625 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.042e-06/0.6728, allocations: 0 / 0.8229 GB, free: 5.625 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.192e-05/0.6729, allocations: 0 / 0.8229 GB, free: 5.625 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.00198/0.6748, allocations: 1.312 MB / 0.8242 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.6749, allocations: 8.547 kB / 0.8242 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000832/0.6757, allocations: 180.3 kB / 0.8244 GB, free: 4.488 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.6768, allocations: 0.7262 MB / 0.8251 GB, free: 3.887 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.334e-05/0.6769, allocations: 56.44 kB / 0.8251 GB, free: 3.863 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.078e-05/0.6769, allocations: 74.22 kB / 0.8252 GB, free: 3.84 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.6782, allocations: 0.8588 MB / 0.826 GB, free: 3.277 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.6783, allocations: 0 / 0.826 GB, free: 3.277 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-05/0.6784, allocations: 34.12 kB / 0.8261 GB, free: 3.254 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.6784, allocations: 21.72 kB / 0.8261 GB, free: 3.25 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.6799, allocations: 1.062 MB / 0.8271 GB, free: 2.746 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003272/0.6831, allocations: 2.346 MB / 0.8294 GB, free: 0.9219 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.6844, allocations: 0.7944 MB / 0.8302 GB, free: 476 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000437/0.6848, allocations: 278.1 kB / 0.8305 GB, free: 336 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.402e-05/0.6849, allocations: 31.47 kB / 0.8305 GB, free: 320 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006788/0.6856, allocations: 422.5 kB / 0.8309 GB, free: 40 kB / 0.5919 GB Notification: Performance of pre-optimization done (n=70): time 2.224e-06/0.6856, allocations: 3.938 kB / 0.8309 GB, free: 36 kB / 0.5919 GB Notification: Performance of matching and sorting (n=70): time 0.002808/0.6884, allocations: 1.062 MB / 0.8319 GB, free: 15.44 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/0.6885, allocations: 198.3 kB / 0.8321 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006669/0.6892, allocations: 0.5894 MB / 0.8327 GB, free: 14.87 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.274e-05/0.6893, allocations: 36.48 kB / 0.8327 GB, free: 14.83 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/0.6895, allocations: 364.9 kB / 0.8331 GB, free: 14.51 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001937/0.6897, allocations: 236.5 kB / 0.8333 GB, free: 14.31 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.6899, allocations: 143 kB / 0.8334 GB, free: 14.22 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.6901, allocations: 380.1 kB / 0.8338 GB, free: 13.86 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004286/0.6905, allocations: 236.3 kB / 0.834 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004928/0.691, allocations: 319.8 kB / 0.8343 GB, free: 13.56 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009055/0.6919, allocations: 0.5504 MB / 0.8349 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.6919, allocations: 0 / 0.8349 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001642/0.6936, allocations: 0.7641 MB / 0.8356 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.6936, allocations: 5.062 kB / 0.8356 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.6936, allocations: 0 / 0.8356 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005943/0.6942, allocations: 81.53 kB / 0.8357 GB, free: 12.83 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005369/0.6948, allocations: 145.4 kB / 0.8358 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002/0.6968, allocations: 1.648 MB / 0.8374 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005834/0.6974, allocations: 68.5 kB / 0.8375 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.897e-05/0.6974, allocations: 35.8 kB / 0.8375 GB, free: 11.11 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.000378/0.6978, allocations: 258 kB / 0.8378 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.698, allocations: 77.12 kB / 0.8379 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/0.7, allocations: 0.9638 MB / 0.8388 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.7, allocations: 7.656 kB / 0.8388 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.7, allocations: 0 / 0.8388 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.427e-06/0.7, allocations: 6.672 kB / 0.8388 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/0.7028, allocations: 1.83 MB / 0.8406 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.7028, allocations: 0 / 0.8406 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004825/0.7033, allocations: 134.8 kB / 0.8407 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004123/0.7037, allocations: 82.81 kB / 0.8408 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.355e-05/0.7037, allocations: 22.8 kB / 0.8408 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001697/0.7055, allocations: 1.663 MB / 0.8425 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.7055, allocations: 64 / 0.8425 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001593/0.7071, allocations: 0.902 MB / 0.8433 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003031/0.7074, allocations: 250.9 kB / 0.8436 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.801e-05/0.7075, allocations: 20.88 kB / 0.8436 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/0.708, allocations: 57.08 kB / 0.8437 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.7081, allocations: 54.55 kB / 0.8437 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.454e-05/0.7082, allocations: 31.52 kB / 0.8437 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004503/0.7086, allocations: 423.7 kB / 0.8441 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7086, allocations: 0 / 0.8441 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0007417/0.7094, allocations: 285.9 kB / 0.8444 GB, free: 6.203 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.001315/0.7107, allocations: 0.6044 MB / 0.845 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001374/0.7121, allocations: 0.7437 MB / 0.8457 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.7121, allocations: 4.188 kB / 0.8457 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007814/0.7129, allocations: 493.9 kB / 0.8462 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.714, allocations: 277.5 kB / 0.8465 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003317/0.7173, allocations: 1.654 MB / 0.8481 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005124/0.7178, allocations: 0.9914 MB / 0.8491 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002399/0.718, allocations: 107.4 kB / 0.8492 GB, free: 2.18 MB / 0.6075 GB Notification: Performance of SimCode: time 3.61e-07/0.7181, allocations: 3.938 kB / 0.8492 GB, free: 2.176 MB / 0.6075 GB Notification: Performance of Templates: time 0.02024/0.7383, allocations: 17.07 MB / 0.8658 GB, free: 1.109 MB / 0.6231 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.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.Examples.ZenithAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleFunctions.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.Examples.ZenithAngleCalcHelperMain.o] Error 1