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.001269/0.00127, allocations: 112.5 kB / 16.37 MB, free: 6.344 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.001357/0.001357, allocations: 185.4 kB / 17.3 MB, free: 5.898 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.303/1.303, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.786/0.786, allocations: 135.1 MB / 426.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 62.59 kB / 0.5862 GB, free: 21.71 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1682, allocations: 80.92 MB / 0.6652 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.005671/0.174, allocations: 4.138 MB / 0.6693 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5885/0.7625, allocations: 150.5 MB / 0.8162 GB, free: 8.539 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007985/0.7633, allocations: 14.62 kB / 0.8162 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005493/0.7639, allocations: 169 kB / 0.8164 GB, free: 8.441 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001594/0.7655, allocations: 479.8 kB / 0.8169 GB, free: 8.246 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001818/0.7673, allocations: 0.8006 MB / 0.8176 GB, free: 7.984 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001209/0.7685, allocations: 1.184 MB / 0.8188 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007646/0.7693, allocations: 0.6213 MB / 0.8194 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005107/0.7698, allocations: 438.6 kB / 0.8198 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004352/0.7703, allocations: 448.4 kB / 0.8202 GB, free: 7.125 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.7704, allocations: 101.8 kB / 0.8203 GB, free: 7.125 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008321/0.7713, allocations: 472.5 kB / 0.8208 GB, free: 7.039 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002178/0.7715, allocations: 274.6 kB / 0.8211 GB, free: 6.941 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003935/0.7719, allocations: 500 kB / 0.8215 GB, free: 6.617 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001519/0.7734, allocations: 1.488 MB / 0.823 GB, free: 5.547 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.7734, allocations: 4 kB / 0.823 GB, free: 5.543 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.864e-06/0.7734, allocations: 0 / 0.823 GB, free: 5.543 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.162e-05/0.7734, allocations: 0 / 0.823 GB, free: 5.543 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.002037/0.7755, allocations: 1.331 MB / 0.8243 GB, free: 4.48 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.7755, allocations: 10.83 kB / 0.8243 GB, free: 4.48 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008641/0.7764, allocations: 176.5 kB / 0.8245 GB, free: 4.395 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.7774, allocations: 0.725 MB / 0.8252 GB, free: 3.797 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.929e-05/0.7775, allocations: 58.69 kB / 0.8252 GB, free: 3.773 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.81e-05/0.7776, allocations: 82.22 kB / 0.8253 GB, free: 3.742 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.779, allocations: 0.8664 MB / 0.8262 GB, free: 3.18 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.779, allocations: 0 / 0.8262 GB, free: 3.18 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.291e-05/0.7791, allocations: 31.62 kB / 0.8262 GB, free: 3.156 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.7791, allocations: 19.88 kB / 0.8262 GB, free: 3.156 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001556/0.7807, allocations: 1.07 MB / 0.8272 GB, free: 2.648 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003428/0.7841, allocations: 2.351 MB / 0.8295 GB, free: 0.8359 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.7853, allocations: 0.7954 MB / 0.8303 GB, free: 388 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004702/0.7858, allocations: 283.3 kB / 0.8306 GB, free: 240 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.753e-05/0.7859, allocations: 35.8 kB / 0.8306 GB, free: 220 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007213/0.7866, allocations: 423.6 kB / 0.831 GB, free: 15.94 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=73): time 2.094e-06/0.7867, allocations: 3.938 kB / 0.831 GB, free: 15.94 MB / 0.6075 GB Notification: Performance of matching and sorting (n=73): time 0.002854/0.7895, allocations: 1.086 MB / 0.8321 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.7896, allocations: 188.6 kB / 0.8323 GB, free: 15.12 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006716/0.7903, allocations: 0.5836 MB / 0.8328 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.173e-05/0.7904, allocations: 46.45 kB / 0.8329 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002977/0.7907, allocations: 375.3 kB / 0.8332 GB, free: 14.4 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.7909, allocations: 241 kB / 0.8335 GB, free: 14.19 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002083/0.7911, allocations: 149 kB / 0.8336 GB, free: 14.1 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.7913, allocations: 380.6 kB / 0.834 GB, free: 13.74 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004388/0.7917, allocations: 236.1 kB / 0.8342 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005449/0.7923, allocations: 339.7 kB / 0.8345 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009501/0.7932, allocations: 0.5643 MB / 0.8351 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.7932, allocations: 0 / 0.8351 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001704/0.795, allocations: 0.7825 MB / 0.8358 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.795, allocations: 4.875 kB / 0.8359 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.795, allocations: 2.406 kB / 0.8359 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005621/0.7956, allocations: 83.86 kB / 0.8359 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005915/0.7962, allocations: 152.8 kB / 0.8361 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/0.7983, allocations: 1.63 MB / 0.8377 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006578/0.799, allocations: 81.02 kB / 0.8377 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.217e-05/0.7991, allocations: 35.69 kB / 0.8378 GB, free: 10.96 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.0004519/0.7995, allocations: 257.8 kB / 0.838 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.7997, allocations: 78.19 kB / 0.8381 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002092/0.8018, allocations: 1.002 MB / 0.8391 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.8018, allocations: 15.25 kB / 0.8391 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.8018, allocations: 3.984 kB / 0.8391 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.8018, allocations: 5.797 kB / 0.8391 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002861/0.8047, allocations: 1.855 MB / 0.8409 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.8047, allocations: 3.938 kB / 0.8409 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005208/0.8052, allocations: 148.9 kB / 0.8411 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004058/0.8057, allocations: 70.78 kB / 0.8411 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.861e-05/0.8057, allocations: 26.77 kB / 0.8412 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001853/0.8076, allocations: 1.647 MB / 0.8428 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.8076, allocations: 0 / 0.8428 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.8093, allocations: 0.9222 MB / 0.8437 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003064/0.8096, allocations: 261.1 kB / 0.8439 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.329e-05/0.8097, allocations: 20.72 kB / 0.8439 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005129/0.8102, allocations: 52.44 kB / 0.844 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.8104, allocations: 63.86 kB / 0.844 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.863e-05/0.8104, allocations: 35.81 kB / 0.8441 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004846/0.8109, allocations: 422 kB / 0.8445 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.953e-06/0.8109, allocations: 0 / 0.8445 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008338/0.8118, allocations: 299.2 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.001309/0.8131, allocations: 0.595 MB / 0.8453 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001466/0.8146, allocations: 0.7647 MB / 0.8461 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.8146, allocations: 0 / 0.8461 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008222/0.8154, allocations: 0.4931 MB / 0.8466 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.8165, allocations: 278.3 kB / 0.8468 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.8201, allocations: 1.697 MB / 0.8485 GB, free: 2.84 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005559/0.8206, allocations: 0.9954 MB / 0.8495 GB, free: 1.816 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.8209, allocations: 111.4 kB / 0.8496 GB, free: 1.711 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.8209, allocations: 0 / 0.8496 GB, free: 1.711 MB / 0.6075 GB Notification: Performance of Templates: time 0.02087/0.8418, allocations: 17.09 MB / 0.8663 GB, free: 0.6367 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