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.001234/0.001234, allocations: 110.4 kB / 16.38 MB, free: 6.477 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.001053/0.001053, allocations: 192.9 kB / 17.32 MB, free: 5.785 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.376/1.376, 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.7845/0.7845, allocations: 135.1 MB / 426.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 67.95 kB / 0.5862 GB, free: 21.55 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.1844, allocations: 80.92 MB / 0.6652 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.006385/0.1908, allocations: 4.192 MB / 0.6693 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5783/0.7692, allocations: 150.5 MB / 0.8164 GB, free: 8.402 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008109/0.7701, allocations: 20.25 kB / 0.8164 GB, free: 8.395 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005438/0.7706, allocations: 168.3 kB / 0.8165 GB, free: 8.305 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001477/0.7722, allocations: 474.8 kB / 0.817 GB, free: 8.113 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001811/0.774, allocations: 0.8197 MB / 0.8178 GB, free: 7.863 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001091/0.7751, allocations: 1.199 MB / 0.819 GB, free: 7.543 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007996/0.7759, allocations: 0.6871 MB / 0.8196 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004461/0.7763, allocations: 460.8 kB / 0.8201 GB, free: 7.18 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004202/0.7768, allocations: 483.3 kB / 0.8205 GB, free: 6.965 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.7769, allocations: 113.3 kB / 0.8206 GB, free: 6.965 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007559/0.7776, allocations: 0.4933 MB / 0.8211 GB, free: 6.871 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002234/0.7779, allocations: 293.4 kB / 0.8214 GB, free: 6.754 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003989/0.7783, allocations: 0.5299 MB / 0.8219 GB, free: 6.348 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00146/0.7798, allocations: 1.582 MB / 0.8235 GB, free: 5.203 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.7798, allocations: 0 / 0.8235 GB, free: 5.203 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.303e-06/0.7798, allocations: 2.75 kB / 0.8235 GB, free: 5.203 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.159e-05/0.7798, allocations: 0 / 0.8235 GB, free: 5.203 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.001993/0.7818, allocations: 1.392 MB / 0.8248 GB, free: 4.094 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.7818, allocations: 11.33 kB / 0.8248 GB, free: 4.094 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.7829, allocations: 205.2 kB / 0.825 GB, free: 3.996 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009932/0.7839, allocations: 0.7443 MB / 0.8258 GB, free: 3.387 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.169e-05/0.7839, allocations: 72.19 kB / 0.8258 GB, free: 3.352 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.784, allocations: 85.47 kB / 0.8259 GB, free: 3.324 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.7855, allocations: 0.9504 MB / 0.8268 GB, free: 2.719 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.7855, allocations: 0 / 0.8268 GB, free: 2.719 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.871e-05/0.7856, allocations: 42.16 kB / 0.8269 GB, free: 2.688 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.7856, allocations: 20.25 kB / 0.8269 GB, free: 2.688 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001799/0.7874, allocations: 1.126 MB / 0.828 GB, free: 2.148 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003808/0.7912, allocations: 2.524 MB / 0.8305 GB, free: 228 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.7927, allocations: 0.8233 MB / 0.8313 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005071/0.7932, allocations: 289.6 kB / 0.8315 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006109/0.7938, allocations: 469.7 kB / 0.832 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007352/0.7946, allocations: 446.9 kB / 0.8324 GB, free: 14.8 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=73): time 1.863e-06/0.7946, allocations: 0 / 0.8324 GB, free: 14.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=73): time 0.002795/0.7974, allocations: 1.095 MB / 0.8335 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.333e-05/0.7975, allocations: 188.4 kB / 0.8337 GB, free: 13.99 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006883/0.7982, allocations: 0.6008 MB / 0.8342 GB, free: 13.63 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.038e-05/0.7983, allocations: 42.89 kB / 0.8343 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002938/0.7986, allocations: 406.4 kB / 0.8347 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.7987, allocations: 244.1 kB / 0.8349 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.799, allocations: 155.8 kB / 0.8351 GB, free: 12.92 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.7991, allocations: 384.1 kB / 0.8354 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004669/0.7996, allocations: 243 kB / 0.8357 GB, free: 12.44 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005637/0.8002, allocations: 339.9 kB / 0.836 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.8012, allocations: 0.5692 MB / 0.8365 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.8012, allocations: 2.094 kB / 0.8365 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001765/0.803, allocations: 0.7877 MB / 0.8373 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.803, allocations: 6.781 kB / 0.8373 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.803, allocations: 3.984 kB / 0.8373 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005577/0.8036, allocations: 81.81 kB / 0.8374 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/0.8042, allocations: 146.8 kB / 0.8375 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002145/0.8063, allocations: 1.634 MB / 0.8391 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006243/0.807, allocations: 84.98 kB / 0.8392 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.84e-05/0.807, allocations: 30.42 kB / 0.8392 GB, free: 9.777 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 (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.0004122/0.8075, allocations: 267.2 kB / 0.8395 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.8076, allocations: 78.25 kB / 0.8396 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/0.8097, allocations: 0.994 MB / 0.8405 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.8098, allocations: 6.875 kB / 0.8405 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.8098, allocations: 2.906 kB / 0.8405 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.8098, allocations: 11.86 kB / 0.8406 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/0.8128, allocations: 1.888 MB / 0.8424 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.8128, allocations: 0 / 0.8424 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005419/0.8134, allocations: 150.1 kB / 0.8425 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004119/0.8138, allocations: 69.89 kB / 0.8426 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.718e-05/0.8139, allocations: 27.72 kB / 0.8426 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001838/0.8157, allocations: 1.657 MB / 0.8443 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.8157, allocations: 1.328 kB / 0.8443 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.8176, allocations: 0.9323 MB / 0.8452 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003512/0.8179, allocations: 253.2 kB / 0.8454 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.853e-05/0.818, allocations: 18.7 kB / 0.8454 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005531/0.8186, allocations: 47.27 kB / 0.8455 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.8187, allocations: 63.45 kB / 0.8455 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.923e-05/0.8188, allocations: 29.67 kB / 0.8456 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005374/0.8193, allocations: 438.8 kB / 0.846 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.5e-07/0.8194, allocations: 2.219 kB / 0.846 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009096/0.8203, allocations: 313.4 kB / 0.8463 GB, free: 4.789 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 (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.001356/0.8216, allocations: 0.6207 MB / 0.8469 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001638/0.8233, allocations: 0.7698 MB / 0.8476 GB, free: 3.719 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.8233, allocations: 4 kB / 0.8476 GB, free: 3.715 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008411/0.8241, allocations: 0.4887 MB / 0.8481 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.8253, allocations: 289.3 kB / 0.8484 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00366/0.829, allocations: 1.753 MB / 0.8501 GB, free: 1.16 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005657/0.8295, allocations: 1.015 MB / 0.8511 GB, free: 120 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/0.8298, allocations: 111.4 kB / 0.8512 GB, free: 12 kB / 0.6075 GB Notification: Performance of SimCode: time 8.32e-07/0.8298, allocations: 0 / 0.8512 GB, free: 12 kB / 0.6075 GB Notification: Performance of Templates: time 0.02164/0.8515, allocations: 17.96 MB / 0.8687 GB, free: 14.07 MB / 0.6387 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