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.001369/0.001369, allocations: 107.5 kB / 16.41 MB, free: 6.508 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.001492/0.001492, allocations: 187 kB / 17.34 MB, free: 5.742 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.322/1.322, 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/package.mo): time 0.772/0.772, allocations: 132.2 MB / 423.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 57.16 kB / 0.582 GB, free: 23.81 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.1637, allocations: 80.2 MB / 0.6603 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.006097/0.1699, allocations: 4.087 MB / 0.6643 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6118/0.7817, allocations: 150.4 MB / 0.8112 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007464/0.7824, allocations: 21.16 kB / 0.8112 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005474/0.783, allocations: 161.2 kB / 0.8114 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001417/0.7845, allocations: 475.6 kB / 0.8118 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001687/0.7862, allocations: 0.8003 MB / 0.8126 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001041/0.7872, allocations: 1.177 MB / 0.8138 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007916/0.788, allocations: 0.6089 MB / 0.8144 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005112/0.7885, allocations: 433.9 kB / 0.8148 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004596/0.789, allocations: 442.8 kB / 0.8152 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001373/0.7892, allocations: 103.5 kB / 0.8153 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008003/0.79, allocations: 481 kB / 0.8158 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000218/0.7902, allocations: 260.5 kB / 0.816 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003508/0.7906, allocations: 498.4 kB / 0.8165 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001532/0.7921, allocations: 1.493 MB / 0.8179 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.7921, allocations: 0 / 0.8179 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.786e-06/0.7921, allocations: 2.906 kB / 0.8179 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.481e-05/0.7921, allocations: 4 kB / 0.8179 GB, free: 10.07 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.001951/0.7941, allocations: 1.31 MB / 0.8192 GB, free: 9.176 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.7942, allocations: 10.84 kB / 0.8192 GB, free: 9.176 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008525/0.795, allocations: 168.6 kB / 0.8194 GB, free: 9.098 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.796, allocations: 0.7276 MB / 0.8201 GB, free: 8.562 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.468e-05/0.7961, allocations: 61.47 kB / 0.8202 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.024e-05/0.7962, allocations: 77.91 kB / 0.8202 GB, free: 8.508 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.7975, allocations: 0.859 MB / 0.8211 GB, free: 7.949 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.7976, allocations: 2.75 kB / 0.8211 GB, free: 7.949 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.094e-05/0.7977, allocations: 31.72 kB / 0.8211 GB, free: 7.926 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.7977, allocations: 22.39 kB / 0.8211 GB, free: 7.922 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.7992, allocations: 1.059 MB / 0.8222 GB, free: 7.418 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00333/0.8025, allocations: 2.345 MB / 0.8245 GB, free: 5.621 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/0.8038, allocations: 0.8006 MB / 0.8252 GB, free: 5.164 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004604/0.8043, allocations: 276.8 kB / 0.8255 GB, free: 5.023 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.171e-05/0.8044, allocations: 33.08 kB / 0.8255 GB, free: 5.012 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007148/0.8051, allocations: 418.5 kB / 0.8259 GB, free: 4.746 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=70): time 2.154e-06/0.8051, allocations: 0 / 0.8259 GB, free: 4.746 MB / 0.5919 GB Notification: Performance of matching and sorting (n=70): time 0.002755/0.8079, allocations: 1.068 MB / 0.827 GB, free: 4.152 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.808, allocations: 188.2 kB / 0.8272 GB, free: 3.934 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006679/0.8086, allocations: 0.5857 MB / 0.8277 GB, free: 3.59 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.616e-05/0.8087, allocations: 37.2 kB / 0.8278 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/0.809, allocations: 365.2 kB / 0.8281 GB, free: 3.23 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001796/0.8092, allocations: 234.5 kB / 0.8283 GB, free: 3.031 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002053/0.8094, allocations: 145 kB / 0.8285 GB, free: 2.945 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001732/0.8096, allocations: 382.3 kB / 0.8288 GB, free: 2.578 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004323/0.81, allocations: 236.1 kB / 0.8291 GB, free: 2.461 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000529/0.8106, allocations: 324.1 kB / 0.8294 GB, free: 2.27 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009322/0.8115, allocations: 0.5461 MB / 0.8299 GB, free: 1.977 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.8115, allocations: 3.844 kB / 0.8299 GB, free: 1.977 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001695/0.8132, allocations: 0.7679 MB / 0.8307 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.8132, allocations: 5.125 kB / 0.8307 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.8133, allocations: 2.75 kB / 0.8307 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005568/0.8138, allocations: 83.36 kB / 0.8307 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005561/0.8144, allocations: 139.5 kB / 0.8309 GB, free: 1.504 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002126/0.8165, allocations: 1.638 MB / 0.8325 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006478/0.8172, allocations: 87 kB / 0.8326 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.414e-05/0.8173, allocations: 31.42 kB / 0.8326 GB, free: 15.82 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.0004295/0.8177, allocations: 257 kB / 0.8328 GB, free: 15.62 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.8178, allocations: 78.19 kB / 0.8329 GB, free: 15.58 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002072/0.8199, allocations: 0.9595 MB / 0.8338 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.8199, allocations: 11.75 kB / 0.8339 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.8199, allocations: 0 / 0.8339 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.82, allocations: 3.984 kB / 0.8339 GB, free: 15.03 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.8229, allocations: 1.836 MB / 0.8357 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/0.8229, allocations: 8 kB / 0.8357 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005027/0.8235, allocations: 129.3 kB / 0.8358 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004361/0.8239, allocations: 79.03 kB / 0.8359 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.154e-05/0.824, allocations: 21.08 kB / 0.8359 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001901/0.8259, allocations: 1.67 MB / 0.8375 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.8259, allocations: 0 / 0.8375 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.8277, allocations: 0.8936 MB / 0.8384 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003285/0.828, allocations: 254.9 kB / 0.8386 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.8281, allocations: 21.19 kB / 0.8386 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005207/0.8286, allocations: 53.09 kB / 0.8387 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.8288, allocations: 56.52 kB / 0.8388 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.14e-05/0.8288, allocations: 32.53 kB / 0.8388 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005305/0.8294, allocations: 423.7 kB / 0.8392 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8294, allocations: 4 kB / 0.8392 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008047/0.8302, allocations: 281.2 kB / 0.8395 GB, free: 10.93 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.001321/0.8315, allocations: 0.6009 MB / 0.84 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001509/0.8331, allocations: 0.7479 MB / 0.8408 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.8331, allocations: 0 / 0.8408 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007979/0.8339, allocations: 492.5 kB / 0.8412 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.835, allocations: 287.5 kB / 0.8415 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0036/0.8386, allocations: 1.654 MB / 0.8431 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000561/0.8392, allocations: 0.9931 MB / 0.8441 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000278/0.8395, allocations: 109 kB / 0.8442 GB, free: 8 MB / 0.6075 GB Notification: Performance of SimCode: time 2.405e-06/0.8395, allocations: 0 / 0.8442 GB, free: 8 MB / 0.6075 GB Notification: Performance of Templates: time 0.02224/0.8618, allocations: 17.07 MB / 0.8609 GB, free: 6.949 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