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.001368/0.001368, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.001343/0.001343, allocations: 192.5 kB / 16.91 MB, free: 6.191 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.442/1.442, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8159/0.8159, allocations: 135.1 MB / 425.9 MB, free: 4.379 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 71.88 kB / 0.5055 GB, free: 8.766 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4371/0.4386, allocations: 80.91 MB / 0.5845 GB, free: 25.18 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient): time 0.005438/0.4441, allocations: 4.428 MB / 0.5888 GB, free: 21.72 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1674/0.6115, allocations: 148.4 MB / 0.7338 GB, free: 1.598 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001369/0.6129, allocations: 15.94 kB / 0.7338 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009476/0.6139, allocations: 130.9 kB / 0.7339 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003097/0.617, allocations: 437.6 kB / 0.7343 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004265/0.6213, allocations: 0.8023 MB / 0.7351 GB, free: 240 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003056/0.6244, allocations: 1.36 MB / 0.7365 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002212/0.6266, allocations: 0.7935 MB / 0.7372 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0014/0.628, allocations: 0.5255 MB / 0.7377 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001395/0.6294, allocations: 0.5717 MB / 0.7383 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0005778/0.63, allocations: 128 kB / 0.7384 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002071/0.6321, allocations: 0.4918 MB / 0.7389 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0007839/0.6329, allocations: 334.9 kB / 0.7392 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00142/0.6344, allocations: 0.5945 MB / 0.7398 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00293/0.6373, allocations: 1.302 MB / 0.7411 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.6373, allocations: 0 / 0.7411 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.013e-06/0.6374, allocations: 0 / 0.7411 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.959e-05/0.6374, allocations: 4 kB / 0.7411 GB, free: 10.08 MB / 0.5762 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.005583/0.643, allocations: 1.553 MB / 0.7426 GB, free: 8.477 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 6.579e-05/0.6431, allocations: 9.109 kB / 0.7426 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009859/0.653, allocations: 0.7484 MB / 0.7433 GB, free: 7.719 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002978/0.656, allocations: 0.7734 MB / 0.7441 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001511/0.6562, allocations: 82.09 kB / 0.7442 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004854/0.6567, allocations: 100 kB / 0.7443 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006943/0.6636, allocations: 1.367 MB / 0.7456 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.12e-05/0.6637, allocations: 0 / 0.7456 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000265/0.664, allocations: 48 kB / 0.7456 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.076e-05/0.6641, allocations: 24 kB / 0.7457 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009148/0.6732, allocations: 1.838 MB / 0.7475 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01183/0.6851, allocations: 3.14 MB / 0.7505 GB, free: 164 kB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5038/1.189, allocations: 1.264 MB / 0.7518 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0031/1.192, allocations: 0.5678 MB / 0.7523 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001023/1.193, allocations: 483.5 kB / 0.7528 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003785/1.197, allocations: 0.7287 MB / 0.7535 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=100): time 1.176e-05/1.197, allocations: 0.875 kB / 0.7535 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=100): time 0.01114/1.208, allocations: 1.85 MB / 0.7553 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/1.208, allocations: 195.3 kB / 0.7555 GB, free: 162.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/1.21, allocations: 0.6094 MB / 0.7561 GB, free: 162.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002172/1.21, allocations: 42.14 kB / 0.7561 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005239/1.211, allocations: 417 kB / 0.7565 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004751/1.211, allocations: 338.3 kB / 0.7568 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007702/1.212, allocations: 188.2 kB / 0.757 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002135/1.212, allocations: 391.2 kB / 0.7574 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002677/1.215, allocations: 476.8 kB / 0.7578 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003019/1.218, allocations: 0.5769 MB / 0.7584 GB, free: 161 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0052/1.223, allocations: 1.023 MB / 0.7594 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.348e-05/1.223, allocations: 0 / 0.7594 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.007082/1.23, allocations: 1.301 MB / 0.7607 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.082e-05/1.23, allocations: 9.25 kB / 0.7607 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.785e-05/1.231, allocations: 1.094 kB / 0.7607 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/1.232, allocations: 78.12 kB / 0.7608 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00262/1.234, allocations: 259.5 kB / 0.761 GB, free: 160 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002996/1.237, allocations: 1.623 MB / 0.7626 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002389/1.24, allocations: 157.9 kB / 0.7627 GB, free: 158.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002399/1.24, allocations: 46.73 kB / 0.7628 GB, free: 158.3 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.00101/1.241, allocations: 273.9 kB / 0.7631 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000525/1.241, allocations: 84.56 kB / 0.7631 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008025/1.249, allocations: 1.583 MB / 0.7647 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/1.25, allocations: 12.41 kB / 0.7647 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/1.25, allocations: 4 kB / 0.7647 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.967e-05/1.25, allocations: 7.969 kB / 0.7647 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009675/1.259, allocations: 2.713 MB / 0.7674 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.876e-06/1.259, allocations: 0 / 0.7674 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002309/1.262, allocations: 251.6 kB / 0.7676 GB, free: 154.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007524/1.262, allocations: 72.78 kB / 0.7677 GB, free: 154.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001591/1.263, allocations: 36.56 kB / 0.7677 GB, free: 154.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002624/1.265, allocations: 1.665 MB / 0.7693 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.265, allocations: 3.984 kB / 0.7693 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007029/1.272, allocations: 1.429 MB / 0.7707 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009752/1.273, allocations: 299.6 kB / 0.771 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003858/1.274, allocations: 16 kB / 0.771 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002103/1.276, allocations: 115.7 kB / 0.7711 GB, free: 151 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002662/1.276, allocations: 76.89 kB / 0.7712 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/1.276, allocations: 43.97 kB / 0.7713 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001027/1.278, allocations: 439 kB / 0.7717 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.51e-07/1.278, allocations: 0 / 0.7717 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001779/1.279, allocations: 365.7 kB / 0.772 GB, free: 150.1 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 (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.002558/1.282, allocations: 0.6244 MB / 0.7726 GB, free: 149.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007906/1.29, allocations: 1.555 MB / 0.7741 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/1.29, allocations: 4 kB / 0.7741 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003132/1.293, allocations: 0.7769 MB / 0.7749 GB, free: 147.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002582/1.296, allocations: 299.6 kB / 0.7752 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008865/1.305, allocations: 2.62 MB / 0.7778 GB, free: 144.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008125/1.305, allocations: 1.06 MB / 0.7788 GB, free: 143.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/1.307, allocations: 139.3 kB / 0.7789 GB, free: 143.3 MB / 0.5762 GB Notification: Performance of SimCode: time 1.272e-06/1.307, allocations: 4 kB / 0.7789 GB, free: 143.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.04654/1.353, allocations: 21.17 MB / 0.7996 GB, free: 122.2 MB / 0.5762 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