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.001282/0.001283, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001266/0.001266, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.307/1.307, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7987/0.7987, allocations: 135.2 MB / 426.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 67.89 kB / 0.506 GB, free: 8.336 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3414, allocations: 80.92 MB / 0.5851 GB, free: 25.16 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoefficient): time 0.005149/0.3466, allocations: 4.403 MB / 0.5894 GB, free: 21.7 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1712/0.5179, allocations: 150.7 MB / 0.7365 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001035/0.5189, allocations: 15.94 kB / 0.7365 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005934/0.5196, allocations: 182.3 kB / 0.7367 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001586/0.5212, allocations: 480.1 kB / 0.7371 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002189/0.5234, allocations: 0.903 MB / 0.738 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00146/0.5248, allocations: 1.356 MB / 0.7393 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001116/0.526, allocations: 0.794 MB / 0.7401 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007429/0.5267, allocations: 0.5177 MB / 0.7406 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007002/0.5274, allocations: 0.5756 MB / 0.7412 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001814/0.5276, allocations: 128 kB / 0.7413 GB, free: 9.961 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009975/0.5286, allocations: 495.6 kB / 0.7418 GB, free: 9.477 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000327/0.5289, allocations: 335 kB / 0.7421 GB, free: 9.148 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000559/0.5295, allocations: 0.5906 MB / 0.7427 GB, free: 8.555 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002058/0.5316, allocations: 1.706 MB / 0.7443 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.5316, allocations: 0 / 0.7443 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.643e-06/0.5316, allocations: 0 / 0.7443 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.817e-05/0.5316, allocations: 0 / 0.7443 GB, free: 6.844 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.00283/0.5345, allocations: 1.56 MB / 0.7459 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.5345, allocations: 13.11 kB / 0.7459 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005166/0.5397, allocations: 0.7522 MB / 0.7466 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.541, allocations: 0.7695 MB / 0.7474 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.622e-05/0.5411, allocations: 82.09 kB / 0.7474 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.5413, allocations: 96 kB / 0.7475 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003198/0.5445, allocations: 1.371 MB / 0.7489 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.5445, allocations: 3.938 kB / 0.7489 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.5446, allocations: 44 kB / 0.7489 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.299e-05/0.5447, allocations: 24 kB / 0.7489 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004759/0.5494, allocations: 1.838 MB / 0.7507 GB, free: 124 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2879/0.8374, allocations: 3.12 MB / 0.7538 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003102/0.8405, allocations: 1.281 MB / 0.755 GB, free: 163.2 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.8419, allocations: 0.577 MB / 0.7556 GB, free: 163 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005382/0.8425, allocations: 479.1 kB / 0.7561 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001734/0.8442, allocations: 0.7353 MB / 0.7568 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=100): time 2.985e-06/0.8443, allocations: 7.938 kB / 0.7568 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=100): time 0.005871/0.8501, allocations: 1.838 MB / 0.7586 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.8502, allocations: 193.4 kB / 0.7588 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007825/0.851, allocations: 0.6079 MB / 0.7594 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.529e-05/0.8511, allocations: 44.95 kB / 0.7594 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002435/0.8513, allocations: 416.3 kB / 0.7598 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002234/0.8516, allocations: 334.8 kB / 0.7601 GB, free: 160 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003281/0.8519, allocations: 190.3 kB / 0.7603 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.858e-05/0.852, allocations: 390.7 kB / 0.7607 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.8533, allocations: 481.6 kB / 0.7611 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.8547, allocations: 0.5789 MB / 0.7617 GB, free: 159 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002628/0.8573, allocations: 1.027 MB / 0.7627 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.8573, allocations: 0 / 0.7627 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003364/0.8607, allocations: 1.288 MB / 0.764 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.8607, allocations: 7.375 kB / 0.764 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.8607, allocations: 5.688 kB / 0.764 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005278/0.8613, allocations: 82.41 kB / 0.764 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.8625, allocations: 252.3 kB / 0.7643 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001668/0.8642, allocations: 1.631 MB / 0.7659 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.8653, allocations: 156.4 kB / 0.766 GB, free: 156.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.001e-05/0.8654, allocations: 46.95 kB / 0.7661 GB, free: 156.1 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.0004183/0.8658, allocations: 270.7 kB / 0.7663 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001525/0.866, allocations: 86.41 kB / 0.7664 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003783/0.8698, allocations: 1.579 MB / 0.768 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.8698, allocations: 12 kB / 0.768 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.8698, allocations: 0 / 0.768 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.8698, allocations: 7.969 kB / 0.768 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00501/0.8748, allocations: 2.735 MB / 0.7706 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.8749, allocations: 0 / 0.7706 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.876, allocations: 243.7 kB / 0.7709 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004026/0.8764, allocations: 80.72 kB / 0.771 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.62e-05/0.8765, allocations: 27.97 kB / 0.771 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/0.8779, allocations: 1.658 MB / 0.7726 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.8779, allocations: 7.969 kB / 0.7726 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003274/0.8812, allocations: 1.421 MB / 0.774 GB, free: 147.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003121/0.8815, allocations: 307.5 kB / 0.7743 GB, free: 147.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.8817, allocations: 20 kB / 0.7743 GB, free: 147.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.8827, allocations: 114.1 kB / 0.7744 GB, free: 147.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.8828, allocations: 72.89 kB / 0.7745 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.565e-05/0.8829, allocations: 43.91 kB / 0.7745 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003899/0.8833, allocations: 447 kB / 0.775 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.062e-06/0.8833, allocations: 0 / 0.775 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008299/0.8841, allocations: 362.8 kB / 0.7753 GB, free: 146.5 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.001686/0.8858, allocations: 0.6214 MB / 0.7759 GB, free: 146.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003896/0.8897, allocations: 1.557 MB / 0.7774 GB, free: 144.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.8898, allocations: 4 kB / 0.7774 GB, free: 144.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001568/0.8913, allocations: 0.7735 MB / 0.7782 GB, free: 143.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.8924, allocations: 296.7 kB / 0.7785 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004001/0.8964, allocations: 2.157 MB / 0.7806 GB, free: 141.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.8968, allocations: 1.056 MB / 0.7816 GB, free: 140.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004491/0.8973, allocations: 139.3 kB / 0.7817 GB, free: 140.1 MB / 0.5762 GB Notification: Performance of SimCode: time 4.01e-07/0.8973, allocations: 0 / 0.7817 GB, free: 140.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.0185/0.9158, allocations: 21.19 MB / 0.8024 GB, free: 119 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++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