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.001313/0.001312, allocations: 100.1 kB / 15.88 MB, free: 12 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.001164/0.001164, allocations: 199.6 kB / 16.79 MB, free: 6.809 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.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9676/0.9676, allocations: 135.1 MB / 425.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002185/0.002185, allocations: 60.69 kB / 0.5053 GB, free: 5.805 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1911/0.1933, allocations: 80.93 MB / 0.5843 GB, free: 5.039 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient): time 0.00715/0.2005, allocations: 4.413 MB / 0.5887 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.558/0.7586, allocations: 148.3 MB / 0.7335 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009525/0.7595, allocations: 23.28 kB / 0.7335 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006633/0.7603, allocations: 138.6 kB / 0.7337 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001701/0.762, allocations: 404.5 kB / 0.7341 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002195/0.7642, allocations: 0.7853 MB / 0.7348 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001708/0.7659, allocations: 1.274 MB / 0.7361 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001191/0.7671, allocations: 0.7615 MB / 0.7368 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008329/0.7679, allocations: 469.4 kB / 0.7373 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000684/0.7686, allocations: 0.5403 MB / 0.7378 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001633/0.7688, allocations: 69.72 kB / 0.7379 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001074/0.7699, allocations: 439.2 kB / 0.7383 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002776/0.7702, allocations: 268 kB / 0.7385 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000501/0.7707, allocations: 0.5387 MB / 0.7391 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001372/0.7721, allocations: 1.273 MB / 0.7403 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.7721, allocations: 4 kB / 0.7403 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.203e-06/0.7721, allocations: 4 kB / 0.7403 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.783e-05/0.7721, allocations: 0 / 0.7403 GB, free: 10.3 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: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.003082/0.7752, allocations: 1.554 MB / 0.7418 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.7753, allocations: 9.344 kB / 0.7418 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005476/0.7807, allocations: 0.748 MB / 0.7426 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/0.782, allocations: 0.7789 MB / 0.7433 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.961e-05/0.7821, allocations: 75.34 kB / 0.7434 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.7823, allocations: 99.38 kB / 0.7435 GB, free: 8.062 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003216/0.7855, allocations: 1.371 MB / 0.7448 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.7855, allocations: 0 / 0.7448 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/0.7857, allocations: 41.97 kB / 0.7449 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/0.7857, allocations: 30.75 kB / 0.7449 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004373/0.7901, allocations: 1.835 MB / 0.7467 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005968/0.796, allocations: 3.139 MB / 0.7498 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003104/0.7992, allocations: 1.276 MB / 0.751 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00143/0.8006, allocations: 0.5671 MB / 0.7516 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007119/0.8013, allocations: 478.6 kB / 0.752 GB, free: 1.117 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001857/0.8032, allocations: 0.7308 MB / 0.7527 GB, free: 380 kB / 0.5606 GB Notification: Performance of pre-optimization done (n=100): time 2.805e-06/0.8032, allocations: 4 kB / 0.7527 GB, free: 376 kB / 0.5606 GB Notification: Performance of matching and sorting (n=100): time 0.005905/0.8091, allocations: 1.842 MB / 0.7545 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.8092, allocations: 200.8 kB / 0.7547 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007882/0.81, allocations: 0.6134 MB / 0.7553 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.051e-05/0.8101, allocations: 41.7 kB / 0.7554 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003325/0.8105, allocations: 420.5 kB / 0.7558 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002826/0.8108, allocations: 331.1 kB / 0.7561 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000323/0.8111, allocations: 190.5 kB / 0.7563 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001936/0.8113, allocations: 390.7 kB / 0.7566 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.8127, allocations: 473.7 kB / 0.7571 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/0.8142, allocations: 0.574 MB / 0.7576 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002826/0.8171, allocations: 1.027 MB / 0.7587 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.8171, allocations: 0 / 0.7587 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003826/0.8209, allocations: 1.298 MB / 0.7599 GB, free: 8.855 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.821, allocations: 4 kB / 0.7599 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.821, allocations: 0 / 0.7599 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006079/0.8216, allocations: 92.83 kB / 0.76 GB, free: 8.758 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.823, allocations: 253 kB / 0.7603 GB, free: 8.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/0.8251, allocations: 1.505 MB / 0.7617 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/0.8263, allocations: 162.2 kB / 0.7619 GB, free: 6.715 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.8264, allocations: 51 kB / 0.7619 GB, free: 6.668 MB / 0.5762 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.0005235/0.827, allocations: 273.6 kB / 0.7622 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001892/0.8272, allocations: 90.97 kB / 0.7623 GB, free: 6.301 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004313/0.8315, allocations: 1.571 MB / 0.7638 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.8315, allocations: 15.94 kB / 0.7638 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.8315, allocations: 2.906 kB / 0.7638 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.8315, allocations: 7.969 kB / 0.7638 GB, free: 4.699 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0059/0.8374, allocations: 2.722 MB / 0.7665 GB, free: 1.918 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.8375, allocations: 3.984 kB / 0.7665 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/0.8387, allocations: 243.7 kB / 0.7667 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005235/0.8393, allocations: 84.77 kB / 0.7668 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.47e-05/0.8394, allocations: 31.97 kB / 0.7668 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.8413, allocations: 1.54 MB / 0.7683 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.8413, allocations: 0 / 0.7683 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003897/0.8452, allocations: 1.433 MB / 0.7697 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005003/0.8457, allocations: 299.5 kB / 0.77 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.8459, allocations: 24 kB / 0.7701 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.8469, allocations: 119.9 kB / 0.7702 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.8471, allocations: 68.91 kB / 0.7702 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.656e-05/0.8472, allocations: 39.97 kB / 0.7703 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005994/0.8478, allocations: 447 kB / 0.7707 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.8e-07/0.8478, allocations: 0 / 0.7707 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001157/0.849, allocations: 367.1 kB / 0.771 GB, free: 13.07 MB / 0.5919 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.001475/0.8505, allocations: 0.6196 MB / 0.7717 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003526/0.854, allocations: 1.307 MB / 0.7729 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.854, allocations: 0 / 0.7729 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001825/0.8559, allocations: 0.7773 MB / 0.7737 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.8571, allocations: 275.2 kB / 0.7739 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005217/0.8624, allocations: 2.624 MB / 0.7765 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006226/0.863, allocations: 1.057 MB / 0.7775 GB, free: 6.582 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005746/0.8636, allocations: 143.3 kB / 0.7777 GB, free: 6.445 MB / 0.5919 GB Notification: Performance of SimCode: time 7.81e-07/0.8636, allocations: 0 / 0.7777 GB, free: 6.445 MB / 0.5919 GB Notification: Performance of Templates: time 0.02807/0.8917, allocations: 21.16 MB / 0.7983 GB, free: 1.359 MB / 0.6075 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++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.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