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.001293/0.001293, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001476/0.001476, allocations: 187 kB / 17.34 MB, free: 5.762 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7871/0.7871, allocations: 135.1 MB / 426.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.03 kB / 0.5863 GB, free: 21.57 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.1874, allocations: 80.93 MB / 0.6653 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.006541/0.194, allocations: 4.184 MB / 0.6694 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.611/0.8051, allocations: 150.6 MB / 0.8164 GB, free: 8.375 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000919/0.806, allocations: 15.75 kB / 0.8164 GB, free: 8.371 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006161/0.8067, allocations: 178.7 kB / 0.8166 GB, free: 8.273 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001726/0.8085, allocations: 476.7 kB / 0.817 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002099/0.8106, allocations: 0.8262 MB / 0.8178 GB, free: 7.82 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001301/0.8119, allocations: 1.208 MB / 0.819 GB, free: 7.492 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009274/0.8128, allocations: 0.6813 MB / 0.8197 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006526/0.8135, allocations: 467 kB / 0.8201 GB, free: 7.133 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005156/0.814, allocations: 489.9 kB / 0.8206 GB, free: 6.914 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001302/0.8141, allocations: 113.2 kB / 0.8207 GB, free: 6.914 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000986/0.8151, allocations: 499.5 kB / 0.8212 GB, free: 6.824 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002844/0.8154, allocations: 292.2 kB / 0.8215 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004743/0.8159, allocations: 0.5306 MB / 0.822 GB, free: 6.27 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001897/0.8178, allocations: 1.587 MB / 0.8235 GB, free: 5.121 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.8178, allocations: 0 / 0.8235 GB, free: 5.121 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.804e-06/0.8178, allocations: 0 / 0.8235 GB, free: 5.121 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.67e-05/0.8179, allocations: 0 / 0.8235 GB, free: 5.121 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.002286/0.8202, allocations: 1.393 MB / 0.8249 GB, free: 4.012 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.8202, allocations: 11.14 kB / 0.8249 GB, free: 4.012 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001093/0.8213, allocations: 204.8 kB / 0.8251 GB, free: 3.914 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.8224, allocations: 0.7447 MB / 0.8258 GB, free: 3.305 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.79e-05/0.8225, allocations: 68.28 kB / 0.8259 GB, free: 3.273 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.8226, allocations: 97.53 kB / 0.826 GB, free: 3.234 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.8243, allocations: 0.9456 MB / 0.8269 GB, free: 2.633 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.8243, allocations: 3.938 kB / 0.8269 GB, free: 2.629 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.42e-05/0.8244, allocations: 38.44 kB / 0.8269 GB, free: 2.602 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/0.8244, allocations: 23.56 kB / 0.827 GB, free: 2.602 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001813/0.8263, allocations: 1.131 MB / 0.8281 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003909/0.8302, allocations: 2.51 MB / 0.8305 GB, free: 144 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.8317, allocations: 0.8202 MB / 0.8313 GB, free: 15.67 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005222/0.8322, allocations: 294.3 kB / 0.8316 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006743/0.8329, allocations: 479.4 kB / 0.8321 GB, free: 15 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008199/0.8338, allocations: 442 kB / 0.8325 GB, free: 14.72 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=73): time 2.445e-06/0.8338, allocations: 0 / 0.8325 GB, free: 14.72 MB / 0.6075 GB Notification: Performance of matching and sorting (n=73): time 0.003013/0.8368, allocations: 1.094 MB / 0.8336 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.8369, allocations: 187.4 kB / 0.8337 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008077/0.8377, allocations: 0.604 MB / 0.8343 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.024e-05/0.8378, allocations: 39.8 kB / 0.8344 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.8382, allocations: 407.8 kB / 0.8347 GB, free: 13.15 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002122/0.8384, allocations: 243 kB / 0.835 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002394/0.8386, allocations: 153.3 kB / 0.8351 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001832/0.8388, allocations: 384.5 kB / 0.8355 GB, free: 12.47 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004879/0.8393, allocations: 244.7 kB / 0.8357 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006128/0.8399, allocations: 333.5 kB / 0.836 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.841, allocations: 0.5713 MB / 0.8366 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.841, allocations: 0 / 0.8366 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001929/0.843, allocations: 0.7925 MB / 0.8374 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.843, allocations: 9.234 kB / 0.8374 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.843, allocations: 0 / 0.8374 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000588/0.8436, allocations: 83.33 kB / 0.8375 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006214/0.8443, allocations: 152.9 kB / 0.8376 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002119/0.8464, allocations: 1.625 MB / 0.8392 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007224/0.8471, allocations: 82.58 kB / 0.8393 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.286e-05/0.8472, allocations: 31.17 kB / 0.8393 GB, free: 9.699 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.0004948/0.8477, allocations: 264.9 kB / 0.8396 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/0.8479, allocations: 84.03 kB / 0.8396 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002198/0.8501, allocations: 0.9907 MB / 0.8406 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.8501, allocations: 10.09 kB / 0.8406 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.8501, allocations: 0 / 0.8406 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.8501, allocations: 11.92 kB / 0.8406 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003138/0.8533, allocations: 1.892 MB / 0.8425 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.8533, allocations: 3.984 kB / 0.8425 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000559/0.8539, allocations: 142.4 kB / 0.8426 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004308/0.8543, allocations: 74.47 kB / 0.8427 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.253e-05/0.8544, allocations: 23.64 kB / 0.8427 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/0.8563, allocations: 1.661 MB / 0.8443 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.8563, allocations: 0 / 0.8443 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.8582, allocations: 0.9261 MB / 0.8452 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003813/0.8586, allocations: 259.4 kB / 0.8455 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.8587, allocations: 14.22 kB / 0.8455 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005677/0.8593, allocations: 59.94 kB / 0.8456 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.8594, allocations: 56.64 kB / 0.8456 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.814e-05/0.8595, allocations: 32.11 kB / 0.8456 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005431/0.8601, allocations: 434.9 kB / 0.8461 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8601, allocations: 0 / 0.8461 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009065/0.861, allocations: 315.4 kB / 0.8464 GB, free: 4.707 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.001401/0.8624, allocations: 0.6094 MB / 0.8469 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001664/0.8641, allocations: 0.7737 MB / 0.8477 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.8641, allocations: 3.938 kB / 0.8477 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000869/0.865, allocations: 0.4885 MB / 0.8482 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.8662, allocations: 289.4 kB / 0.8485 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004126/0.8703, allocations: 1.753 MB / 0.8502 GB, free: 1.023 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006662/0.871, allocations: 1.019 MB / 0.8512 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.8713, allocations: 111.4 kB / 0.8513 GB, free: 15.87 MB / 0.6231 GB Notification: Performance of SimCode: time 7.71e-07/0.8713, allocations: 4 kB / 0.8513 GB, free: 15.87 MB / 0.6231 GB Notification: Performance of Templates: time 0.02447/0.8958, allocations: 18.05 MB / 0.8689 GB, free: 13.83 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