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.008942/0.008942, allocations: 100.2 kB / 15.87 MB, free: 5.871 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.001357/0.001357, allocations: 193.2 kB / 16.79 MB, free: 5.816 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.437/1.437, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9454/0.9454, allocations: 135.1 MB / 425.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 64.56 kB / 0.5053 GB, free: 5.719 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.1848, allocations: 80.93 MB / 0.5843 GB, free: 4.961 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.006144/0.191, allocations: 4.196 MB / 0.5884 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.5426/0.7337, allocations: 148.2 MB / 0.7331 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009043/0.7346, allocations: 19.53 kB / 0.7332 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006056/0.7352, allocations: 139.8 kB / 0.7333 GB, free: 14 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001508/0.7368, allocations: 393 kB / 0.7337 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001987/0.7388, allocations: 0.6966 MB / 0.7344 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001369/0.7402, allocations: 1.124 MB / 0.7355 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001059/0.7412, allocations: 0.6805 MB / 0.7361 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006522/0.7419, allocations: 404.1 kB / 0.7365 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005519/0.7425, allocations: 468.8 kB / 0.7369 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001377/0.7426, allocations: 61.75 kB / 0.737 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009896/0.7436, allocations: 410 kB / 0.7374 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002785/0.7439, allocations: 235.5 kB / 0.7376 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005112/0.7444, allocations: 0.4892 MB / 0.7381 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001337/0.7458, allocations: 1.17 MB / 0.7392 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.7458, allocations: 1.781 kB / 0.7392 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.352e-06/0.7458, allocations: 0 / 0.7392 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.261e-05/0.7458, allocations: 0 / 0.7392 GB, free: 11.04 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: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.002536/0.7483, allocations: 1.39 MB / 0.7406 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.7484, allocations: 9.75 kB / 0.7406 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.7501, allocations: 296.3 kB / 0.7409 GB, free: 9.812 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.7512, allocations: 0.7268 MB / 0.7416 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.391e-05/0.7513, allocations: 66.72 kB / 0.7417 GB, free: 9.18 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.7515, allocations: 87.41 kB / 0.7418 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002046/0.7535, allocations: 1.01 MB / 0.7427 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.7535, allocations: 1.375 kB / 0.7427 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.179e-05/0.7536, allocations: 36.25 kB / 0.7428 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.043e-05/0.7537, allocations: 22 kB / 0.7428 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002277/0.756, allocations: 1.229 MB / 0.744 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00439/0.7604, allocations: 2.571 MB / 0.7465 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002375/0.7628, allocations: 0.9354 MB / 0.7474 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007212/0.7635, allocations: 337.5 kB / 0.7477 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.461e-05/0.7636, allocations: 31.09 kB / 0.7478 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001128/0.7647, allocations: 490.1 kB / 0.7482 GB, free: 5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=75): time 2.524e-06/0.7647, allocations: 3.938 kB / 0.7482 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of matching and sorting (n=75): time 0.003624/0.7684, allocations: 1.228 MB / 0.7494 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.7685, allocations: 196.6 kB / 0.7496 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008022/0.7693, allocations: 0.5978 MB / 0.7502 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.476e-05/0.7694, allocations: 37.7 kB / 0.7502 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003468/0.7698, allocations: 404.2 kB / 0.7506 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/0.77, allocations: 252.3 kB / 0.7509 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002579/0.7703, allocations: 162.5 kB / 0.751 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.7704, allocations: 386.6 kB / 0.7514 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006929/0.7711, allocations: 293.8 kB / 0.7517 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007814/0.7719, allocations: 383.1 kB / 0.752 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.7734, allocations: 0.6501 MB / 0.7527 GB, free: 388 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.7734, allocations: 4 kB / 0.7527 GB, free: 384 kB / 0.5606 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002249/0.7757, allocations: 0.8796 MB / 0.7535 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.7757, allocations: 8 kB / 0.7535 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.7757, allocations: 0 / 0.7535 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006221/0.7763, allocations: 88.8 kB / 0.7536 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007611/0.7771, allocations: 171.7 kB / 0.7538 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/0.7792, allocations: 1.509 MB / 0.7553 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007975/0.78, allocations: 103.4 kB / 0.7554 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.33e-05/0.78, allocations: 35.97 kB / 0.7554 GB, free: 13.44 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.0005431/0.7806, allocations: 261.2 kB / 0.7557 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.7808, allocations: 83 kB / 0.7557 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002665/0.7834, allocations: 1.106 MB / 0.7568 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.7835, allocations: 8 kB / 0.7568 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.7835, allocations: 0 / 0.7568 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.709e-06/0.7835, allocations: 3.984 kB / 0.7568 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003726/0.7872, allocations: 2.038 MB / 0.7588 GB, free: 9.871 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.7872, allocations: 3.938 kB / 0.7588 GB, free: 9.867 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007043/0.7879, allocations: 163.8 kB / 0.759 GB, free: 9.707 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005141/0.7885, allocations: 92.69 kB / 0.7591 GB, free: 9.613 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.765e-05/0.7885, allocations: 27.98 kB / 0.7591 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001865/0.7904, allocations: 1.529 MB / 0.7606 GB, free: 7.918 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.7904, allocations: 4.031 kB / 0.7606 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002298/0.7927, allocations: 1.024 MB / 0.7616 GB, free: 6.875 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/0.7931, allocations: 263.8 kB / 0.7618 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.7932, allocations: 19.94 kB / 0.7619 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000676/0.7939, allocations: 79.8 kB / 0.7619 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.7941, allocations: 60.92 kB / 0.762 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.362e-05/0.7942, allocations: 36.09 kB / 0.762 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005857/0.7948, allocations: 439 kB / 0.7624 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7948, allocations: 0.8438 kB / 0.7624 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009688/0.7957, allocations: 307.1 kB / 0.7627 GB, free: 5.684 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.001506/0.7973, allocations: 0.6007 MB / 0.7633 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002045/0.7993, allocations: 0.8702 MB / 0.7642 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.289e-06/0.7993, allocations: 0 / 0.7642 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.8004, allocations: 0.5315 MB / 0.7647 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.8016, allocations: 261 kB / 0.7649 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004224/0.8059, allocations: 2.256 MB / 0.7671 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005667/0.8064, allocations: 1.023 MB / 0.7681 GB, free: 308 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003598/0.8068, allocations: 107.4 kB / 0.7682 GB, free: 204 kB / 0.5762 GB Notification: Performance of SimCode: time 6.22e-07/0.8068, allocations: 4 kB / 0.7683 GB, free: 200 kB / 0.5762 GB Notification: Performance of Templates: time 0.02834/0.8352, allocations: 18.13 MB / 0.786 GB, free: 14.1 MB / 0.6075 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++14 -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