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.0009458/0.0009455, allocations: 98.56 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009548/0.0009548, allocations: 180.2 kB / 16.92 MB, free: 6.918 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.276/1.276, allocations: 223.3 MB / 241 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9122/0.9122, allocations: 135.3 MB / 427.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003228/0.0003228, allocations: 8.281 kB / 0.5082 GB, free: 4.77 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1428, allocations: 82.31 MB / 0.5886 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.004299/0.1472, allocations: 3.772 MB / 0.5923 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4127/0.5599, allocations: 146.6 MB / 0.7355 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006204/0.5606, allocations: 15.69 kB / 0.7355 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004867/0.5611, allocations: 139.4 kB / 0.7356 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001287/0.5624, allocations: 395.5 kB / 0.736 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001858/0.5643, allocations: 0.699 MB / 0.7367 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001202/0.5655, allocations: 1.127 MB / 0.7378 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009249/0.5664, allocations: 0.6609 MB / 0.7384 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005159/0.5669, allocations: 316.1 kB / 0.7387 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004389/0.5674, allocations: 348.7 kB / 0.739 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.006e-05/0.5675, allocations: 21.62 kB / 0.7391 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007933/0.5683, allocations: 367.6 kB / 0.7394 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002044/0.5685, allocations: 181.4 kB / 0.7396 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003743/0.5689, allocations: 435.5 kB / 0.74 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.57, allocations: 1.141 MB / 0.7411 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.57, allocations: 0 / 0.7411 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.463e-06/0.57, allocations: 0 / 0.7411 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.229e-05/0.57, allocations: 4 kB / 0.7411 GB, free: 11.96 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.001858/0.5719, allocations: 1.175 MB / 0.7423 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.5719, allocations: 9.562 kB / 0.7423 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001593/0.5735, allocations: 309 kB / 0.7426 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009254/0.5744, allocations: 0.7282 MB / 0.7433 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.693e-05/0.5745, allocations: 69.78 kB / 0.7434 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.5746, allocations: 86.88 kB / 0.7434 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/0.5764, allocations: 1.011 MB / 0.7444 GB, free: 9.969 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.068e-05/0.5765, allocations: 3.938 kB / 0.7444 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.68e-05/0.5766, allocations: 41.16 kB / 0.7445 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.5766, allocations: 22.22 kB / 0.7445 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00221/0.5788, allocations: 1.228 MB / 0.7457 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00396/0.5828, allocations: 2.603 MB / 0.7482 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002259/0.5851, allocations: 0.9499 MB / 0.7492 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006817/0.5858, allocations: 335 kB / 0.7495 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.25e-05/0.5858, allocations: 36.09 kB / 0.7495 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009584/0.5868, allocations: 488.8 kB / 0.75 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=75): time 2.174e-06/0.5868, allocations: 0 / 0.75 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of matching and sorting (n=75): time 0.003375/0.5902, allocations: 1.251 MB / 0.7512 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.5903, allocations: 192.6 kB / 0.7514 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007134/0.591, allocations: 0.6017 MB / 0.752 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.257e-05/0.5911, allocations: 37.7 kB / 0.752 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002943/0.5914, allocations: 400.2 kB / 0.7524 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.5916, allocations: 256.3 kB / 0.7526 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.803e-05/0.5917, allocations: 57.69 kB / 0.7527 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001772/0.5919, allocations: 386.7 kB / 0.7531 GB, free: 3.68 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006946/0.5926, allocations: 293.8 kB / 0.7533 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00078/0.5934, allocations: 395 kB / 0.7537 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.5948, allocations: 0.658 MB / 0.7544 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.5948, allocations: 0 / 0.7544 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002145/0.597, allocations: 0.8879 MB / 0.7552 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.597, allocations: 8 kB / 0.7552 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.597, allocations: 4 kB / 0.7552 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005671/0.5976, allocations: 88.7 kB / 0.7553 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007235/0.5983, allocations: 167.8 kB / 0.7555 GB, free: 1.164 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001958/0.6003, allocations: 1.523 MB / 0.757 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007644/0.6011, allocations: 108.3 kB / 0.7571 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.659e-05/0.6011, allocations: 31.97 kB / 0.7571 GB, free: 15.37 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.0004304/0.6016, allocations: 263.2 kB / 0.7573 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.6017, allocations: 82.98 kB / 0.7574 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002691/0.6044, allocations: 1.112 MB / 0.7585 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.6044, allocations: 8 kB / 0.7585 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.6044, allocations: 4 kB / 0.7585 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.6044, allocations: 7.984 kB / 0.7585 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003587/0.608, allocations: 2.045 MB / 0.7605 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.608, allocations: 4.812 kB / 0.7605 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000695/0.6087, allocations: 167.8 kB / 0.7607 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004893/0.6092, allocations: 84.77 kB / 0.7608 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-05/0.6093, allocations: 27.97 kB / 0.7608 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.6111, allocations: 1.541 MB / 0.7623 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.6111, allocations: 128 / 0.7623 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/0.6133, allocations: 1.027 MB / 0.7633 GB, free: 8.766 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000358/0.6137, allocations: 287.6 kB / 0.7636 GB, free: 8.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.6138, allocations: 16 kB / 0.7636 GB, free: 8.449 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007215/0.6146, allocations: 93.08 kB / 0.7637 GB, free: 8.359 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.6147, allocations: 60.91 kB / 0.7637 GB, free: 8.301 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-05/0.6148, allocations: 31.98 kB / 0.7638 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000556/0.6153, allocations: 439 kB / 0.7642 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6153, allocations: 0 / 0.7642 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009144/0.6163, allocations: 307.2 kB / 0.7645 GB, free: 7.547 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.001404/0.6177, allocations: 0.6029 MB / 0.7651 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00201/0.6197, allocations: 0.8779 MB / 0.7659 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.6197, allocations: 4 kB / 0.7659 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.6208, allocations: 0.5431 MB / 0.7665 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/0.6221, allocations: 257.9 kB / 0.7667 GB, free: 5.461 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004422/0.6265, allocations: 2.32 MB / 0.769 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006267/0.6272, allocations: 1.023 MB / 0.77 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003227/0.6275, allocations: 111.4 kB / 0.7701 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of SimCode: time 2.2e-07/0.6275, allocations: 0 / 0.7701 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of Templates: time 0.02297/0.6505, allocations: 18.02 MB / 0.7877 GB, free: 15.97 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