Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.BaseClasses.Examples.AltitudeAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001285/0.001285, allocations: 107.8 kB / 16.27 MB, free: 5.988 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.001247/0.001248, allocations: 192.3 kB / 17.2 MB, free: 5.613 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.41/1.41, allocations: 222.9 MB / 240.9 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8308/0.8308, allocations: 135.2 MB / 426.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002016, allocations: 63.89 kB / 0.506 GB, free: 8.375 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3135, allocations: 80.93 MB / 0.5851 GB, free: 25.3 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.004879/0.3184, allocations: 4.13 MB / 0.5891 GB, free: 22.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1679/0.4864, allocations: 150.5 MB / 0.736 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00079/0.4872, allocations: 23.81 kB / 0.7361 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006646/0.4879, allocations: 166.5 kB / 0.7362 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001755/0.4897, allocations: 480.8 kB / 0.7367 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002051/0.4917, allocations: 0.7902 MB / 0.7374 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001549/0.4933, allocations: 1.184 MB / 0.7386 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001019/0.4943, allocations: 0.6062 MB / 0.7392 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006998/0.495, allocations: 434.5 kB / 0.7396 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006817/0.4957, allocations: 453.9 kB / 0.74 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002158/0.496, allocations: 104 kB / 0.7401 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009667/0.4969, allocations: 447.7 kB / 0.7406 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003387/0.4973, allocations: 267.2 kB / 0.7408 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006224/0.4979, allocations: 0.4973 MB / 0.7413 GB, free: 10 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.4998, allocations: 1.449 MB / 0.7427 GB, free: 8.547 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.4998, allocations: 4 kB / 0.7427 GB, free: 8.543 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.323e-06/0.4998, allocations: 3.938 kB / 0.7427 GB, free: 8.539 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.544e-05/0.4998, allocations: 0 / 0.7427 GB, free: 8.539 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002271/0.5021, allocations: 1.323 MB / 0.744 GB, free: 7.168 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.5021, allocations: 9.109 kB / 0.744 GB, free: 7.16 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009397/0.5031, allocations: 179.5 kB / 0.7442 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.5041, allocations: 0.7033 MB / 0.7449 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.794e-05/0.5042, allocations: 62 kB / 0.7449 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.5043, allocations: 76 kB / 0.745 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.5058, allocations: 0.8676 MB / 0.7459 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.5058, allocations: 3.938 kB / 0.7459 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.211e-05/0.5059, allocations: 36 kB / 0.7459 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.5059, allocations: 20 kB / 0.7459 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002007/0.508, allocations: 1.077 MB / 0.747 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004288/0.5123, allocations: 2.367 MB / 0.7493 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.5137, allocations: 0.8099 MB / 0.7501 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005727/0.5143, allocations: 278.7 kB / 0.7503 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.654e-05/0.5144, allocations: 32.69 kB / 0.7504 GB, free: 488 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008645/0.5153, allocations: 435.1 kB / 0.7508 GB, free: 32 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=73): time 2.665e-06/0.5153, allocations: 0 / 0.7508 GB, free: 32 kB / 0.5762 GB Notification: Performance of matching and sorting (n=73): time 0.2604/0.7757, allocations: 1.078 MB / 0.7518 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.103e-05/0.7758, allocations: 189 kB / 0.752 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008925/0.7767, allocations: 0.5857 MB / 0.7526 GB, free: 165 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.671e-05/0.7768, allocations: 38.52 kB / 0.7526 GB, free: 165 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/0.7771, allocations: 378.6 kB / 0.753 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/0.7773, allocations: 240 kB / 0.7532 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000224/0.7775, allocations: 154 kB / 0.7534 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.7777, allocations: 379.7 kB / 0.7537 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005019/0.7782, allocations: 240.6 kB / 0.754 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006197/0.7788, allocations: 331 kB / 0.7543 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.7799, allocations: 0.5649 MB / 0.7548 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.7799, allocations: 2.203 kB / 0.7548 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00192/0.7819, allocations: 0.784 MB / 0.7556 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.7819, allocations: 6.594 kB / 0.7556 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.7819, allocations: 2.156 kB / 0.7556 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006258/0.7825, allocations: 81.56 kB / 0.7557 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006658/0.7832, allocations: 153 kB / 0.7558 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/0.7851, allocations: 1.64 MB / 0.7574 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006437/0.7858, allocations: 78.28 kB / 0.7575 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.579e-05/0.7859, allocations: 37.03 kB / 0.7575 GB, free: 161.7 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.0003811/0.7863, allocations: 253.3 kB / 0.7578 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.7864, allocations: 79.22 kB / 0.7579 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002506/0.7889, allocations: 1.007 MB / 0.7588 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/0.789, allocations: 8.719 kB / 0.7588 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.789, allocations: 0.5625 kB / 0.7588 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.789, allocations: 5.141 kB / 0.7589 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003175/0.7922, allocations: 1.867 MB / 0.7607 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.7922, allocations: 2 kB / 0.7607 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005767/0.7928, allocations: 144.2 kB / 0.7608 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004357/0.7932, allocations: 73.31 kB / 0.7609 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.408e-05/0.7933, allocations: 25.08 kB / 0.7609 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/0.7948, allocations: 1.657 MB / 0.7625 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.7948, allocations: 1.969 kB / 0.7625 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/0.7965, allocations: 0.9157 MB / 0.7634 GB, free: 158 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002617/0.7968, allocations: 257.1 kB / 0.7637 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.7969, allocations: 31.94 kB / 0.7637 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005603/0.7975, allocations: 52.05 kB / 0.7638 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.7976, allocations: 62.44 kB / 0.7638 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.725e-05/0.7977, allocations: 29.64 kB / 0.7638 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004653/0.7981, allocations: 428.9 kB / 0.7642 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7981, allocations: 1.062 kB / 0.7642 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007812/0.7989, allocations: 286.5 kB / 0.7645 GB, free: 157.3 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 (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.001716/0.8007, allocations: 0.6005 MB / 0.7651 GB, free: 157.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001853/0.8025, allocations: 0.95 MB / 0.766 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.8025, allocations: 7.625 kB / 0.766 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007185/0.8033, allocations: 491.8 kB / 0.7665 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.8043, allocations: 290.9 kB / 0.7668 GB, free: 156 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003155/0.8075, allocations: 1.718 MB / 0.7685 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.8078, allocations: 1.002 MB / 0.7694 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002554/0.8081, allocations: 111.9 kB / 0.7696 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of SimCode: time 6.11e-07/0.8081, allocations: 4 kB / 0.7696 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.01584/0.8239, allocations: 17.1 MB / 0.7863 GB, free: 136.1 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.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.BaseClasses.Examples.AltitudeAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngleFunctions.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.BaseClasses.Examples.AltitudeAngleCalcHelperMain.o] Error 1