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.00121/0.001215, allocations: 115.4 kB / 16.39 MB, free: 5.957 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.001211/0.001211, allocations: 191 kB / 17.32 MB, free: 5.578 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.399/1.399, 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.8077/0.8077, allocations: 135.1 MB / 426.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 61.05 kB / 0.5862 GB, free: 21.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1836, allocations: 80.92 MB / 0.6652 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.006727/0.1904, allocations: 4.92 MB / 0.67 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6707/0.8611, allocations: 150.8 MB / 0.8173 GB, free: 7.961 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001003/0.8622, allocations: 22.56 kB / 0.8173 GB, free: 7.953 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006295/0.8629, allocations: 194.7 kB / 0.8175 GB, free: 7.844 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001735/0.8646, allocations: 0.5572 MB / 0.818 GB, free: 7.57 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002224/0.8668, allocations: 0.93 MB / 0.819 GB, free: 7.195 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001411/0.8683, allocations: 1.553 MB / 0.8205 GB, free: 6.773 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001375/0.8696, allocations: 1.153 MB / 0.8216 GB, free: 6.316 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008725/0.8705, allocations: 0.6872 MB / 0.8223 GB, free: 5.867 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007622/0.8713, allocations: 0.7317 MB / 0.823 GB, free: 5.305 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002125/0.8715, allocations: 190.1 kB / 0.8232 GB, free: 5.305 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009677/0.8725, allocations: 0.5454 MB / 0.8237 GB, free: 5.125 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003948/0.8729, allocations: 436.9 kB / 0.8241 GB, free: 4.77 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007601/0.8737, allocations: 0.8132 MB / 0.8249 GB, free: 4.137 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002302/0.876, allocations: 2.309 MB / 0.8272 GB, free: 2.402 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.876, allocations: 0 / 0.8272 GB, free: 2.402 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.753e-06/0.876, allocations: 0 / 0.8272 GB, free: 2.402 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.877e-05/0.876, allocations: 0 / 0.8272 GB, free: 2.402 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.002947/0.879, allocations: 1.818 MB / 0.8289 GB, free: 0.9961 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.879, allocations: 11.48 kB / 0.829 GB, free: 0.9961 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009841/0.88, allocations: 239.3 kB / 0.8292 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/0.8814, allocations: 0.9223 MB / 0.8301 GB, free: 128 kB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/0.8815, allocations: 139.1 kB / 0.8302 GB, free: 44 kB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001861/0.8817, allocations: 145.7 kB / 0.8304 GB, free: 15.99 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002277/0.884, allocations: 1.464 MB / 0.8318 GB, free: 15.08 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.97e-05/0.884, allocations: 0 / 0.8318 GB, free: 15.08 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.8842, allocations: 58.62 kB / 0.8318 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-05/0.8842, allocations: 38.28 kB / 0.8319 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00234/0.8866, allocations: 1.496 MB / 0.8333 GB, free: 14.31 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00593/0.8925, allocations: 3.861 MB / 0.8371 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.8941, allocations: 0.9203 MB / 0.838 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006001/0.8947, allocations: 368.3 kB / 0.8384 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.467e-05/0.8948, allocations: 42.64 kB / 0.8384 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009493/0.8957, allocations: 0.5477 MB / 0.8389 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=93): time 2.214e-06/0.8957, allocations: 4 kB / 0.8389 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93): time 0.003318/0.8991, allocations: 1.364 MB / 0.8403 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.8992, allocations: 198.3 kB / 0.8405 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009442/0.9001, allocations: 0.7671 MB / 0.8412 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.183e-05/0.9002, allocations: 42.58 kB / 0.8412 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004386/0.9007, allocations: 0.5733 MB / 0.8418 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002435/0.9009, allocations: 309.5 kB / 0.8421 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002799/0.9012, allocations: 194.3 kB / 0.8423 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.9014, allocations: 352 kB / 0.8426 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006003/0.902, allocations: 330.6 kB / 0.8429 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007019/0.9027, allocations: 429.8 kB / 0.8433 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/0.904, allocations: 0.7683 MB / 0.8441 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.904, allocations: 0 / 0.8441 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002124/0.9061, allocations: 1.023 MB / 0.8451 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.9062, allocations: 6.312 kB / 0.8451 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.9062, allocations: 2.906 kB / 0.8451 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005645/0.9068, allocations: 87.2 kB / 0.8452 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007909/0.9076, allocations: 203.8 kB / 0.8454 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/0.9097, allocations: 1.639 MB / 0.847 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007582/0.9105, allocations: 112 kB / 0.8471 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.65e-05/0.9106, allocations: 47.95 kB / 0.8471 GB, free: 4.383 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.0006099/0.9112, allocations: 319 kB / 0.8474 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.9113, allocations: 94.78 kB / 0.8475 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002728/0.9141, allocations: 1.283 MB / 0.8488 GB, free: 2.676 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.9141, allocations: 12 kB / 0.8488 GB, free: 2.664 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.9141, allocations: 7.875 kB / 0.8488 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.9141, allocations: 7.984 kB / 0.8488 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00387/0.918, allocations: 2.493 MB / 0.8512 GB, free: 96 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.918, allocations: 0 / 0.8512 GB, free: 96 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000707/0.9187, allocations: 179.8 kB / 0.8514 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000418/0.9192, allocations: 72.78 kB / 0.8515 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.562e-05/0.9192, allocations: 23.98 kB / 0.8515 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001868/0.9211, allocations: 1.674 MB / 0.8531 GB, free: 14 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.9211, allocations: 4.031 kB / 0.8531 GB, free: 14 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002068/0.9232, allocations: 1.111 MB / 0.8542 GB, free: 12.87 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004044/0.9236, allocations: 315.5 kB / 0.8545 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001306/0.9238, allocations: 31.78 kB / 0.8546 GB, free: 12.51 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006569/0.9244, allocations: 63.94 kB / 0.8546 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.9246, allocations: 72.89 kB / 0.8547 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.442e-05/0.9247, allocations: 40.05 kB / 0.8547 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007278/0.9254, allocations: 0.5576 MB / 0.8553 GB, free: 11.79 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9254, allocations: 0 / 0.8553 GB, free: 11.79 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00105/0.9265, allocations: 402.6 kB / 0.8557 GB, free: 11.39 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.001374/0.9278, allocations: 0.6021 MB / 0.8562 GB, free: 10.97 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001889/0.9297, allocations: 0.9798 MB / 0.8572 GB, free: 9.977 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.9297, allocations: 256 / 0.8572 GB, free: 9.977 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0009555/0.9307, allocations: 0.5783 MB / 0.8578 GB, free: 9.387 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.9319, allocations: 307.8 kB / 0.8581 GB, free: 9.109 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004647/0.9366, allocations: 2.36 MB / 0.8604 GB, free: 6.715 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007649/0.9373, allocations: 1.165 MB / 0.8615 GB, free: 5.523 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003563/0.9377, allocations: 139.4 kB / 0.8616 GB, free: 5.391 MB / 0.6231 GB Notification: Performance of SimCode: time 4.61e-07/0.9377, allocations: 0 / 0.8616 GB, free: 5.391 MB / 0.6231 GB Notification: Performance of Templates: time 0.03916/0.9769, allocations: 23.91 MB / 0.885 GB, free: 13.5 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