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.001438/0.001438, allocations: 106.5 kB / 16.41 MB, free: 6.492 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.001575/0.001575, allocations: 189.5 kB / 17.34 MB, free: 5.75 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.347/1.347, 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/package.mo): time 0.8/0.8, allocations: 132.2 MB / 423.4 MB, free: 6.641 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 57.12 kB / 0.582 GB, free: 23.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.159, allocations: 80.21 MB / 0.6603 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.006455/0.1655, allocations: 4.14 MB / 0.6644 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5089/0.6745, allocations: 150.5 MB / 0.8113 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008052/0.6753, allocations: 20.94 kB / 0.8113 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005512/0.6759, allocations: 168 kB / 0.8115 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001529/0.6775, allocations: 478.2 kB / 0.8119 GB, free: 11.56 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001844/0.6793, allocations: 0.7985 MB / 0.8127 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001241/0.6806, allocations: 1.197 MB / 0.8139 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007983/0.6814, allocations: 0.6126 MB / 0.8145 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000609/0.682, allocations: 441 kB / 0.8149 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004803/0.6825, allocations: 447.5 kB / 0.8153 GB, free: 11 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001522/0.6826, allocations: 103.6 kB / 0.8154 GB, free: 11 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000909/0.6836, allocations: 480 kB / 0.8159 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.6838, allocations: 271.9 kB / 0.8161 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003977/0.6842, allocations: 0.4935 MB / 0.8166 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001644/0.6858, allocations: 1.481 MB / 0.8181 GB, free: 10 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.954e-06/0.6859, allocations: 0 / 0.8181 GB, free: 10 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.655e-06/0.6859, allocations: 0 / 0.8181 GB, free: 10 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.153e-05/0.6859, allocations: 0 / 0.8181 GB, free: 10 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002177/0.6881, allocations: 1.336 MB / 0.8194 GB, free: 9.098 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.6881, allocations: 10.91 kB / 0.8194 GB, free: 9.098 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009097/0.6891, allocations: 179.1 kB / 0.8196 GB, free: 9.016 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.6901, allocations: 0.7304 MB / 0.8203 GB, free: 8.5 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.556e-05/0.6901, allocations: 57.47 kB / 0.8203 GB, free: 8.477 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.414e-05/0.6902, allocations: 76.28 kB / 0.8204 GB, free: 8.453 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.6916, allocations: 0.8669 MB / 0.8212 GB, free: 7.887 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.6917, allocations: 0 / 0.8212 GB, free: 7.887 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-05/0.6917, allocations: 34.41 kB / 0.8213 GB, free: 7.863 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.6918, allocations: 18.22 kB / 0.8213 GB, free: 7.863 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/0.6933, allocations: 1.076 MB / 0.8223 GB, free: 7.348 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003617/0.697, allocations: 2.348 MB / 0.8246 GB, free: 5.562 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.6983, allocations: 0.7983 MB / 0.8254 GB, free: 5.113 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004722/0.6987, allocations: 283.3 kB / 0.8257 GB, free: 4.973 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.555e-05/0.6988, allocations: 28.08 kB / 0.8257 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000753/0.6996, allocations: 428.8 kB / 0.8261 GB, free: 4.688 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=73): time 3.367e-06/0.6996, allocations: 4 kB / 0.8261 GB, free: 4.684 MB / 0.5919 GB Notification: Performance of matching and sorting (n=73): time 0.002958/0.7026, allocations: 1.079 MB / 0.8272 GB, free: 4.09 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.7027, allocations: 195.8 kB / 0.8274 GB, free: 3.863 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009073/0.7036, allocations: 0.5845 MB / 0.8279 GB, free: 3.523 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.896e-05/0.7037, allocations: 36.48 kB / 0.828 GB, free: 3.484 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000416/0.7042, allocations: 384.7 kB / 0.8283 GB, free: 3.148 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002499/0.7044, allocations: 235.7 kB / 0.8286 GB, free: 2.949 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/0.7047, allocations: 149.8 kB / 0.8287 GB, free: 2.859 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001977/0.7049, allocations: 384.4 kB / 0.8291 GB, free: 2.492 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004806/0.7054, allocations: 238.5 kB / 0.8293 GB, free: 2.375 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005724/0.706, allocations: 332.1 kB / 0.8296 GB, free: 2.176 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.707, allocations: 0.5605 MB / 0.8302 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.707, allocations: 2.875 kB / 0.8302 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001931/0.709, allocations: 0.7874 MB / 0.8309 GB, free: 1.457 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.709, allocations: 6.906 kB / 0.8309 GB, free: 1.457 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.709, allocations: 0 / 0.8309 GB, free: 1.457 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005759/0.7096, allocations: 82.84 kB / 0.831 GB, free: 1.418 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005864/0.7102, allocations: 146.3 kB / 0.8312 GB, free: 1.383 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.7123, allocations: 1.643 MB / 0.8328 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006714/0.713, allocations: 80.64 kB / 0.8328 GB, free: 15.72 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-05/0.713, allocations: 32.2 kB / 0.8329 GB, free: 15.71 MB / 0.6075 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.0004314/0.7135, allocations: 254.7 kB / 0.8331 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.7136, allocations: 80.12 kB / 0.8332 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/0.7157, allocations: 1.001 MB / 0.8342 GB, free: 14.9 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.7158, allocations: 10.19 kB / 0.8342 GB, free: 14.9 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.7158, allocations: 0 / 0.8342 GB, free: 14.9 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.7158, allocations: 7.984 kB / 0.8342 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003001/0.7188, allocations: 1.857 MB / 0.836 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.7188, allocations: 7.875 kB / 0.836 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005442/0.7194, allocations: 149 kB / 0.8362 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004411/0.7198, allocations: 70.89 kB / 0.8362 GB, free: 13.58 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.057e-05/0.7199, allocations: 27.33 kB / 0.8362 GB, free: 13.56 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001822/0.7217, allocations: 1.644 MB / 0.8379 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.7217, allocations: 4.062 kB / 0.8379 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.7236, allocations: 0.9231 MB / 0.8388 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000369/0.7239, allocations: 261 kB / 0.839 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.7241, allocations: 21.02 kB / 0.839 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000559/0.7246, allocations: 48.58 kB / 0.8391 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.7248, allocations: 63.69 kB / 0.8391 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.885e-05/0.7248, allocations: 35.58 kB / 0.8392 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005072/0.7253, allocations: 430.4 kB / 0.8396 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7253, allocations: 0 / 0.8396 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0007935/0.7261, allocations: 290.9 kB / 0.8399 GB, free: 10.78 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 (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.001324/0.7275, allocations: 0.5971 MB / 0.8404 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001507/0.729, allocations: 0.7616 MB / 0.8412 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.729, allocations: 0 / 0.8412 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000813/0.7298, allocations: 0.4886 MB / 0.8417 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001167/0.731, allocations: 285.8 kB / 0.8419 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003705/0.7347, allocations: 1.704 MB / 0.8436 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005678/0.7353, allocations: 0.9954 MB / 0.8446 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003035/0.7356, allocations: 115.4 kB / 0.8447 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of SimCode: time 8.52e-07/0.7356, allocations: 0 / 0.8447 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of Templates: time 0.02262/0.7583, allocations: 17.3 MB / 0.8616 GB, free: 6.289 MB / 0.6231 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++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.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