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.001139/0.001139, allocations: 111.1 kB / 16.41 MB, free: 6.027 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.001319/0.001319, allocations: 180.2 kB / 17.34 MB, free: 5.633 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.34/1.34, 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.7884/0.7884, allocations: 135.1 MB / 426.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 61.78 kB / 0.5862 GB, free: 21.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1579, allocations: 80.92 MB / 0.6653 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.006244/0.1642, allocations: 4.076 MB / 0.6693 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6141/0.7783, allocations: 150.5 MB / 0.8162 GB, free: 8.609 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/0.7794, allocations: 19.56 kB / 0.8162 GB, free: 8.602 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007208/0.7802, allocations: 166.5 kB / 0.8164 GB, free: 8.512 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002127/0.7824, allocations: 483.9 kB / 0.8168 GB, free: 8.316 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00226/0.7847, allocations: 0.7908 MB / 0.8176 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00153/0.7862, allocations: 1.174 MB / 0.8187 GB, free: 7.77 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009228/0.7871, allocations: 0.6226 MB / 0.8193 GB, free: 7.574 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007689/0.7879, allocations: 424.1 kB / 0.8197 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005877/0.7885, allocations: 449.9 kB / 0.8202 GB, free: 7.238 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001386/0.7886, allocations: 101.7 kB / 0.8203 GB, free: 7.238 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001009/0.7897, allocations: 475.7 kB / 0.8207 GB, free: 7.152 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002383/0.7899, allocations: 270.1 kB / 0.821 GB, free: 7.059 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004251/0.7903, allocations: 0.4905 MB / 0.8215 GB, free: 6.703 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001755/0.7921, allocations: 1.488 MB / 0.8229 GB, free: 5.633 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.7921, allocations: 0 / 0.8229 GB, free: 5.633 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.014e-06/0.7921, allocations: 0 / 0.8229 GB, free: 5.633 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.677e-05/0.7922, allocations: 0 / 0.8229 GB, free: 5.633 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.002268/0.7944, allocations: 1.312 MB / 0.8242 GB, free: 4.582 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.7945, allocations: 10.11 kB / 0.8242 GB, free: 4.582 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009127/0.7954, allocations: 179 kB / 0.8244 GB, free: 4.496 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.7965, allocations: 0.7257 MB / 0.8251 GB, free: 3.895 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.881e-05/0.7966, allocations: 58.5 kB / 0.8251 GB, free: 3.871 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.19e-05/0.7967, allocations: 74.94 kB / 0.8252 GB, free: 3.848 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.7981, allocations: 0.8554 MB / 0.8261 GB, free: 3.289 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.7981, allocations: 1.219 kB / 0.8261 GB, free: 3.289 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-05/0.7982, allocations: 35.48 kB / 0.8261 GB, free: 3.262 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.7982, allocations: 19.97 kB / 0.8261 GB, free: 3.262 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.7997, allocations: 1.066 MB / 0.8271 GB, free: 2.75 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003355/0.8031, allocations: 2.342 MB / 0.8294 GB, free: 0.9336 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.8044, allocations: 0.7928 MB / 0.8302 GB, free: 488 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004574/0.8049, allocations: 274.2 kB / 0.8305 GB, free: 348 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.639e-05/0.8049, allocations: 27.48 kB / 0.8305 GB, free: 336 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007123/0.8057, allocations: 433.3 kB / 0.8309 GB, free: 48 kB / 0.5919 GB Notification: Performance of pre-optimization done (n=70): time 3.596e-06/0.8057, allocations: 3.75 kB / 0.8309 GB, free: 48 kB / 0.5919 GB Notification: Performance of matching and sorting (n=70): time 0.00286/0.8085, allocations: 1.068 MB / 0.832 GB, free: 15.45 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.8087, allocations: 188.1 kB / 0.8321 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007076/0.8094, allocations: 0.5826 MB / 0.8327 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.905e-05/0.8095, allocations: 38.95 kB / 0.8327 GB, free: 14.85 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003218/0.8098, allocations: 367.1 kB / 0.8331 GB, free: 14.52 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.81, allocations: 235.1 kB / 0.8333 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/0.8102, allocations: 147.2 kB / 0.8335 GB, free: 14.23 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.8104, allocations: 375.8 kB / 0.8338 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004331/0.8108, allocations: 234.1 kB / 0.834 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005196/0.8113, allocations: 324.5 kB / 0.8343 GB, free: 13.57 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009406/0.8123, allocations: 0.5479 MB / 0.8349 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.8123, allocations: 0 / 0.8349 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001715/0.814, allocations: 0.7581 MB / 0.8356 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.814, allocations: 14.95 kB / 0.8356 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.8141, allocations: 0 / 0.8356 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005857/0.8147, allocations: 84.17 kB / 0.8357 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005453/0.8152, allocations: 143.8 kB / 0.8359 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002082/0.8173, allocations: 1.646 MB / 0.8375 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006561/0.818, allocations: 73.52 kB / 0.8375 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-05/0.818, allocations: 31.66 kB / 0.8376 GB, free: 11.12 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.0004355/0.8185, allocations: 258.4 kB / 0.8378 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.8186, allocations: 74.31 kB / 0.8379 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002055/0.8207, allocations: 0.9659 MB / 0.8388 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.8207, allocations: 10.94 kB / 0.8388 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.8207, allocations: 0 / 0.8388 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.8207, allocations: 3.984 kB / 0.8388 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.8237, allocations: 1.832 MB / 0.8406 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.8237, allocations: 0 / 0.8406 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005097/0.8242, allocations: 140 kB / 0.8408 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000428/0.8246, allocations: 78.91 kB / 0.8408 GB, free: 9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/0.8247, allocations: 19.17 kB / 0.8409 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001869/0.8266, allocations: 1.668 MB / 0.8425 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.8266, allocations: 0 / 0.8425 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.8283, allocations: 0.9027 MB / 0.8434 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003515/0.8287, allocations: 253.2 kB / 0.8436 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.8288, allocations: 18.69 kB / 0.8436 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005415/0.8294, allocations: 52.81 kB / 0.8437 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.8295, allocations: 58.89 kB / 0.8437 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.676e-05/0.8296, allocations: 29.8 kB / 0.8438 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005058/0.8301, allocations: 429.4 kB / 0.8442 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8301, allocations: 0 / 0.8442 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008392/0.831, allocations: 283.7 kB / 0.8444 GB, free: 6.207 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.001408/0.8324, allocations: 0.5917 MB / 0.845 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00159/0.834, allocations: 0.7469 MB / 0.8457 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.834, allocations: 2.219 kB / 0.8457 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008243/0.8348, allocations: 493.8 kB / 0.8462 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001233/0.8361, allocations: 279.2 kB / 0.8465 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00368/0.8398, allocations: 1.661 MB / 0.8481 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005821/0.8404, allocations: 0.9875 MB / 0.8491 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.8406, allocations: 111.3 kB / 0.8492 GB, free: 2.219 MB / 0.6075 GB Notification: Performance of SimCode: time 9.22e-07/0.8407, allocations: 0 / 0.8492 GB, free: 2.219 MB / 0.6075 GB Notification: Performance of Templates: time 0.0254/0.8661, allocations: 17.08 MB / 0.8659 GB, free: 1.152 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