Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.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.SkyBrightness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 104.6 kB / 16.27 MB, free: 6.414 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.0009965/0.0009967, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.373/1.373, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7966/0.7966, allocations: 135.1 MB / 426.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 67.89 kB / 0.506 GB, free: 8.391 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3362, allocations: 80.9 MB / 0.585 GB, free: 25.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.005036/0.3412, allocations: 4.184 MB / 0.5891 GB, free: 21.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1537/0.4949, allocations: 150.5 MB / 0.7361 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009594/0.4959, allocations: 19.88 kB / 0.7361 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007361/0.4967, allocations: 166.5 kB / 0.7362 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001906/0.4987, allocations: 481 kB / 0.7367 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002108/0.5008, allocations: 0.804 MB / 0.7375 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001471/0.5023, allocations: 1.203 MB / 0.7387 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00112/0.5034, allocations: 0.7038 MB / 0.7393 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006991/0.5041, allocations: 462.3 kB / 0.7398 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006862/0.5048, allocations: 489.8 kB / 0.7402 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.00027/0.5051, allocations: 120 kB / 0.7404 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009613/0.5061, allocations: 455.7 kB / 0.7408 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003455/0.5064, allocations: 295 kB / 0.7411 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006302/0.5071, allocations: 0.5401 MB / 0.7416 GB, free: 9.68 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001735/0.5088, allocations: 1.534 MB / 0.7431 GB, free: 8.141 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.5088, allocations: 0 / 0.7431 GB, free: 8.141 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.875e-06/0.5088, allocations: 3.984 kB / 0.7431 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.075e-05/0.5088, allocations: 0 / 0.7431 GB, free: 8.137 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: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.002127/0.511, allocations: 1.395 MB / 0.7445 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.511, allocations: 9.109 kB / 0.7445 GB, free: 6.684 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001669/0.5127, allocations: 303.2 kB / 0.7448 GB, free: 6.387 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009321/0.5136, allocations: 0.7344 MB / 0.7455 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.029e-05/0.5137, allocations: 66 kB / 0.7455 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.5138, allocations: 88 kB / 0.7456 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/0.5156, allocations: 1.003 MB / 0.7466 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.5156, allocations: 4 kB / 0.7466 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.685e-05/0.5157, allocations: 40 kB / 0.7467 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.5157, allocations: 24 kB / 0.7467 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0022/0.5179, allocations: 1.214 MB / 0.7479 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003939/0.5219, allocations: 2.585 MB / 0.7504 GB, free: 496 kB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.295/0.8169, allocations: 0.9301 MB / 0.7513 GB, free: 165 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008276/0.8177, allocations: 333.3 kB / 0.7516 GB, free: 165 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.728e-05/0.8178, allocations: 36.14 kB / 0.7516 GB, free: 165 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/0.819, allocations: 492.2 kB / 0.7521 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=75): time 2.876e-06/0.819, allocations: 0.5938 kB / 0.7521 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=75): time 0.003922/0.8229, allocations: 1.235 MB / 0.7533 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.256e-05/0.823, allocations: 189.2 kB / 0.7535 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008731/0.8239, allocations: 0.5992 MB / 0.7541 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.944e-05/0.8239, allocations: 41.42 kB / 0.7541 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.8243, allocations: 405.1 kB / 0.7545 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.8244, allocations: 249.7 kB / 0.7548 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002619/0.8247, allocations: 150.6 kB / 0.7549 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.8248, allocations: 384.3 kB / 0.7553 GB, free: 163 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000795/0.8256, allocations: 289.9 kB / 0.7555 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009357/0.8266, allocations: 382.2 kB / 0.7559 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.8283, allocations: 0.6584 MB / 0.7565 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.8283, allocations: 1.438 kB / 0.7565 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002671/0.831, allocations: 0.8878 MB / 0.7574 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.831, allocations: 11.03 kB / 0.7574 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.831, allocations: 1.125 kB / 0.7574 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006586/0.8317, allocations: 82.42 kB / 0.7575 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008656/0.8326, allocations: 177 kB / 0.7577 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/0.8345, allocations: 1.633 MB / 0.7593 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007886/0.8353, allocations: 97.77 kB / 0.7594 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.723e-05/0.8354, allocations: 33.59 kB / 0.7594 GB, free: 160.6 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 (86): * Single equations (assignments): 85 * 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.0004111/0.8359, allocations: 269.6 kB / 0.7597 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.836, allocations: 76.16 kB / 0.7597 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002677/0.8387, allocations: 1.112 MB / 0.7608 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.8387, allocations: 9.469 kB / 0.7608 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.8387, allocations: 0.6562 kB / 0.7608 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/0.8388, allocations: 5.422 kB / 0.7608 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003433/0.8422, allocations: 2.029 MB / 0.7628 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.8e-06/0.8422, allocations: 5.078 kB / 0.7628 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007316/0.843, allocations: 166.7 kB / 0.763 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004308/0.8434, allocations: 72.88 kB / 0.763 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.097e-05/0.8435, allocations: 24.36 kB / 0.7631 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001498/0.845, allocations: 1.659 MB / 0.7647 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.845, allocations: 0 / 0.7647 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.847, allocations: 1.022 MB / 0.7657 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002408/0.8473, allocations: 262 kB / 0.7659 GB, free: 156.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.8474, allocations: 16.03 kB / 0.7659 GB, free: 156.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000678/0.8481, allocations: 75.89 kB / 0.766 GB, free: 156.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.8482, allocations: 65.95 kB / 0.7661 GB, free: 156 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.82e-05/0.8483, allocations: 33.36 kB / 0.7661 GB, free: 156 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004736/0.8488, allocations: 433.6 kB / 0.7665 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.9e-07/0.8488, allocations: 0 / 0.7665 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007404/0.8495, allocations: 315.1 kB / 0.7668 GB, free: 155.5 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 (88): * Single equations (assignments): 85 * 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.001228/0.8507, allocations: 0.6112 MB / 0.7674 GB, free: 155.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002303/0.8531, allocations: 1.059 MB / 0.7685 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.8531, allocations: 0 / 0.7685 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009545/0.854, allocations: 0.5354 MB / 0.769 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.8552, allocations: 285 kB / 0.7693 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003474/0.8586, allocations: 1.836 MB / 0.771 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.859, allocations: 1.023 MB / 0.772 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.8593, allocations: 111.4 kB / 0.7722 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of SimCode: time 5.11e-07/0.8593, allocations: 0 / 0.7722 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.01703/0.8764, allocations: 18.15 MB / 0.7899 GB, free: 132.2 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.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.SkyBrightnessCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessFunctions.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.SkyBrightnessCalcHelperMain.o] Error 1