Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.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.BaseClasses.Examples.AltitudeAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 103.4 kB / 15.98 MB, free: 5.891 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.001121/0.001121, allocations: 189.5 kB / 16.91 MB, free: 5.746 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 / 240.6 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7343/0.7343, allocations: 132.2 MB / 422.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.001301, allocations: 58.56 kB / 0.5019 GB, free: 4.152 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.418/0.4193, allocations: 80.21 MB / 0.5802 GB, free: 4.512 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.005536/0.4249, allocations: 4.162 MB / 0.5843 GB, free: 1.562 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.177/0.602, allocations: 148.2 MB / 0.7291 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001084/0.6031, allocations: 15.94 kB / 0.7291 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007096/0.6038, allocations: 135 kB / 0.7292 GB, free: 8.547 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002162/0.606, allocations: 420.5 kB / 0.7296 GB, free: 8.137 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00241/0.6085, allocations: 0.7146 MB / 0.7303 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001755/0.6102, allocations: 1.192 MB / 0.7315 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009494/0.6112, allocations: 0.6023 MB / 0.732 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007026/0.6119, allocations: 438.4 kB / 0.7325 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000536/0.6124, allocations: 461.9 kB / 0.7329 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001282/0.6126, allocations: 100 kB / 0.733 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009841/0.6136, allocations: 443.6 kB / 0.7334 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002482/0.6138, allocations: 279.1 kB / 0.7337 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004474/0.6143, allocations: 0.4896 MB / 0.7342 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001466/0.6157, allocations: 1.107 MB / 0.7352 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.6158, allocations: 0 / 0.7352 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6158, allocations: 0 / 0.7352 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.332e-05/0.6158, allocations: 0 / 0.7352 GB, free: 2.336 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002334/0.6181, allocations: 1.33 MB / 0.7365 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.6182, allocations: 16.03 kB / 0.7366 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009338/0.6191, allocations: 179.5 kB / 0.7367 GB, free: 0.7617 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009871/0.6201, allocations: 0.6994 MB / 0.7374 GB, free: 16 kB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.236e-05/0.6202, allocations: 58.08 kB / 0.7375 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.785e-05/0.6203, allocations: 79.98 kB / 0.7376 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.6218, allocations: 0.8676 MB / 0.7384 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.6218, allocations: 4 kB / 0.7384 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.639e-05/0.6219, allocations: 36 kB / 0.7384 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.736e-05/0.622, allocations: 16 kB / 0.7385 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/0.6236, allocations: 1.065 MB / 0.7395 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003914/0.6276, allocations: 2.39 MB / 0.7418 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001303/0.6289, allocations: 0.7963 MB / 0.7426 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.6294, allocations: 278.7 kB / 0.7429 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001055/0.6295, allocations: 36.67 kB / 0.7429 GB, free: 10.26 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008471/0.6304, allocations: 431.2 kB / 0.7433 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=73): time 2.725e-06/0.6304, allocations: 0 / 0.7433 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73): time 0.003098/0.6335, allocations: 1.084 MB / 0.7444 GB, free: 8.711 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.6336, allocations: 192.5 kB / 0.7446 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007856/0.6344, allocations: 0.5861 MB / 0.7451 GB, free: 7.891 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.883e-05/0.6345, allocations: 37.7 kB / 0.7452 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003115/0.6348, allocations: 376.3 kB / 0.7455 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002145/0.635, allocations: 248.4 kB / 0.7458 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.6353, allocations: 150.5 kB / 0.7459 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001859/0.6355, allocations: 386.8 kB / 0.7463 GB, free: 6.688 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004614/0.6359, allocations: 237.8 kB / 0.7465 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005586/0.6365, allocations: 328 kB / 0.7468 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000997/0.6375, allocations: 0.569 MB / 0.7474 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.6375, allocations: 0 / 0.7474 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001861/0.6394, allocations: 0.7825 MB / 0.7481 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.6394, allocations: 4 kB / 0.7481 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.6394, allocations: 8.125 kB / 0.7481 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006253/0.6401, allocations: 80.77 kB / 0.7482 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006222/0.6407, allocations: 151.8 kB / 0.7484 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002397/0.6431, allocations: 1.626 MB / 0.75 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007714/0.6439, allocations: 79.42 kB / 0.75 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.616e-05/0.644, allocations: 31.97 kB / 0.7501 GB, free: 2.621 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (85): * Single equations (assignments): 84 * 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.0004632/0.6445, allocations: 257.9 kB / 0.7503 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.6446, allocations: 87 kB / 0.7504 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00231/0.6469, allocations: 0.9901 MB / 0.7514 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.647, allocations: 8 kB / 0.7514 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.647, allocations: 4 kB / 0.7514 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.647, allocations: 7.969 kB / 0.7514 GB, free: 1.246 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003296/0.6503, allocations: 1.862 MB / 0.7532 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.6503, allocations: 0 / 0.7532 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005783/0.6509, allocations: 147.8 kB / 0.7533 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004758/0.6514, allocations: 76.78 kB / 0.7534 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.184e-05/0.6515, allocations: 23.98 kB / 0.7534 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002071/0.6536, allocations: 1.662 MB / 0.7551 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.6536, allocations: 7.969 kB / 0.7551 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002077/0.6557, allocations: 0.9103 MB / 0.756 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005788/0.6563, allocations: 259.8 kB / 0.7562 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002181/0.6565, allocations: 23.94 kB / 0.7562 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006505/0.6572, allocations: 51.94 kB / 0.7563 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.6573, allocations: 60.86 kB / 0.7563 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-05/0.6574, allocations: 31.98 kB / 0.7564 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006647/0.6581, allocations: 431 kB / 0.7568 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6581, allocations: 0 / 0.7568 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001007/0.6591, allocations: 291.2 kB / 0.757 GB, free: 11.19 MB / 0.5919 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 (87): * Single equations (assignments): 84 * 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.001509/0.6606, allocations: 0.6014 MB / 0.7576 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002375/0.663, allocations: 0.9524 MB / 0.7586 GB, free: 9.832 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.663, allocations: 0 / 0.7586 GB, free: 9.832 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009084/0.664, allocations: 0.4962 MB / 0.759 GB, free: 9.324 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/0.6655, allocations: 294.3 kB / 0.7593 GB, free: 9.07 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004274/0.6697, allocations: 2.092 MB / 0.7614 GB, free: 6.938 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007732/0.6705, allocations: 1.003 MB / 0.7624 GB, free: 5.906 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003566/0.6709, allocations: 111.4 kB / 0.7625 GB, free: 5.797 MB / 0.5919 GB Notification: Performance of SimCode: time 1.312e-06/0.6709, allocations: 0 / 0.7625 GB, free: 5.797 MB / 0.5919 GB Notification: Performance of Templates: time 0.02526/0.6962, allocations: 17.08 MB / 0.7791 GB, free: 4.781 MB / 0.6075 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.makefile clang++ -std=c++14 -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.BaseClasses.Examples.AltitudeAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleFunctions.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.BaseClasses.Examples.AltitudeAngleCalcHelperMain.o] Error 1