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.001286/0.001286, allocations: 112.1 kB / 16.41 MB, free: 6.008 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.001279/0.001279, allocations: 185 kB / 17.34 MB, free: 5.629 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.394/1.394, 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/package.mo): time 0.7893/0.7893, allocations: 132.2 MB / 423.4 MB, free: 6.621 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002204/0.002204, allocations: 62.94 kB / 0.582 GB, free: 23.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1683, allocations: 80.22 MB / 0.6603 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.006466/0.1748, allocations: 4.137 MB / 0.6644 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5858/0.7606, allocations: 150.5 MB / 0.8113 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008802/0.7616, allocations: 17.56 kB / 0.8113 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.000595/0.7622, allocations: 170.7 kB / 0.8115 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001654/0.7639, allocations: 483.8 kB / 0.8119 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001916/0.7658, allocations: 0.802 MB / 0.8127 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001253/0.7671, allocations: 1.195 MB / 0.8139 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008988/0.768, allocations: 0.6044 MB / 0.8145 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006658/0.7687, allocations: 445.1 kB / 0.8149 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005111/0.7692, allocations: 450 kB / 0.8153 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000157/0.7693, allocations: 102.7 kB / 0.8154 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009865/0.7703, allocations: 477.4 kB / 0.8159 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002705/0.7706, allocations: 270.2 kB / 0.8162 GB, free: 10.92 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004186/0.771, allocations: 0.4893 MB / 0.8166 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001697/0.7728, allocations: 1.488 MB / 0.8181 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.7728, allocations: 3.984 kB / 0.8181 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.813e-06/0.7728, allocations: 0 / 0.8181 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.609e-05/0.7728, allocations: 4 kB / 0.8181 GB, free: 10.05 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.002218/0.775, allocations: 1.329 MB / 0.8194 GB, free: 9.152 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.7751, allocations: 10.84 kB / 0.8194 GB, free: 9.152 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009635/0.776, allocations: 175.3 kB / 0.8196 GB, free: 9.07 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.7771, allocations: 0.7283 MB / 0.8203 GB, free: 8.527 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.293e-05/0.7772, allocations: 65.12 kB / 0.8203 GB, free: 8.496 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.885e-05/0.7773, allocations: 76.53 kB / 0.8204 GB, free: 8.473 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.7788, allocations: 0.8673 MB / 0.8213 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.7788, allocations: 0 / 0.8213 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.746e-05/0.7789, allocations: 33.69 kB / 0.8213 GB, free: 7.883 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.564e-05/0.7789, allocations: 23.03 kB / 0.8213 GB, free: 7.883 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.7805, allocations: 1.067 MB / 0.8224 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003726/0.7843, allocations: 2.346 MB / 0.8246 GB, free: 5.59 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.7856, allocations: 0.8119 MB / 0.8254 GB, free: 5.133 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004759/0.7861, allocations: 275.8 kB / 0.8257 GB, free: 5 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.768e-05/0.7862, allocations: 31.69 kB / 0.8257 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007794/0.787, allocations: 425.8 kB / 0.8261 GB, free: 4.715 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=73): time 2.435e-06/0.787, allocations: 0 / 0.8261 GB, free: 4.715 MB / 0.5919 GB Notification: Performance of matching and sorting (n=73): time 0.003/0.79, allocations: 1.086 MB / 0.8272 GB, free: 4.113 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.7902, allocations: 188.2 kB / 0.8274 GB, free: 3.895 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007882/0.791, allocations: 0.584 MB / 0.8279 GB, free: 3.555 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.734e-05/0.791, allocations: 36.42 kB / 0.828 GB, free: 3.516 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003176/0.7914, allocations: 388.3 kB / 0.8284 GB, free: 3.176 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/0.7916, allocations: 244.1 kB / 0.8286 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002293/0.7918, allocations: 151.6 kB / 0.8287 GB, free: 2.883 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001759/0.792, allocations: 374.3 kB / 0.8291 GB, free: 2.523 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004753/0.7925, allocations: 238.5 kB / 0.8293 GB, free: 2.406 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005761/0.7931, allocations: 340.3 kB / 0.8296 GB, free: 2.199 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.7941, allocations: 0.5569 MB / 0.8302 GB, free: 1.891 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.7941, allocations: 4 kB / 0.8302 GB, free: 1.887 MB / 0.5919 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001861/0.796, allocations: 0.79 MB / 0.831 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.796, allocations: 7.031 kB / 0.831 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.796, allocations: 0 / 0.831 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006089/0.7966, allocations: 86.7 kB / 0.831 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006047/0.7972, allocations: 146.3 kB / 0.8312 GB, free: 1.402 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002457/0.7997, allocations: 1.63 MB / 0.8328 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007095/0.8004, allocations: 78.12 kB / 0.8329 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.189e-05/0.8005, allocations: 34.62 kB / 0.8329 GB, free: 15.74 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.0005083/0.801, allocations: 261.6 kB / 0.8331 GB, free: 15.53 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001923/0.8012, allocations: 80.97 kB / 0.8332 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002347/0.8036, allocations: 0.9998 MB / 0.8342 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.8036, allocations: 10.69 kB / 0.8342 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/0.8036, allocations: 0 / 0.8342 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.8036, allocations: 3.984 kB / 0.8342 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003386/0.807, allocations: 1.86 MB / 0.836 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.822e-06/0.8071, allocations: 6.625 kB / 0.836 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000567/0.8076, allocations: 148.8 kB / 0.8362 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004676/0.8081, allocations: 72.03 kB / 0.8362 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.091e-05/0.8082, allocations: 23.36 kB / 0.8363 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002242/0.8104, allocations: 1.649 MB / 0.8379 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.8105, allocations: 0 / 0.8379 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/0.8126, allocations: 0.9228 MB / 0.8388 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004967/0.8131, allocations: 263.4 kB / 0.839 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001738/0.8133, allocations: 14.38 kB / 0.839 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006556/0.8139, allocations: 57.36 kB / 0.8391 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.8141, allocations: 67.39 kB / 0.8392 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.656e-05/0.8142, allocations: 31.77 kB / 0.8392 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006701/0.8148, allocations: 428.2 kB / 0.8396 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8149, allocations: 0 / 0.8396 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001198/0.8161, allocations: 290.8 kB / 0.8399 GB, free: 10.8 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.001791/0.8179, allocations: 0.5946 MB / 0.8405 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001888/0.8198, allocations: 0.7597 MB / 0.8412 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.8198, allocations: 6.906 kB / 0.8412 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.8208, allocations: 493.2 kB / 0.8417 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.8222, allocations: 299.5 kB / 0.842 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004791/0.827, allocations: 1.688 MB / 0.8436 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009315/0.828, allocations: 1.007 MB / 0.8446 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000342/0.8283, allocations: 103.4 kB / 0.8447 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of SimCode: time 6.31e-07/0.8283, allocations: 3.938 kB / 0.8447 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of Templates: time 0.02732/0.8557, allocations: 17.18 MB / 0.8615 GB, free: 6.453 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