Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001241/0.00124, allocations: 105.8 kB / 16.41 MB, free: 6.484 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.001034/0.001034, allocations: 186.9 kB / 17.34 MB, free: 5.754 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.794/0.794, allocations: 132.2 MB / 423.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 62.89 kB / 0.582 GB, free: 23.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.15, allocations: 80.21 MB / 0.6603 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.006089/0.1561, allocations: 4.083 MB / 0.6643 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5516/0.7078, allocations: 150.5 MB / 0.8112 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008109/0.7086, allocations: 18.06 kB / 0.8112 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005556/0.7092, allocations: 164.8 kB / 0.8114 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001468/0.7107, allocations: 469.5 kB / 0.8118 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001722/0.7124, allocations: 0.7952 MB / 0.8126 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0009957/0.7134, allocations: 1.174 MB / 0.8138 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008169/0.7142, allocations: 0.6106 MB / 0.8143 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005541/0.7148, allocations: 435.5 kB / 0.8148 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004596/0.7153, allocations: 447.7 kB / 0.8152 GB, free: 11 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.7154, allocations: 103.4 kB / 0.8153 GB, free: 11 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008998/0.7164, allocations: 476.5 kB / 0.8157 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002137/0.7166, allocations: 264 kB / 0.816 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003694/0.717, allocations: 497.6 kB / 0.8165 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001492/0.7185, allocations: 1.489 MB / 0.8179 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.7185, allocations: 0.8125 kB / 0.8179 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7185, allocations: 4 kB / 0.8179 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.413e-05/0.7185, allocations: 1.906 kB / 0.8179 GB, free: 10.04 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.002027/0.7205, allocations: 1.313 MB / 0.8192 GB, free: 9.152 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.7206, allocations: 10.78 kB / 0.8192 GB, free: 9.152 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008751/0.7215, allocations: 171.2 kB / 0.8194 GB, free: 9.074 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009956/0.7225, allocations: 0.7255 MB / 0.8201 GB, free: 8.574 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.267e-05/0.7225, allocations: 62 kB / 0.8202 GB, free: 8.547 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.465e-05/0.7226, allocations: 78.19 kB / 0.8202 GB, free: 8.52 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.724, allocations: 0.8539 MB / 0.8211 GB, free: 7.961 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.724, allocations: 2.5 kB / 0.8211 GB, free: 7.961 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.864e-05/0.7241, allocations: 35.86 kB / 0.8211 GB, free: 7.934 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.7241, allocations: 18.75 kB / 0.8211 GB, free: 7.934 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.7256, allocations: 1.059 MB / 0.8222 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003497/0.7291, allocations: 2.344 MB / 0.8244 GB, free: 5.637 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.7304, allocations: 0.8 MB / 0.8252 GB, free: 5.18 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004832/0.7309, allocations: 272.4 kB / 0.8255 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.172e-05/0.731, allocations: 37.14 kB / 0.8255 GB, free: 5.027 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000695/0.7317, allocations: 422.3 kB / 0.8259 GB, free: 4.758 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=70): time 3.877e-06/0.7317, allocations: 3.984 kB / 0.8259 GB, free: 4.754 MB / 0.5919 GB Notification: Performance of matching and sorting (n=70): time 0.002768/0.7345, allocations: 1.069 MB / 0.827 GB, free: 4.16 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.7346, allocations: 189.3 kB / 0.8271 GB, free: 3.941 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006617/0.7353, allocations: 0.5829 MB / 0.8277 GB, free: 3.598 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.463e-05/0.7353, allocations: 38.27 kB / 0.8278 GB, free: 3.559 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002679/0.7356, allocations: 365.8 kB / 0.8281 GB, free: 3.238 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/0.7358, allocations: 233.8 kB / 0.8283 GB, free: 3.039 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002062/0.736, allocations: 149.3 kB / 0.8285 GB, free: 2.949 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.7362, allocations: 377.9 kB / 0.8288 GB, free: 2.586 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004226/0.7366, allocations: 231.5 kB / 0.829 GB, free: 2.473 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005086/0.7371, allocations: 325.2 kB / 0.8294 GB, free: 2.281 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009415/0.7381, allocations: 0.5493 MB / 0.8299 GB, free: 1.984 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.7381, allocations: 3.562 kB / 0.8299 GB, free: 1.984 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001689/0.7398, allocations: 0.7599 MB / 0.8306 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.7398, allocations: 5.281 kB / 0.8306 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.7398, allocations: 2.688 kB / 0.8306 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005675/0.7404, allocations: 82.98 kB / 0.8307 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005469/0.7409, allocations: 138 kB / 0.8309 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002011/0.743, allocations: 1.648 MB / 0.8325 GB, free: 15.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006188/0.7436, allocations: 83.02 kB / 0.8325 GB, free: 15.85 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.582e-05/0.7437, allocations: 27.8 kB / 0.8326 GB, free: 15.84 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.0004168/0.7441, allocations: 270.1 kB / 0.8328 GB, free: 15.62 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.7442, allocations: 72.91 kB / 0.8329 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002063/0.7463, allocations: 0.9559 MB / 0.8338 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.7463, allocations: 7.75 kB / 0.8338 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.7463, allocations: 2.219 kB / 0.8338 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.7463, allocations: 7.984 kB / 0.8339 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002951/0.7493, allocations: 1.823 MB / 0.8356 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.7493, allocations: 1.812 kB / 0.8356 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005005/0.7498, allocations: 143.7 kB / 0.8358 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004355/0.7503, allocations: 81.72 kB / 0.8358 GB, free: 13.74 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.854e-05/0.7503, allocations: 19.89 kB / 0.8359 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001929/0.7523, allocations: 1.669 MB / 0.8375 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.7523, allocations: 0 / 0.8375 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.7542, allocations: 0.8982 MB / 0.8384 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003972/0.7546, allocations: 254.9 kB / 0.8386 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.7547, allocations: 21.06 kB / 0.8386 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005405/0.7553, allocations: 53.03 kB / 0.8387 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.7554, allocations: 52.2 kB / 0.8387 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-05/0.7555, allocations: 36.59 kB / 0.8388 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005304/0.756, allocations: 423 kB / 0.8392 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.756, allocations: 0 / 0.8392 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008163/0.7569, allocations: 286 kB / 0.8395 GB, free: 10.95 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.001387/0.7583, allocations: 0.5928 MB / 0.84 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001604/0.7599, allocations: 0.7502 MB / 0.8408 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.7599, allocations: 0 / 0.8408 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008175/0.7607, allocations: 495.8 kB / 0.8412 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.7618, allocations: 284.6 kB / 0.8415 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.7655, allocations: 1.654 MB / 0.8431 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006127/0.7661, allocations: 0.9928 MB / 0.8441 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002657/0.7664, allocations: 108.1 kB / 0.8442 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of SimCode: time 4.21e-07/0.7664, allocations: 0 / 0.8442 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of Templates: time 0.02298/0.7893, allocations: 17.2 MB / 0.861 GB, free: 6.844 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.makefile make -j1 -f IDEAS_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/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.Examples.ZenithAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleFunctions.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.Examples.ZenithAngleCalcHelperMain.o] Error 1