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.001472/0.001472, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001463/0.001463, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.323/1.323, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7968/0.7968, allocations: 135.2 MB / 426.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 63.91 kB / 0.506 GB, free: 8.301 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3203, allocations: 80.92 MB / 0.5851 GB, free: 25.21 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.004779/0.3251, allocations: 4.186 MB / 0.5892 GB, free: 21.93 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1609/0.4861, allocations: 150.5 MB / 0.7362 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008101/0.4869, allocations: 15.94 kB / 0.7362 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00051/0.4874, allocations: 178.4 kB / 0.7363 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001442/0.4889, allocations: 478.8 kB / 0.7368 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001828/0.4908, allocations: 0.8101 MB / 0.7376 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00117/0.492, allocations: 1.192 MB / 0.7387 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009246/0.4929, allocations: 0.6905 MB / 0.7394 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005339/0.4934, allocations: 458.3 kB / 0.7399 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000536/0.494, allocations: 489.8 kB / 0.7403 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000152/0.4941, allocations: 116 kB / 0.7404 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008435/0.495, allocations: 467.7 kB / 0.7409 GB, free: 10.42 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002855/0.4953, allocations: 291 kB / 0.7412 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004837/0.4958, allocations: 0.5323 MB / 0.7417 GB, free: 9.598 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001665/0.4975, allocations: 1.546 MB / 0.7432 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.4975, allocations: 0 / 0.7432 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.463e-06/0.4975, allocations: 0 / 0.7432 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.344e-05/0.4975, allocations: 0 / 0.7432 GB, free: 8.047 MB / 0.5762 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.002166/0.4997, allocations: 1.396 MB / 0.7446 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.4997, allocations: 9.109 kB / 0.7446 GB, free: 6.59 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001042/0.5008, allocations: 207.4 kB / 0.7448 GB, free: 6.387 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009841/0.5018, allocations: 0.7227 MB / 0.7455 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.069e-05/0.5018, allocations: 74 kB / 0.7455 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.5019, allocations: 87.98 kB / 0.7456 GB, free: 5.465 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.5035, allocations: 0.9496 MB / 0.7465 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.5036, allocations: 0 / 0.7465 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.617e-05/0.5037, allocations: 40 kB / 0.7466 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.066e-05/0.5037, allocations: 24 kB / 0.7466 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001887/0.5056, allocations: 1.124 MB / 0.7477 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003907/0.5095, allocations: 2.565 MB / 0.7502 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.243/0.7525, allocations: 0.8152 MB / 0.751 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007163/0.7533, allocations: 289.9 kB / 0.7513 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005368/0.7538, allocations: 470.2 kB / 0.7517 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008275/0.7547, allocations: 439 kB / 0.7522 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=73): time 2.254e-06/0.7547, allocations: 0 / 0.7522 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73): time 0.002905/0.7576, allocations: 1.098 MB / 0.7532 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.7577, allocations: 190.3 kB / 0.7534 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007624/0.7584, allocations: 0.6037 MB / 0.754 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.898e-05/0.7585, allocations: 38.48 kB / 0.754 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.7588, allocations: 404.5 kB / 0.7544 GB, free: 163.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.7589, allocations: 244.7 kB / 0.7547 GB, free: 163 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/0.7591, allocations: 149 kB / 0.7548 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.7593, allocations: 385.8 kB / 0.7552 GB, free: 162.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005071/0.7598, allocations: 245 kB / 0.7554 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005931/0.7604, allocations: 337.9 kB / 0.7557 GB, free: 162.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.7615, allocations: 0.5652 MB / 0.7563 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.7615, allocations: 0 / 0.7563 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001888/0.7634, allocations: 0.7967 MB / 0.757 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.7634, allocations: 11.25 kB / 0.7571 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.7634, allocations: 1.031 kB / 0.7571 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005844/0.764, allocations: 84.22 kB / 0.7571 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006093/0.7646, allocations: 153.5 kB / 0.7573 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001751/0.7664, allocations: 1.628 MB / 0.7589 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006087/0.767, allocations: 84.03 kB / 0.759 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.052e-05/0.7671, allocations: 34.44 kB / 0.759 GB, free: 160.2 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.0003665/0.7675, allocations: 265.8 kB / 0.7592 GB, free: 160 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.7676, allocations: 76.03 kB / 0.7593 GB, free: 160 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002337/0.77, allocations: 0.9972 MB / 0.7603 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/0.77, allocations: 11.44 kB / 0.7603 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.77, allocations: 0 / 0.7603 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.77, allocations: 7.672 kB / 0.7603 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/0.7728, allocations: 1.895 MB / 0.7622 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.7728, allocations: 3.875 kB / 0.7622 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005321/0.7733, allocations: 142.3 kB / 0.7623 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003969/0.7737, allocations: 72.84 kB / 0.7624 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.342e-05/0.7738, allocations: 26.7 kB / 0.7624 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001405/0.7752, allocations: 1.66 MB / 0.764 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.7752, allocations: 0 / 0.764 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/0.7769, allocations: 0.9223 MB / 0.7649 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002456/0.7771, allocations: 256.6 kB / 0.7652 GB, free: 156 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.7772, allocations: 18.06 kB / 0.7652 GB, free: 156 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005416/0.7778, allocations: 56.44 kB / 0.7652 GB, free: 156 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.7779, allocations: 57.89 kB / 0.7653 GB, free: 156 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.747e-05/0.778, allocations: 32.97 kB / 0.7653 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004009/0.7784, allocations: 439.9 kB / 0.7657 GB, free: 155.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7784, allocations: 1.25 kB / 0.7657 GB, free: 155.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000737/0.7791, allocations: 314.6 kB / 0.766 GB, free: 155.6 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.001655/0.7808, allocations: 0.6293 MB / 0.7667 GB, free: 155.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00185/0.7826, allocations: 0.959 MB / 0.7676 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.7827, allocations: 3.781 kB / 0.7676 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007037/0.7834, allocations: 484.3 kB / 0.7681 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.7844, allocations: 289.5 kB / 0.7683 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.7874, allocations: 1.784 MB / 0.7701 GB, free: 152.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.7878, allocations: 1.011 MB / 0.7711 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002423/0.788, allocations: 115.4 kB / 0.7712 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of SimCode: time 4.71e-07/0.788, allocations: 0 / 0.7712 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.01563/0.8037, allocations: 17.96 MB / 0.7887 GB, free: 133.3 MB / 0.5762 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