Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient.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.BrighteningCoefficient,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 104.5 kB / 16.41 MB, free: 6.508 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.00126/0.00126, allocations: 184.2 kB / 17.34 MB, free: 5.738 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.478/1.478, 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.8685/0.8685, allocations: 135.2 MB / 426.4 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 66.81 kB / 0.5863 GB, free: 21.46 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.1855, allocations: 80.93 MB / 0.6654 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient): time 0.007107/0.1926, allocations: 4.407 MB / 0.6697 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6445/0.8371, allocations: 151.1 MB / 0.8172 GB, free: 7.824 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009503/0.8381, allocations: 16.31 kB / 0.8172 GB, free: 7.82 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006351/0.8387, allocations: 184.6 kB / 0.8174 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001756/0.8404, allocations: 490.1 kB / 0.8179 GB, free: 7.523 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002191/0.8426, allocations: 0.8994 MB / 0.8188 GB, free: 7.191 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001659/0.8443, allocations: 1.36 MB / 0.8201 GB, free: 6.828 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009675/0.8453, allocations: 0.5746 MB / 0.8206 GB, free: 6.613 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.8463, allocations: 0.5308 MB / 0.8212 GB, free: 6.441 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008418/0.8472, allocations: 0.5776 MB / 0.8217 GB, free: 6.148 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001652/0.8473, allocations: 131 kB / 0.8219 GB, free: 6.148 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001117/0.8484, allocations: 0.5072 MB / 0.8224 GB, free: 5.957 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003499/0.8488, allocations: 328.9 kB / 0.8227 GB, free: 5.695 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006003/0.8494, allocations: 0.6024 MB / 0.8233 GB, free: 5.23 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002328/0.8517, allocations: 1.758 MB / 0.825 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.8517, allocations: 0 / 0.825 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8517, allocations: 0 / 0.825 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.251e-05/0.8517, allocations: 5.438 kB / 0.825 GB, free: 3.934 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: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.003005/0.8548, allocations: 1.587 MB / 0.8265 GB, free: 2.711 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.8548, allocations: 14.89 kB / 0.8265 GB, free: 2.707 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004982/0.8598, allocations: 0.753 MB / 0.8273 GB, free: 2.363 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001428/0.8612, allocations: 0.8013 MB / 0.8281 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.007e-05/0.8613, allocations: 74.75 kB / 0.8281 GB, free: 1.668 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/0.8614, allocations: 104.5 kB / 0.8282 GB, free: 1.633 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003188/0.8646, allocations: 1.364 MB / 0.8296 GB, free: 0.7773 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.62e-05/0.8646, allocations: 2.781 kB / 0.8296 GB, free: 0.7773 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/0.8648, allocations: 46.12 kB / 0.8296 GB, free: 0.7422 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.8648, allocations: 25.41 kB / 0.8296 GB, free: 0.7422 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004587/0.8694, allocations: 1.835 MB / 0.8314 GB, free: 15.88 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006392/0.8758, allocations: 3.105 MB / 0.8345 GB, free: 13.58 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003234/0.879, allocations: 1.197 MB / 0.8356 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001464/0.8805, allocations: 0.5175 MB / 0.8361 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007454/0.8812, allocations: 486.6 kB / 0.8366 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001878/0.8831, allocations: 0.7315 MB / 0.8373 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=100): time 2.925e-06/0.8831, allocations: 2.625 kB / 0.8373 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100): time 0.005996/0.8891, allocations: 1.852 MB / 0.8391 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001571/0.8892, allocations: 195.3 kB / 0.8393 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009312/0.8902, allocations: 0.6053 MB / 0.8399 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001113/0.8903, allocations: 43.3 kB / 0.8399 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004185/0.8907, allocations: 427.8 kB / 0.8403 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003496/0.8911, allocations: 345.6 kB / 0.8407 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003435/0.8914, allocations: 191.6 kB / 0.8409 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002344/0.8916, allocations: 389.1 kB / 0.8412 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001431/0.8931, allocations: 475.4 kB / 0.8417 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/0.8946, allocations: 0.5764 MB / 0.8422 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002911/0.8975, allocations: 1.025 MB / 0.8432 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.8975, allocations: 3.625 kB / 0.8432 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.00398/0.9015, allocations: 1.3 MB / 0.8445 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.9015, allocations: 12.12 kB / 0.8445 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.9016, allocations: 0 / 0.8445 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005827/0.9021, allocations: 76.78 kB / 0.8446 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.9035, allocations: 263.6 kB / 0.8449 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002342/0.9058, allocations: 1.635 MB / 0.8465 GB, free: 5.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/0.9071, allocations: 153.2 kB / 0.8466 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.9073, allocations: 47.95 kB / 0.8466 GB, free: 4.848 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (112): * Single equations (assignments): 111 * 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.0005857/0.9078, allocations: 275.5 kB / 0.8469 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00022/0.9081, allocations: 87.44 kB / 0.847 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004681/0.9127, allocations: 1.581 MB / 0.8485 GB, free: 2.895 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.9128, allocations: 12 kB / 0.8485 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.9128, allocations: 0 / 0.8485 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.9128, allocations: 3.984 kB / 0.8485 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006552/0.9193, allocations: 2.722 MB / 0.8512 GB, free: 92 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.9193, allocations: 3.984 kB / 0.8512 GB, free: 88 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001326/0.9207, allocations: 247.6 kB / 0.8514 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004423/0.9211, allocations: 76.47 kB / 0.8515 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.326e-05/0.9212, allocations: 35.97 kB / 0.8516 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002244/0.9234, allocations: 1.654 MB / 0.8532 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.9234, allocations: 0 / 0.8532 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004267/0.9277, allocations: 1.443 MB / 0.8546 GB, free: 12.47 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005797/0.9283, allocations: 304 kB / 0.8549 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/0.9285, allocations: 23.95 kB / 0.8549 GB, free: 12.13 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.9296, allocations: 119.9 kB / 0.855 GB, free: 12.02 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.9298, allocations: 76.83 kB / 0.8551 GB, free: 11.94 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.9299, allocations: 43.97 kB / 0.8551 GB, free: 11.9 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007191/0.9306, allocations: 443 kB / 0.8555 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9306, allocations: 0 / 0.8555 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001264/0.9319, allocations: 363.1 kB / 0.8559 GB, free: 11.12 MB / 0.6231 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 (113): * Single equations (assignments): 110 * 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.002165/0.9341, allocations: 0.6218 MB / 0.8565 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003914/0.938, allocations: 1.261 MB / 0.8577 GB, free: 9.402 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.938, allocations: 0 / 0.8577 GB, free: 9.402 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002007/0.94, allocations: 0.7265 MB / 0.8584 GB, free: 8.668 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.9414, allocations: 288 kB / 0.8587 GB, free: 8.398 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005597/0.947, allocations: 2.167 MB / 0.8608 GB, free: 6.199 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007847/0.9478, allocations: 1.056 MB / 0.8619 GB, free: 5.113 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006911/0.9485, allocations: 139.3 kB / 0.862 GB, free: 4.98 MB / 0.6231 GB Notification: Performance of SimCode: time 7.41e-07/0.9485, allocations: 0 / 0.862 GB, free: 4.98 MB / 0.6231 GB Notification: Performance of Templates: time 0.03346/0.982, allocations: 21.33 MB / 0.8828 GB, free: 15.68 MB / 0.6544 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient.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.BrighteningCoefficientCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficientFunctions.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.BrighteningCoefficientCalcHelperMain.o] Error 1