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.001373/0.001373, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.001302/0.001302, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.323/1.323, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7763/0.7763, allocations: 135.1 MB / 426.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 67.17 kB / 0.5863 GB, free: 21.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1826, allocations: 80.92 MB / 0.6653 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.005649/0.1883, allocations: 4.146 MB / 0.6693 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6173/0.8056, allocations: 150.5 MB / 0.8163 GB, free: 8.512 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008979/0.8066, allocations: 16.31 kB / 0.8163 GB, free: 8.508 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005909/0.8072, allocations: 164.7 kB / 0.8165 GB, free: 8.418 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001546/0.8088, allocations: 491 kB / 0.8169 GB, free: 8.223 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001813/0.8106, allocations: 0.7932 MB / 0.8177 GB, free: 7.996 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001171/0.8118, allocations: 1.193 MB / 0.8189 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000772/0.8125, allocations: 0.6063 MB / 0.8195 GB, free: 7.488 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005206/0.8131, allocations: 439.2 kB / 0.8199 GB, free: 7.348 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004546/0.8135, allocations: 455.8 kB / 0.8203 GB, free: 7.141 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.8137, allocations: 105.6 kB / 0.8204 GB, free: 7.141 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008139/0.8145, allocations: 477.2 kB / 0.8209 GB, free: 7.051 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002379/0.8147, allocations: 270.3 kB / 0.8211 GB, free: 6.957 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003981/0.8151, allocations: 0.4948 MB / 0.8216 GB, free: 6.605 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.8166, allocations: 1.485 MB / 0.8231 GB, free: 5.535 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.8167, allocations: 0.625 kB / 0.8231 GB, free: 5.535 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.352e-06/0.8167, allocations: 0 / 0.8231 GB, free: 5.535 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.876e-05/0.8167, allocations: 1.625 kB / 0.8231 GB, free: 5.535 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.001975/0.8187, allocations: 1.333 MB / 0.8244 GB, free: 4.469 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.8187, allocations: 11.02 kB / 0.8244 GB, free: 4.469 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008793/0.8196, allocations: 179.7 kB / 0.8245 GB, free: 4.383 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.8207, allocations: 0.7258 MB / 0.8253 GB, free: 3.789 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.669e-05/0.8207, allocations: 58.56 kB / 0.8253 GB, free: 3.766 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.315e-05/0.8208, allocations: 82.22 kB / 0.8254 GB, free: 3.734 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.8222, allocations: 0.8714 MB / 0.8262 GB, free: 3.164 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.8222, allocations: 2.875 kB / 0.8262 GB, free: 3.164 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.858e-05/0.8223, allocations: 31.56 kB / 0.8263 GB, free: 3.141 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.8223, allocations: 19.03 kB / 0.8263 GB, free: 3.141 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.8239, allocations: 1.063 MB / 0.8273 GB, free: 2.637 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003398/0.8273, allocations: 2.355 MB / 0.8296 GB, free: 0.8242 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.8285, allocations: 0.7958 MB / 0.8304 GB, free: 376 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004625/0.829, allocations: 279.2 kB / 0.8307 GB, free: 236 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.043e-05/0.8291, allocations: 39.67 kB / 0.8307 GB, free: 216 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007161/0.8298, allocations: 422.5 kB / 0.8311 GB, free: 15.93 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=73): time 2.425e-06/0.8298, allocations: 0 / 0.8311 GB, free: 15.93 MB / 0.6075 GB Notification: Performance of matching and sorting (n=73): time 0.002778/0.8326, allocations: 1.09 MB / 0.8322 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.8327, allocations: 192.8 kB / 0.8324 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000658/0.8334, allocations: 0.5842 MB / 0.8329 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.689e-05/0.8335, allocations: 36.08 kB / 0.833 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002777/0.8337, allocations: 381.7 kB / 0.8333 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001819/0.8339, allocations: 238 kB / 0.8336 GB, free: 14.19 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.8341, allocations: 154.2 kB / 0.8337 GB, free: 14.09 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.8343, allocations: 383.7 kB / 0.8341 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004408/0.8348, allocations: 239.4 kB / 0.8343 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005262/0.8353, allocations: 332.2 kB / 0.8346 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009584/0.8363, allocations: 0.5645 MB / 0.8352 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.8363, allocations: 0 / 0.8352 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001659/0.8379, allocations: 0.7862 MB / 0.8359 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.838, allocations: 7.688 kB / 0.8359 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.838, allocations: 0 / 0.8359 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005677/0.8386, allocations: 86.17 kB / 0.836 GB, free: 12.65 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005719/0.8391, allocations: 146.3 kB / 0.8362 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002016/0.8412, allocations: 1.625 MB / 0.8377 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006118/0.8418, allocations: 80.77 kB / 0.8378 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-05/0.8419, allocations: 38.88 kB / 0.8379 GB, free: 10.95 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.0003981/0.8423, allocations: 252.3 kB / 0.8381 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.8424, allocations: 80.53 kB / 0.8382 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/0.8445, allocations: 1.002 MB / 0.8392 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.8445, allocations: 10.31 kB / 0.8392 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.8445, allocations: 0 / 0.8392 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.8445, allocations: 3.984 kB / 0.8392 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002872/0.8474, allocations: 1.866 MB / 0.841 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.8474, allocations: 3.938 kB / 0.841 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005291/0.848, allocations: 145 kB / 0.8411 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004158/0.8484, allocations: 73.81 kB / 0.8412 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.672e-05/0.8484, allocations: 24.36 kB / 0.8412 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001783/0.8502, allocations: 1.65 MB / 0.8428 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.8502, allocations: 7.156 kB / 0.8428 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.8519, allocations: 0.9195 MB / 0.8437 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003197/0.8523, allocations: 265.4 kB / 0.844 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.8524, allocations: 16.88 kB / 0.844 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005378/0.8529, allocations: 61.03 kB / 0.8441 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.8531, allocations: 58.45 kB / 0.8441 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.829e-05/0.8531, allocations: 28.52 kB / 0.8442 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004966/0.8536, allocations: 430 kB / 0.8446 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.4e-07/0.8537, allocations: 0 / 0.8446 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008078/0.8545, allocations: 291.7 kB / 0.8448 GB, free: 6.004 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.001296/0.8558, allocations: 0.5955 MB / 0.8454 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001445/0.8572, allocations: 0.7635 MB / 0.8462 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.8572, allocations: 256 / 0.8462 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008215/0.8581, allocations: 0.4908 MB / 0.8466 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.8592, allocations: 285.4 kB / 0.8469 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003601/0.8628, allocations: 1.694 MB / 0.8486 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005575/0.8634, allocations: 0.9954 MB / 0.8495 GB, free: 1.855 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002854/0.8637, allocations: 115.4 kB / 0.8497 GB, free: 1.746 MB / 0.6075 GB Notification: Performance of SimCode: time 3.51e-07/0.8637, allocations: 0 / 0.8497 GB, free: 1.746 MB / 0.6075 GB Notification: Performance of Templates: time 0.02408/0.8878, allocations: 17.18 MB / 0.8664 GB, free: 0.5703 MB / 0.6231 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