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.0009029/0.0009029, allocations: 91.92 kB / 16.02 MB, free: 80 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.0009838/0.0009838, allocations: 179.7 kB / 16.92 MB, free: 6.656 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.264/1.264, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9136/0.9136, allocations: 135.3 MB / 427.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003072/0.0003072, allocations: 12.22 kB / 0.5082 GB, free: 4.789 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.155, allocations: 82.31 MB / 0.5886 GB, free: 2.652 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient): time 0.004986/0.1601, allocations: 3.991 MB / 0.5925 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4/0.5601, allocations: 146.8 MB / 0.7358 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004611/0.5606, allocations: 22.88 kB / 0.7358 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004408/0.5611, allocations: 141.2 kB / 0.736 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001126/0.5622, allocations: 401.2 kB / 0.7364 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001813/0.564, allocations: 0.7818 MB / 0.7371 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001298/0.5653, allocations: 1.275 MB / 0.7384 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009866/0.5663, allocations: 0.7408 MB / 0.7391 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005531/0.5669, allocations: 376.5 kB / 0.7395 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004964/0.5674, allocations: 432.1 kB / 0.7399 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.711e-05/0.5675, allocations: 29.28 kB / 0.7399 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008014/0.5683, allocations: 395.4 kB / 0.7403 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002242/0.5685, allocations: 209.8 kB / 0.7405 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000433/0.569, allocations: 0.4903 MB / 0.7409 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.5701, allocations: 1.242 MB / 0.7422 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.5701, allocations: 1.969 kB / 0.7422 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5701, allocations: 0 / 0.7422 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.267e-05/0.5701, allocations: 0 / 0.7422 GB, free: 11.54 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.002412/0.5725, allocations: 1.31 MB / 0.7434 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.5726, allocations: 10.12 kB / 0.7435 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00553/0.5781, allocations: 0.8136 MB / 0.7442 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.5793, allocations: 0.7777 MB / 0.745 GB, free: 9.691 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.959e-05/0.5794, allocations: 80.34 kB / 0.7451 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.5795, allocations: 100.2 kB / 0.7452 GB, free: 9.621 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003179/0.5827, allocations: 1.394 MB / 0.7465 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.5827, allocations: 3.938 kB / 0.7465 GB, free: 8.758 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/0.5829, allocations: 42.25 kB / 0.7466 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.672e-05/0.5829, allocations: 26.75 kB / 0.7466 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004448/0.5873, allocations: 1.891 MB / 0.7485 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005676/0.593, allocations: 3.173 MB / 0.7516 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00323/0.5963, allocations: 1.283 MB / 0.7528 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001499/0.5978, allocations: 0.5777 MB / 0.7534 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006594/0.5985, allocations: 486.6 kB / 0.7538 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001808/0.6003, allocations: 0.7368 MB / 0.7546 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=100): time 2.414e-06/0.6003, allocations: 0 / 0.7546 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of matching and sorting (n=100): time 0.005812/0.6061, allocations: 1.872 MB / 0.7564 GB, free: 308 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.02e-05/0.6062, allocations: 192.9 kB / 0.7566 GB, free: 72 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007467/0.607, allocations: 0.6135 MB / 0.7572 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.031e-05/0.6071, allocations: 45.64 kB / 0.7572 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002957/0.6074, allocations: 420.4 kB / 0.7576 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002581/0.6076, allocations: 327.1 kB / 0.7579 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.6078, allocations: 85.61 kB / 0.758 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.6079, allocations: 390.8 kB / 0.7584 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001413/0.6094, allocations: 481.7 kB / 0.7588 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001485/0.6108, allocations: 0.5779 MB / 0.7594 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002829/0.6137, allocations: 1.039 MB / 0.7604 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.6137, allocations: 8 kB / 0.7604 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003679/0.6174, allocations: 1.301 MB / 0.7617 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.6174, allocations: 11.98 kB / 0.7617 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.6174, allocations: 0 / 0.7617 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005744/0.618, allocations: 84.84 kB / 0.7618 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.6194, allocations: 259.7 kB / 0.762 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002033/0.6214, allocations: 1.524 MB / 0.7635 GB, free: 8.723 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.6226, allocations: 155.2 kB / 0.7637 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-05/0.6227, allocations: 47.91 kB / 0.7637 GB, free: 8.523 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.0004534/0.6232, allocations: 282.8 kB / 0.764 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.6234, allocations: 86.88 kB / 0.7641 GB, free: 8.156 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004364/0.6277, allocations: 1.593 MB / 0.7656 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.6277, allocations: 12 kB / 0.7656 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.6278, allocations: 3.984 kB / 0.7656 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.6278, allocations: 3.984 kB / 0.7656 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005669/0.6334, allocations: 2.742 MB / 0.7683 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.6335, allocations: 0 / 0.7683 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.6348, allocations: 247.7 kB / 0.7686 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005167/0.6353, allocations: 84.72 kB / 0.7686 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-05/0.6354, allocations: 35.97 kB / 0.7687 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001774/0.6372, allocations: 1.547 MB / 0.7702 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.6372, allocations: 0 / 0.7702 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003715/0.6409, allocations: 1.449 MB / 0.7716 GB, free: 220 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004041/0.6413, allocations: 311.5 kB / 0.7719 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/0.6414, allocations: 20 kB / 0.7719 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.6426, allocations: 127.9 kB / 0.772 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.6428, allocations: 72.89 kB / 0.7721 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.7e-05/0.6429, allocations: 43.97 kB / 0.7721 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005079/0.6434, allocations: 439 kB / 0.7726 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6434, allocations: 0 / 0.7726 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009519/0.6443, allocations: 371 kB / 0.7729 GB, free: 14.84 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.001294/0.6456, allocations: 0.6286 MB / 0.7735 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003391/0.649, allocations: 1.319 MB / 0.7748 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.6491, allocations: 0 / 0.7748 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001805/0.6509, allocations: 0.7812 MB / 0.7756 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.6521, allocations: 275.2 kB / 0.7758 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004968/0.6571, allocations: 2.694 MB / 0.7785 GB, free: 9.312 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005994/0.6577, allocations: 1.059 MB / 0.7795 GB, free: 8.227 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005157/0.6582, allocations: 139.3 kB / 0.7796 GB, free: 8.094 MB / 0.5919 GB Notification: Performance of SimCode: time 4.21e-07/0.6582, allocations: 0 / 0.7796 GB, free: 8.094 MB / 0.5919 GB Notification: Performance of Templates: time 0.02567/0.6839, allocations: 21.05 MB / 0.8002 GB, free: 3.105 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