Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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.BaseClasses.Examples.SkyClearness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001401/0.001408, allocations: 107 kB / 16.27 MB, free: 5.984 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.001499/0.001499, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.398/1.398, allocations: 222.9 MB / 240.9 MB, free: 4.078 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9565/0.9565, allocations: 135.1 MB / 426.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001367, allocations: 64.72 kB / 0.506 GB, free: 5.309 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1777, allocations: 80.93 MB / 0.585 GB, free: 4.535 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.006421/0.1842, allocations: 4.176 MB / 0.5891 GB, free: 344 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4683/0.6525, allocations: 150.5 MB / 0.7361 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008114/0.6534, allocations: 23.66 kB / 0.7362 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007393/0.6541, allocations: 165.5 kB / 0.7363 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001944/0.6562, allocations: 480.6 kB / 0.7368 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00254/0.6587, allocations: 0.8096 MB / 0.7376 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001927/0.6607, allocations: 1.192 MB / 0.7387 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001294/0.662, allocations: 0.6819 MB / 0.7394 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009491/0.6629, allocations: 463.7 kB / 0.7398 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008184/0.6638, allocations: 483.4 kB / 0.7403 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002686/0.664, allocations: 112.3 kB / 0.7404 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001055/0.6651, allocations: 477.1 kB / 0.7409 GB, free: 9.828 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004927/0.6656, allocations: 291.8 kB / 0.7411 GB, free: 9.641 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0009513/0.6666, allocations: 0.5258 MB / 0.7416 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002443/0.669, allocations: 1.551 MB / 0.7432 GB, free: 8.152 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.669, allocations: 0 / 0.7432 GB, free: 8.152 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.262e-06/0.6691, allocations: 0 / 0.7432 GB, free: 8.152 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.63e-05/0.6691, allocations: 1.375 kB / 0.7432 GB, free: 8.152 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.003115/0.6722, allocations: 1.392 MB / 0.7445 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.6723, allocations: 10.47 kB / 0.7445 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/0.6737, allocations: 208.8 kB / 0.7447 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.6751, allocations: 0.7189 MB / 0.7454 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.353e-05/0.6752, allocations: 70.41 kB / 0.7455 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.6753, allocations: 85.75 kB / 0.7456 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.6771, allocations: 0.9505 MB / 0.7465 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.6771, allocations: 2.75 kB / 0.7465 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.922e-05/0.6772, allocations: 39.69 kB / 0.7465 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.6773, allocations: 21.03 kB / 0.7466 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001865/0.6791, allocations: 1.128 MB / 0.7477 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004314/0.6834, allocations: 2.561 MB / 0.7502 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.6851, allocations: 0.8251 MB / 0.751 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006199/0.6857, allocations: 287.3 kB / 0.7513 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007555/0.6865, allocations: 466.2 kB / 0.7517 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008749/0.6874, allocations: 447.2 kB / 0.7521 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=73): time 2.755e-06/0.6874, allocations: 0 / 0.7521 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73): time 0.003279/0.6907, allocations: 1.096 MB / 0.7532 GB, free: 180 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.6908, allocations: 188.6 kB / 0.7534 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008515/0.6917, allocations: 0.6018 MB / 0.754 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.118e-05/0.6917, allocations: 41.7 kB / 0.754 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003026/0.692, allocations: 396.2 kB / 0.7544 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/0.6923, allocations: 248.4 kB / 0.7546 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.6925, allocations: 158.5 kB / 0.7548 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002483/0.6928, allocations: 378.7 kB / 0.7551 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006218/0.6934, allocations: 253.8 kB / 0.7554 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007039/0.6941, allocations: 335.1 kB / 0.7557 GB, free: 13.53 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001178/0.6953, allocations: 0.5682 MB / 0.7562 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.6953, allocations: 0 / 0.7562 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002158/0.6975, allocations: 0.7864 MB / 0.757 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.6975, allocations: 4 kB / 0.757 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.6975, allocations: 0 / 0.757 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006426/0.6982, allocations: 88.8 kB / 0.7571 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006831/0.6989, allocations: 147.8 kB / 0.7572 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002466/0.7013, allocations: 1.629 MB / 0.7588 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007568/0.7021, allocations: 85.42 kB / 0.7589 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.505e-05/0.7022, allocations: 35.97 kB / 0.7589 GB, free: 10.02 MB / 0.5762 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 (84): * Single equations (assignments): 83 * 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.0005941/0.7028, allocations: 261.6 kB / 0.7592 GB, free: 9.758 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.703, allocations: 79 kB / 0.7593 GB, free: 9.68 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002444/0.7055, allocations: 1.002 MB / 0.7603 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.7055, allocations: 8 kB / 0.7603 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.7055, allocations: 1.312 kB / 0.7603 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.7055, allocations: 7.922 kB / 0.7603 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003738/0.7093, allocations: 1.885 MB / 0.7621 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.7093, allocations: 0 / 0.7621 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005864/0.7099, allocations: 151.8 kB / 0.7623 GB, free: 6.562 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004512/0.7103, allocations: 64.8 kB / 0.7623 GB, free: 6.496 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-05/0.7104, allocations: 27.98 kB / 0.7623 GB, free: 6.469 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002072/0.7125, allocations: 1.67 MB / 0.764 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.7125, allocations: 0 / 0.764 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00206/0.7146, allocations: 0.918 MB / 0.7649 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000377/0.715, allocations: 259.8 kB / 0.7651 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.7151, allocations: 16 kB / 0.7651 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006374/0.7158, allocations: 55.94 kB / 0.7652 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.7159, allocations: 61.05 kB / 0.7652 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.496e-05/0.716, allocations: 32.83 kB / 0.7653 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005462/0.7165, allocations: 435 kB / 0.7657 GB, free: 2.863 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3e-07/0.7166, allocations: 0 / 0.7657 GB, free: 2.863 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001025/0.7176, allocations: 315.2 kB / 0.766 GB, free: 2.555 MB / 0.5762 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 (84): * Single equations (assignments): 81 * 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.001602/0.7192, allocations: 0.6265 MB / 0.7666 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00227/0.7215, allocations: 0.9477 MB / 0.7675 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.7215, allocations: 4 kB / 0.7675 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009905/0.7225, allocations: 0.4928 MB / 0.768 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.7237, allocations: 289.3 kB / 0.7683 GB, free: 432 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004022/0.7278, allocations: 1.765 MB / 0.77 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006942/0.7285, allocations: 1.027 MB / 0.771 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.7288, allocations: 107.4 kB / 0.7711 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of SimCode: time 5.01e-07/0.7288, allocations: 3.938 kB / 0.7711 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of Templates: time 0.02447/0.7533, allocations: 17.95 MB / 0.7886 GB, free: 11.56 MB / 0.6075 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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.BaseClasses.Examples.SkyClearnessCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessFunctions.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.BaseClasses.Examples.SkyClearnessCalcHelperMain.o] Error 1