Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001208, allocations: 107.9 kB / 16.27 MB, free: 6.004 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.001182/0.001182, allocations: 187.4 kB / 17.2 MB, free: 5.617 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.346/1.346, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8166/0.8166, allocations: 132.2 MB / 423.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 63.91 kB / 0.5024 GB, free: 11.64 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3194, allocations: 80.18 MB / 0.5807 GB, free: 27.21 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.005278/0.3247, allocations: 4.915 MB / 0.5855 GB, free: 23.35 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1504/0.4751, allocations: 150.9 MB / 0.7329 GB, free: 1.887 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009064/0.476, allocations: 23.88 kB / 0.7329 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006161/0.4767, allocations: 190.1 kB / 0.7331 GB, free: 1.676 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001766/0.4785, allocations: 0.5783 MB / 0.7337 GB, free: 1.098 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002019/0.4805, allocations: 0.8838 MB / 0.7345 GB, free: 228 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001484/0.482, allocations: 1.581 MB / 0.7361 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001291/0.4833, allocations: 1.071 MB / 0.7371 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007874/0.4841, allocations: 0.6694 MB / 0.7378 GB, free: 12.85 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007627/0.4849, allocations: 0.7428 MB / 0.7385 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002175/0.4851, allocations: 176 kB / 0.7387 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009485/0.4861, allocations: 0.5074 MB / 0.7392 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003256/0.4864, allocations: 418.6 kB / 0.7396 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006677/0.4871, allocations: 0.7772 MB / 0.7403 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002035/0.4891, allocations: 2.13 MB / 0.7424 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4892, allocations: 0 / 0.7424 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4892, allocations: 0 / 0.7424 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.085e-05/0.4892, allocations: 4 kB / 0.7424 GB, free: 8.09 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.002952/0.4922, allocations: 1.783 MB / 0.7441 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.4922, allocations: 9.109 kB / 0.7442 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.4932, allocations: 226.9 kB / 0.7444 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.4944, allocations: 0.8914 MB / 0.7452 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.03e-05/0.4945, allocations: 106.9 kB / 0.7453 GB, free: 4.984 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001687/0.4947, allocations: 136 kB / 0.7455 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.497, allocations: 1.424 MB / 0.7469 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.497, allocations: 0 / 0.7469 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.4971, allocations: 60 kB / 0.7469 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.714e-05/0.4972, allocations: 36 kB / 0.747 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002587/0.4997, allocations: 1.509 MB / 0.7484 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2443/0.7441, allocations: 3.78 MB / 0.7521 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/0.7459, allocations: 0.9556 MB / 0.7531 GB, free: 165 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007002/0.7466, allocations: 396.5 kB / 0.7534 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.66e-05/0.7467, allocations: 47.39 kB / 0.7535 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/0.7479, allocations: 0.5797 MB / 0.754 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=104): time 2.825e-06/0.7479, allocations: 0.5 kB / 0.754 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=104): time 0.003969/0.7519, allocations: 1.48 MB / 0.7555 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.752, allocations: 194.3 kB / 0.7557 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.7531, allocations: 0.7638 MB / 0.7564 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.377e-05/0.7532, allocations: 43.58 kB / 0.7565 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003549/0.7535, allocations: 0.5625 MB / 0.757 GB, free: 163 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002244/0.7537, allocations: 345.3 kB / 0.7573 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003773/0.7541, allocations: 220.9 kB / 0.7575 GB, free: 162.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.689e-05/0.7542, allocations: 345.5 kB / 0.7579 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007926/0.755, allocations: 362.4 kB / 0.7582 GB, free: 162 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008946/0.7559, allocations: 479.2 kB / 0.7587 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.7574, allocations: 0.8268 MB / 0.7595 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.7574, allocations: 1.25 kB / 0.7595 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002311/0.7597, allocations: 1.116 MB / 0.7606 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.7597, allocations: 4.688 kB / 0.7606 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.7597, allocations: 0.875 kB / 0.7606 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006252/0.7604, allocations: 88.77 kB / 0.7607 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009406/0.7613, allocations: 219.6 kB / 0.7609 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001714/0.7631, allocations: 1.65 MB / 0.7625 GB, free: 159.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008272/0.7639, allocations: 110.7 kB / 0.7626 GB, free: 159 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.348e-05/0.764, allocations: 49.69 kB / 0.7626 GB, free: 159 MB / 0.5762 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 (125): * Single equations (assignments): 124 * 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.000465/0.7645, allocations: 310.8 kB / 0.7629 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002219/0.7647, allocations: 105.9 kB / 0.763 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003003/0.7677, allocations: 1.39 MB / 0.7644 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.7677, allocations: 12.81 kB / 0.7644 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.7677, allocations: 0 / 0.7644 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.7677, allocations: 5.297 kB / 0.7644 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00369/0.7714, allocations: 2.555 MB / 0.7669 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.7715, allocations: 0 / 0.7669 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007384/0.7722, allocations: 195.6 kB / 0.7671 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004285/0.7726, allocations: 81.66 kB / 0.7672 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.843e-05/0.7727, allocations: 31.09 kB / 0.7672 GB, free: 156.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00149/0.7742, allocations: 1.678 MB / 0.7688 GB, free: 154.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.7742, allocations: 0 / 0.7688 GB, free: 154.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001999/0.7762, allocations: 1.169 MB / 0.77 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/0.7766, allocations: 317.1 kB / 0.7703 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.7767, allocations: 28.75 kB / 0.7703 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006777/0.7774, allocations: 60.36 kB / 0.7704 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.7775, allocations: 78.58 kB / 0.7704 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.775e-05/0.7776, allocations: 41.94 kB / 0.7705 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005597/0.7782, allocations: 0.5739 MB / 0.771 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7782, allocations: 0 / 0.771 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008302/0.779, allocations: 399.3 kB / 0.7714 GB, free: 152.6 MB / 0.5762 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 (115): * Single equations (assignments): 112 * 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.001178/0.7802, allocations: 0.6111 MB / 0.772 GB, free: 152.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002642/0.7829, allocations: 1.284 MB / 0.7733 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.7829, allocations: 4 kB / 0.7733 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008962/0.7838, allocations: 0.6165 MB / 0.7739 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.7849, allocations: 306.3 kB / 0.7742 GB, free: 150 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003859/0.7888, allocations: 2.401 MB / 0.7765 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.7893, allocations: 1.162 MB / 0.7777 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003504/0.7896, allocations: 147.3 kB / 0.7778 GB, free: 146.3 MB / 0.5762 GB Notification: Performance of SimCode: time 3.01e-07/0.7896, allocations: 0 / 0.7778 GB, free: 146.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.02064/0.8103, allocations: 23.75 MB / 0.801 GB, free: 122.6 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.IncidenceAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleFunctions.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.IncidenceAngleCalcHelperMain.o] Error 1