Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 108.6 kB / 16.41 MB, free: 6.465 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.001484/0.001484, allocations: 192.1 kB / 17.34 MB, free: 5.719 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.352/1.352, 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/package.mo): time 0.8027/0.8027, allocations: 132.2 MB / 423.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 62.25 kB / 0.582 GB, free: 23.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1461, allocations: 80.21 MB / 0.6603 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.006906/0.1531, allocations: 4.919 MB / 0.6651 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.594/0.7471, allocations: 150.8 MB / 0.8124 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008988/0.7481, allocations: 23.34 kB / 0.8124 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006159/0.7487, allocations: 198.5 kB / 0.8126 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001889/0.7506, allocations: 0.5536 MB / 0.8131 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002059/0.7527, allocations: 0.9275 MB / 0.814 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00179/0.7545, allocations: 1.556 MB / 0.8156 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.7559, allocations: 1.152 MB / 0.8167 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009182/0.7568, allocations: 0.6907 MB / 0.8174 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007275/0.7576, allocations: 0.7361 MB / 0.8181 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001939/0.7578, allocations: 187.5 kB / 0.8183 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009655/0.7587, allocations: 0.5495 MB / 0.8188 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003551/0.7591, allocations: 443.2 kB / 0.8192 GB, free: 9.875 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006438/0.7598, allocations: 0.8069 MB / 0.82 GB, free: 9.262 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002312/0.7621, allocations: 2.316 MB / 0.8223 GB, free: 7.605 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.7621, allocations: 0 / 0.8223 GB, free: 7.605 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.014e-06/0.7621, allocations: 0 / 0.8223 GB, free: 7.605 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.403e-05/0.7621, allocations: 0 / 0.8223 GB, free: 7.605 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: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.002958/0.7651, allocations: 1.814 MB / 0.824 GB, free: 6.207 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.7652, allocations: 10.31 kB / 0.824 GB, free: 6.207 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009792/0.7661, allocations: 242.8 kB / 0.8243 GB, free: 6.086 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.7676, allocations: 0.92 MB / 0.8252 GB, free: 5.348 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/0.7677, allocations: 139.9 kB / 0.8253 GB, free: 5.266 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/0.7679, allocations: 143.5 kB / 0.8254 GB, free: 5.219 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002363/0.7703, allocations: 1.472 MB / 0.8269 GB, free: 4.305 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.775e-05/0.7703, allocations: 0 / 0.8269 GB, free: 4.305 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.7705, allocations: 62.47 kB / 0.8269 GB, free: 4.258 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/0.7705, allocations: 35.28 kB / 0.827 GB, free: 4.258 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.7727, allocations: 1.496 MB / 0.8284 GB, free: 3.535 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005941/0.7787, allocations: 3.876 MB / 0.8322 GB, free: 0.6445 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.7802, allocations: 0.9081 MB / 0.8331 GB, free: 196 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005569/0.7808, allocations: 362 kB / 0.8335 GB, free: 8 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001017/0.7809, allocations: 44.44 kB / 0.8335 GB, free: 15.99 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009131/0.7818, allocations: 0.5397 MB / 0.834 GB, free: 15.64 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=93): time 4.198e-06/0.7818, allocations: 7.938 kB / 0.834 GB, free: 15.63 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93): time 0.003435/0.7853, allocations: 1.37 MB / 0.8354 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.7854, allocations: 195 kB / 0.8356 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/0.7864, allocations: 0.7635 MB / 0.8363 GB, free: 14.23 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.7866, allocations: 42.64 kB / 0.8363 GB, free: 14.19 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004945/0.7871, allocations: 0.5757 MB / 0.8369 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002802/0.7873, allocations: 305.7 kB / 0.8372 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003515/0.7877, allocations: 202.9 kB / 0.8374 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.7878, allocations: 347.5 kB / 0.8377 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005719/0.7884, allocations: 328.5 kB / 0.838 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006751/0.7891, allocations: 436.1 kB / 0.8384 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.7904, allocations: 0.7641 MB / 0.8392 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.7904, allocations: 0 / 0.8392 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.0023/0.7927, allocations: 1.026 MB / 0.8402 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.7927, allocations: 9.078 kB / 0.8402 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.7927, allocations: 2.719 kB / 0.8402 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006232/0.7934, allocations: 83.41 kB / 0.8403 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008342/0.7942, allocations: 203.8 kB / 0.8405 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002123/0.7963, allocations: 1.636 MB / 0.8421 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009348/0.7973, allocations: 107.2 kB / 0.8422 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.7974, allocations: 44.34 kB / 0.8422 GB, free: 9.801 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 (111): * Single equations (assignments): 110 * 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.0006666/0.7981, allocations: 331.2 kB / 0.8425 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.7983, allocations: 98.62 kB / 0.8426 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002753/0.8011, allocations: 1.287 MB / 0.8439 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.8011, allocations: 9.938 kB / 0.8439 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.8011, allocations: 3.938 kB / 0.8439 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.8011, allocations: 3.984 kB / 0.8439 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004298/0.8054, allocations: 2.487 MB / 0.8463 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.8055, allocations: 0 / 0.8463 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007483/0.8062, allocations: 179.7 kB / 0.8465 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000472/0.8067, allocations: 80.77 kB / 0.8466 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.999e-05/0.8068, allocations: 23.98 kB / 0.8466 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002002/0.8088, allocations: 1.676 MB / 0.8482 GB, free: 4.305 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.8088, allocations: 0 / 0.8482 GB, free: 4.305 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002363/0.8112, allocations: 1.123 MB / 0.8493 GB, free: 3.168 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005637/0.8118, allocations: 307.6 kB / 0.8496 GB, free: 2.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002322/0.812, allocations: 23.84 kB / 0.8497 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007735/0.8128, allocations: 63.94 kB / 0.8497 GB, free: 2.762 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/0.813, allocations: 76.83 kB / 0.8498 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.38e-05/0.8131, allocations: 43.97 kB / 0.8498 GB, free: 2.641 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0008291/0.8139, allocations: 0.5576 MB / 0.8504 GB, free: 2.09 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.8139, allocations: 0 / 0.8504 GB, free: 2.09 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001159/0.8151, allocations: 402.6 kB / 0.8508 GB, free: 1.695 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 (107): * Single equations (assignments): 104 * 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.001492/0.8166, allocations: 0.599 MB / 0.8513 GB, free: 1.324 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002172/0.8188, allocations: 0.976 MB / 0.8523 GB, free: 344 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.8188, allocations: 4.25 kB / 0.8523 GB, free: 340 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001179/0.82, allocations: 0.5782 MB / 0.8529 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/0.8216, allocations: 303.4 kB / 0.8532 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005375/0.827, allocations: 2.365 MB / 0.8555 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001044/0.8281, allocations: 1.161 MB / 0.8566 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004457/0.8285, allocations: 139.4 kB / 0.8567 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of SimCode: time 8.21e-07/0.8285, allocations: 0 / 0.8567 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of Templates: time 0.03423/0.8628, allocations: 24.24 MB / 0.8804 GB, free: 3.543 MB / 0.6387 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceFunctions.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.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.o] Error 1