Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001789/0.001789, allocations: 105.7 kB / 16.41 MB, free: 6.508 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.001893/0.001893, allocations: 183 kB / 17.34 MB, free: 5.766 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.622/1.622, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8843/0.8843, allocations: 135.2 MB / 426.4 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 64.53 kB / 0.5863 GB, free: 21.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1933, allocations: 80.94 MB / 0.6653 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.007491/0.2008, allocations: 4.916 MB / 0.6701 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6452/0.846, allocations: 151.2 MB / 0.8178 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001053/0.847, allocations: 23 kB / 0.8179 GB, free: 7.66 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006902/0.8477, allocations: 196 kB / 0.818 GB, free: 7.551 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002069/0.8498, allocations: 0.5728 MB / 0.8186 GB, free: 7.262 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002371/0.8522, allocations: 0.9223 MB / 0.8195 GB, free: 6.887 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001902/0.8541, allocations: 1.553 MB / 0.821 GB, free: 6.461 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.8553, allocations: 0.8414 MB / 0.8218 GB, free: 5.996 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.8564, allocations: 0.6982 MB / 0.8225 GB, free: 5.543 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008611/0.8572, allocations: 0.7312 MB / 0.8232 GB, free: 4.98 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002118/0.8575, allocations: 194.8 kB / 0.8234 GB, free: 4.977 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.8586, allocations: 0.5488 MB / 0.824 GB, free: 4.793 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004283/0.859, allocations: 438.8 kB / 0.8244 GB, free: 4.438 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0008598/0.8599, allocations: 0.8076 MB / 0.8252 GB, free: 3.809 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003098/0.863, allocations: 2.321 MB / 0.8274 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/0.863, allocations: 0 / 0.8274 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.583e-06/0.863, allocations: 0 / 0.8274 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.516e-05/0.863, allocations: 0 / 0.8274 GB, free: 2.059 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.003342/0.8663, allocations: 1.865 MB / 0.8293 GB, free: 0.6016 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.8664, allocations: 15.3 kB / 0.8293 GB, free: 0.5977 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001/0.8674, allocations: 245.5 kB / 0.8295 GB, free: 488 kB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.8689, allocations: 0.9302 MB / 0.8304 GB, free: 15.71 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/0.869, allocations: 135.1 kB / 0.8305 GB, free: 15.63 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.8692, allocations: 142.2 kB / 0.8307 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002538/0.8718, allocations: 1.466 MB / 0.8321 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.8718, allocations: 6.25 kB / 0.8321 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/0.8719, allocations: 63.22 kB / 0.8322 GB, free: 14.62 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.988e-05/0.872, allocations: 35.22 kB / 0.8322 GB, free: 14.62 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002398/0.8744, allocations: 1.489 MB / 0.8337 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006911/0.8813, allocations: 3.893 MB / 0.8375 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/0.883, allocations: 0.8508 MB / 0.8383 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006259/0.8836, allocations: 337.7 kB / 0.8386 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001037/0.8837, allocations: 38.53 kB / 0.8386 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001041/0.8847, allocations: 0.5493 MB / 0.8392 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=93): time 2.525e-06/0.8848, allocations: 0 / 0.8392 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93): time 0.003472/0.8882, allocations: 1.37 MB / 0.8405 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001557/0.8884, allocations: 194.9 kB / 0.8407 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.8895, allocations: 0.7683 MB / 0.8415 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.717e-05/0.8896, allocations: 42.61 kB / 0.8415 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006093/0.8902, allocations: 0.5927 MB / 0.8421 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003135/0.8905, allocations: 323.8 kB / 0.8424 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003217/0.8908, allocations: 203.5 kB / 0.8426 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001805/0.891, allocations: 345.5 kB / 0.8429 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006322/0.8916, allocations: 325.8 kB / 0.8432 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007966/0.8924, allocations: 433.7 kB / 0.8436 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.8939, allocations: 0.7627 MB / 0.8444 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.8939, allocations: 2.312 kB / 0.8444 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002399/0.8963, allocations: 1.031 MB / 0.8454 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.8963, allocations: 11.5 kB / 0.8454 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.8963, allocations: 0 / 0.8454 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005961/0.8969, allocations: 85.91 kB / 0.8455 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008163/0.8977, allocations: 200.5 kB / 0.8457 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002511/0.9002, allocations: 1.641 MB / 0.8473 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009306/0.9011, allocations: 110.3 kB / 0.8474 GB, free: 4.102 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.463e-05/0.9012, allocations: 48.64 kB / 0.8474 GB, free: 4.082 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.0007287/0.902, allocations: 320.8 kB / 0.8477 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002222/0.9022, allocations: 101 kB / 0.8478 GB, free: 3.785 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003032/0.9052, allocations: 1.283 MB / 0.8491 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.9052, allocations: 12 kB / 0.8491 GB, free: 2.512 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.9052, allocations: 3.938 kB / 0.8491 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.9052, allocations: 3.984 kB / 0.8491 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0045/0.9097, allocations: 2.489 MB / 0.8515 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.9098, allocations: 0 / 0.8515 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007184/0.9105, allocations: 183.7 kB / 0.8517 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004246/0.9109, allocations: 68.78 kB / 0.8518 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.912e-05/0.911, allocations: 31.98 kB / 0.8518 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002177/0.9131, allocations: 1.69 MB / 0.8535 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.9131, allocations: 1.328 kB / 0.8535 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002547/0.9157, allocations: 1.112 MB / 0.8545 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005431/0.9162, allocations: 324 kB / 0.8549 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000149/0.9164, allocations: 31.94 kB / 0.8549 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006809/0.9171, allocations: 57.97 kB / 0.8549 GB, free: 12.28 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.9172, allocations: 72.84 kB / 0.855 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.828e-05/0.9173, allocations: 39.97 kB / 0.855 GB, free: 12.17 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008885/0.9182, allocations: 0.5576 MB / 0.8556 GB, free: 11.62 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1e-07/0.9182, allocations: 4 kB / 0.8556 GB, free: 11.62 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001235/0.9195, allocations: 414.6 kB / 0.856 GB, free: 11.21 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 (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.00202/0.9215, allocations: 0.5898 MB / 0.8566 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002131/0.9236, allocations: 0.9367 MB / 0.8575 GB, free: 9.848 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.9236, allocations: 0 / 0.8575 GB, free: 9.848 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.9247, allocations: 0.5431 MB / 0.858 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.9261, allocations: 315.2 kB / 0.8583 GB, free: 9.008 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005374/0.9315, allocations: 2.406 MB / 0.8607 GB, free: 6.562 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009397/0.9324, allocations: 1.165 MB / 0.8618 GB, free: 5.371 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004553/0.9328, allocations: 139.4 kB / 0.8619 GB, free: 5.238 MB / 0.6231 GB Notification: Performance of SimCode: time 1.072e-06/0.9328, allocations: 0 / 0.8619 GB, free: 5.238 MB / 0.6231 GB Notification: Performance of Templates: time 0.03669/0.9695, allocations: 24.1 MB / 0.8855 GB, free: 13.16 MB / 0.6544 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile make -j1 -f IDEAS_dev_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-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.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceFunctions.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.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.o] Error 1