Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 110.8 kB / 16.41 MB, free: 6.484 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.001318/0.001318, allocations: 185.6 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.448/1.448, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8742/0.8742, allocations: 135.2 MB / 426.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 66.86 kB / 0.5863 GB, free: 21.73 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1645/0.1665, allocations: 80.93 MB / 0.6653 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.007121/0.1737, allocations: 4.916 MB / 0.6701 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5674/0.741, allocations: 151.3 MB / 0.8179 GB, free: 8.023 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00111/0.7421, allocations: 22.88 kB / 0.818 GB, free: 8.016 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007621/0.7429, allocations: 196 kB / 0.8181 GB, free: 7.891 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002249/0.7451, allocations: 0.5913 MB / 0.8187 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002228/0.7474, allocations: 0.8906 MB / 0.8196 GB, free: 7.195 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002176/0.7495, allocations: 1.592 MB / 0.8211 GB, free: 6.594 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001347/0.7509, allocations: 0.7838 MB / 0.8219 GB, free: 6.02 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001188/0.7521, allocations: 0.6903 MB / 0.8226 GB, free: 5.578 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001134/0.7532, allocations: 0.7365 MB / 0.8233 GB, free: 5.023 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003068/0.7535, allocations: 173.3 kB / 0.8235 GB, free: 5.023 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001182/0.7547, allocations: 0.5335 MB / 0.824 GB, free: 4.84 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004511/0.7552, allocations: 424.9 kB / 0.8244 GB, free: 4.496 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0008648/0.756, allocations: 0.7718 MB / 0.8251 GB, free: 3.898 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003172/0.7592, allocations: 2.188 MB / 0.8273 GB, free: 2.254 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/0.7592, allocations: 0 / 0.8273 GB, free: 2.254 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.354e-06/0.7592, allocations: 2.719 kB / 0.8273 GB, free: 2.254 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.328e-05/0.7593, allocations: 4 kB / 0.8273 GB, free: 2.25 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: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.003794/0.763, allocations: 1.828 MB / 0.8291 GB, free: 0.8242 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.7631, allocations: 8 kB / 0.8291 GB, free: 0.8242 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/0.7642, allocations: 246 kB / 0.8293 GB, free: 0.7031 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.7657, allocations: 0.9127 MB / 0.8302 GB, free: 15.95 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-05/0.7658, allocations: 105.7 kB / 0.8303 GB, free: 15.91 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.766, allocations: 135.6 kB / 0.8304 GB, free: 15.86 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002508/0.7685, allocations: 1.429 MB / 0.8318 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.251e-05/0.7685, allocations: 0 / 0.8318 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.7686, allocations: 67.38 kB / 0.8319 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.384e-05/0.7686, allocations: 36.03 kB / 0.8319 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002466/0.7711, allocations: 1.515 MB / 0.8334 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006613/0.7777, allocations: 3.73 MB / 0.8371 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.7794, allocations: 0.902 MB / 0.8379 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006757/0.7801, allocations: 360 kB / 0.8383 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000107/0.7802, allocations: 51 kB / 0.8383 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001075/0.7813, allocations: 0.5818 MB / 0.8389 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=104): time 2.985e-06/0.7813, allocations: 0 / 0.8389 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of matching and sorting (n=104): time 0.003815/0.7851, allocations: 1.478 MB / 0.8403 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.7852, allocations: 195.7 kB / 0.8405 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001091/0.7863, allocations: 0.7606 MB / 0.8413 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001235/0.7865, allocations: 50.2 kB / 0.8413 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005176/0.787, allocations: 0.5707 MB / 0.8419 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003601/0.7873, allocations: 368 kB / 0.8422 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003386/0.7877, allocations: 215.6 kB / 0.8424 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001761/0.7878, allocations: 351.9 kB / 0.8428 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007026/0.7886, allocations: 357.5 kB / 0.8431 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008135/0.7894, allocations: 474 kB / 0.8436 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.7909, allocations: 0.8269 MB / 0.8444 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.7909, allocations: 6.281 kB / 0.8444 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.00257/0.7935, allocations: 1.111 MB / 0.8455 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.7935, allocations: 7.594 kB / 0.8455 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.7935, allocations: 0.5625 kB / 0.8455 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005915/0.7941, allocations: 89.7 kB / 0.8455 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009593/0.795, allocations: 223 kB / 0.8458 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.7975, allocations: 1.647 MB / 0.8474 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.7985, allocations: 116.3 kB / 0.8475 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.7987, allocations: 49.7 kB / 0.8475 GB, free: 4.234 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (125): * Single equations (assignments): 124 * 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.000734/0.7994, allocations: 309.6 kB / 0.8478 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002825/0.7997, allocations: 111.4 kB / 0.8479 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003371/0.8031, allocations: 1.383 MB / 0.8493 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.8031, allocations: 12 kB / 0.8493 GB, free: 2.406 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.8031, allocations: 7.938 kB / 0.8493 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/0.8031, allocations: 7.969 kB / 0.8493 GB, free: 2.391 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004806/0.8079, allocations: 2.552 MB / 0.8518 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.034e-06/0.8079, allocations: 0 / 0.8518 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008316/0.8087, allocations: 195.7 kB / 0.852 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004558/0.8092, allocations: 76.77 kB / 0.8521 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.289e-05/0.8093, allocations: 31.98 kB / 0.8521 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002114/0.8114, allocations: 1.668 MB / 0.8537 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.8114, allocations: 4.062 kB / 0.8537 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002667/0.8141, allocations: 1.174 MB / 0.8549 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005852/0.8146, allocations: 324 kB / 0.8552 GB, free: 12.13 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001977/0.8148, allocations: 35.88 kB / 0.8552 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007336/0.8156, allocations: 63.95 kB / 0.8553 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/0.8158, allocations: 72.89 kB / 0.8553 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.095e-05/0.8158, allocations: 43.97 kB / 0.8554 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008888/0.8167, allocations: 0.5732 MB / 0.8559 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of sort global known variables: time 9e-08/0.8167, allocations: 0 / 0.8559 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001217/0.818, allocations: 410.7 kB / 0.8563 GB, free: 10.95 MB / 0.6231 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 (115): * Single equations (assignments): 112 * 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.002023/0.82, allocations: 0.6062 MB / 0.8569 GB, free: 10.52 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002388/0.8224, allocations: 0.9951 MB / 0.8579 GB, free: 9.516 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.8224, allocations: 0 / 0.8579 GB, free: 9.516 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.8236, allocations: 0.5823 MB / 0.8585 GB, free: 8.922 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.8251, allocations: 307.1 kB / 0.8588 GB, free: 8.641 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005447/0.8306, allocations: 2.406 MB / 0.8611 GB, free: 6.195 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008971/0.8315, allocations: 1.165 MB / 0.8622 GB, free: 5 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005978/0.8321, allocations: 147.3 kB / 0.8624 GB, free: 4.859 MB / 0.6231 GB Notification: Performance of SimCode: time 1.523e-06/0.8321, allocations: 3.938 kB / 0.8624 GB, free: 4.855 MB / 0.6231 GB Notification: Performance of Templates: time 0.03522/0.8673, allocations: 23.94 MB / 0.8858 GB, free: 12.94 MB / 0.6544 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.Examples.IncidenceAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleFunctions.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.Examples.IncidenceAngleCalcHelperMain.o] Error 1