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.001544/0.001544, allocations: 111.6 kB / 16.41 MB, free: 5.938 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.001614/0.001614, allocations: 188.2 kB / 17.34 MB, free: 5.566 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.51/1.51, allocations: 222.9 MB / 241.1 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.8978/0.8978, allocations: 135.2 MB / 426.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 71.48 kB / 0.5863 GB, free: 21.5 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1849/0.1869, allocations: 80.93 MB / 0.6654 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.006681/0.1935, allocations: 4.181 MB / 0.6694 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.718/0.9115, allocations: 150.9 MB / 0.8168 GB, free: 8.164 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008558/0.9124, allocations: 24.25 kB / 0.8169 GB, free: 8.152 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006177/0.913, allocations: 168.8 kB / 0.817 GB, free: 8.062 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001592/0.9146, allocations: 475.3 kB / 0.8175 GB, free: 7.875 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001957/0.9166, allocations: 0.8142 MB / 0.8183 GB, free: 7.594 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001313/0.9179, allocations: 1.203 MB / 0.8194 GB, free: 7.27 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007844/0.9186, allocations: 0.5246 MB / 0.82 GB, free: 7.09 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005973/0.9192, allocations: 471 kB / 0.8204 GB, free: 6.938 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005368/0.9198, allocations: 485 kB / 0.8209 GB, free: 6.723 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001272/0.9199, allocations: 116 kB / 0.821 GB, free: 6.723 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008864/0.9208, allocations: 491.3 kB / 0.8215 GB, free: 6.625 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002829/0.9211, allocations: 294.2 kB / 0.8217 GB, free: 6.406 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005148/0.9216, allocations: 0.5302 MB / 0.8222 GB, free: 6 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002012/0.9236, allocations: 1.596 MB / 0.8238 GB, free: 4.832 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.9236, allocations: 3.938 kB / 0.8238 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9236, allocations: 2.5 kB / 0.8238 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.725e-05/0.9236, allocations: 0 / 0.8238 GB, free: 4.828 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: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.00257/0.9262, allocations: 1.424 MB / 0.8252 GB, free: 3.691 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.9262, allocations: 8.922 kB / 0.8252 GB, free: 3.691 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001644/0.9279, allocations: 303.9 kB / 0.8255 GB, free: 3.559 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.9291, allocations: 0.7602 MB / 0.8262 GB, free: 2.934 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.21e-05/0.9292, allocations: 65.28 kB / 0.8263 GB, free: 2.902 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.9293, allocations: 89.41 kB / 0.8264 GB, free: 2.875 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/0.9312, allocations: 1.005 MB / 0.8274 GB, free: 2.25 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.9313, allocations: 0 / 0.8274 GB, free: 2.25 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.9314, allocations: 40 kB / 0.8274 GB, free: 2.219 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.9314, allocations: 22.91 kB / 0.8274 GB, free: 2.219 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002254/0.9336, allocations: 1.221 MB / 0.8286 GB, free: 1.648 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004577/0.9382, allocations: 2.547 MB / 0.8311 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.9407, allocations: 0.8959 MB / 0.832 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007336/0.9414, allocations: 309.7 kB / 0.8323 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.213e-05/0.9415, allocations: 31.78 kB / 0.8323 GB, free: 15.07 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001032/0.9425, allocations: 490.9 kB / 0.8328 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=75): time 2.184e-06/0.9425, allocations: 0 / 0.8328 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of matching and sorting (n=75): time 0.003657/0.9462, allocations: 1.231 MB / 0.834 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001601/0.9464, allocations: 192.4 kB / 0.8342 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000958/0.9473, allocations: 0.6012 MB / 0.8348 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.099e-05/0.9474, allocations: 42.64 kB / 0.8348 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004056/0.9478, allocations: 413.2 kB / 0.8352 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002718/0.9481, allocations: 262.9 kB / 0.8354 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002828/0.9484, allocations: 158 kB / 0.8356 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002342/0.9486, allocations: 388.2 kB / 0.836 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007105/0.9493, allocations: 285.6 kB / 0.8362 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008265/0.9501, allocations: 384 kB / 0.8366 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001515/0.9516, allocations: 0.657 MB / 0.8372 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.9517, allocations: 4.875 kB / 0.8372 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002686/0.9543, allocations: 0.8788 MB / 0.8381 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.9544, allocations: 4.719 kB / 0.8381 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.9544, allocations: 4.438 kB / 0.8381 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006206/0.955, allocations: 84.27 kB / 0.8382 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007743/0.9558, allocations: 178.8 kB / 0.8384 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002666/0.9584, allocations: 1.637 MB / 0.84 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009091/0.9594, allocations: 97.69 kB / 0.8401 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.934e-05/0.9594, allocations: 32.36 kB / 0.8401 GB, free: 9.535 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 (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.000546/0.96, allocations: 266.2 kB / 0.8403 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001773/0.9601, allocations: 79.48 kB / 0.8404 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00278/0.9629, allocations: 1.103 MB / 0.8415 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.9629, allocations: 10.25 kB / 0.8415 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.9629, allocations: 3.938 kB / 0.8415 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.9629, allocations: 3.984 kB / 0.8415 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003949/0.9669, allocations: 2.027 MB / 0.8435 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.9669, allocations: 3.562 kB / 0.8435 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006905/0.9676, allocations: 171 kB / 0.8437 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004411/0.968, allocations: 74.25 kB / 0.8437 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.87e-05/0.9681, allocations: 24.11 kB / 0.8438 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002104/0.9702, allocations: 1.661 MB / 0.8454 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.9702, allocations: 2.094 kB / 0.8454 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002386/0.9726, allocations: 1.026 MB / 0.8464 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004092/0.973, allocations: 261.5 kB / 0.8466 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.9731, allocations: 24 kB / 0.8466 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006741/0.9738, allocations: 67.98 kB / 0.8467 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.9739, allocations: 64.92 kB / 0.8468 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-05/0.974, allocations: 31.97 kB / 0.8468 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006235/0.9746, allocations: 443 kB / 0.8472 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9747, allocations: 3.938 kB / 0.8472 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009689/0.9756, allocations: 311.1 kB / 0.8475 GB, free: 3.863 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 (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.002006/0.9776, allocations: 0.5992 MB / 0.8481 GB, free: 3.441 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002245/0.9799, allocations: 0.8391 MB / 0.8489 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.9799, allocations: 0 / 0.8489 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.981, allocations: 0.508 MB / 0.8494 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.9823, allocations: 288.3 kB / 0.8497 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004499/0.9868, allocations: 1.853 MB / 0.8515 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007391/0.9876, allocations: 1.019 MB / 0.8525 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004018/0.988, allocations: 115.4 kB / 0.8526 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of SimCode: time 9.32e-07/0.988, allocations: 4 kB / 0.8526 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of Templates: time 0.02913/1.017, allocations: 18.29 MB / 0.8705 GB, free: 12.48 MB / 0.6387 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