Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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.SkyClearness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 100.1 kB / 15.88 MB, free: 8 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.001744/0.001744, allocations: 197.4 kB / 16.79 MB, free: 6.828 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.431/1.431, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9682/0.9682, allocations: 135.1 MB / 425.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 64.11 kB / 0.5053 GB, free: 5.781 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2062, allocations: 80.92 MB / 0.5843 GB, free: 5.027 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.006364/0.2126, allocations: 4.196 MB / 0.5884 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.5819/0.7945, allocations: 148.2 MB / 0.7332 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009715/0.7955, allocations: 18.53 kB / 0.7332 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000601/0.7962, allocations: 135.2 kB / 0.7333 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001557/0.7978, allocations: 403.3 kB / 0.7337 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002347/0.8001, allocations: 0.7091 MB / 0.7344 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001472/0.8016, allocations: 1.118 MB / 0.7355 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001099/0.8027, allocations: 0.6609 MB / 0.7362 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006461/0.8034, allocations: 400.1 kB / 0.7365 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005784/0.804, allocations: 453.4 kB / 0.737 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.8041, allocations: 63.97 kB / 0.737 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001094/0.8052, allocations: 430.6 kB / 0.7374 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002791/0.8055, allocations: 238.4 kB / 0.7377 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005017/0.806, allocations: 482.8 kB / 0.7381 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001239/0.8072, allocations: 1.17 MB / 0.7393 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.874e-06/0.8073, allocations: 2.844 kB / 0.7393 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.293e-06/0.8073, allocations: 0 / 0.7393 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.274e-05/0.8073, allocations: 0 / 0.7393 GB, free: 11.13 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.002561/0.8099, allocations: 1.388 MB / 0.7406 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.8099, allocations: 8.531 kB / 0.7406 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/0.8111, allocations: 210.2 kB / 0.7408 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.8123, allocations: 0.7182 MB / 0.7415 GB, free: 9.336 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.207e-05/0.8123, allocations: 74.8 kB / 0.7416 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.8125, allocations: 90.38 kB / 0.7417 GB, free: 9.27 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00188/0.8144, allocations: 0.9498 MB / 0.7426 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.8144, allocations: 1.562 kB / 0.7426 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.464e-05/0.8145, allocations: 36.72 kB / 0.7427 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.952e-05/0.8145, allocations: 23 kB / 0.7427 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002197/0.8167, allocations: 1.127 MB / 0.7438 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004523/0.8213, allocations: 2.559 MB / 0.7463 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.8229, allocations: 0.8148 MB / 0.7471 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.8235, allocations: 290.7 kB / 0.7474 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000782/0.8243, allocations: 473.5 kB / 0.7478 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009605/0.8253, allocations: 439.5 kB / 0.7482 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=73): time 3.186e-06/0.8253, allocations: 1.406 kB / 0.7482 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73): time 0.00313/0.8284, allocations: 1.098 MB / 0.7493 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.8286, allocations: 192.6 kB / 0.7495 GB, free: 3.746 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008563/0.8294, allocations: 0.6018 MB / 0.7501 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.829e-05/0.8295, allocations: 41.7 kB / 0.7501 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003714/0.8299, allocations: 400.2 kB / 0.7505 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000254/0.8301, allocations: 244.4 kB / 0.7507 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002456/0.8304, allocations: 154.5 kB / 0.7509 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002269/0.8306, allocations: 382.7 kB / 0.7512 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005241/0.8312, allocations: 245.9 kB / 0.7515 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000629/0.8318, allocations: 335.6 kB / 0.7518 GB, free: 1.332 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.8329, allocations: 0.5682 MB / 0.7523 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.8329, allocations: 0 / 0.7523 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002034/0.835, allocations: 0.7942 MB / 0.7531 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.835, allocations: 7.984 kB / 0.7531 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.835, allocations: 4.312 kB / 0.7531 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006318/0.8357, allocations: 84.81 kB / 0.7532 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000668/0.8363, allocations: 147.8 kB / 0.7534 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002246/0.8386, allocations: 1.52 MB / 0.7548 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007395/0.8394, allocations: 85.89 kB / 0.7549 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.091e-05/0.8394, allocations: 35.97 kB / 0.755 GB, free: 13.95 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (84): * Single equations (assignments): 83 * 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.0005293/0.84, allocations: 257.6 kB / 0.7552 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.8401, allocations: 79 kB / 0.7553 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002347/0.8425, allocations: 0.9978 MB / 0.7563 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.8425, allocations: 8 kB / 0.7563 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.8425, allocations: 0 / 0.7563 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.8425, allocations: 7.984 kB / 0.7563 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003398/0.8459, allocations: 1.892 MB / 0.7581 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.846, allocations: 4.875 kB / 0.7581 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005868/0.8466, allocations: 143.8 kB / 0.7583 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005475/0.8471, allocations: 88.7 kB / 0.7583 GB, free: 10.39 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.509e-05/0.8472, allocations: 23.98 kB / 0.7584 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001956/0.8491, allocations: 1.543 MB / 0.7599 GB, free: 8.688 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.8492, allocations: 4.031 kB / 0.7599 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001985/0.8512, allocations: 0.9219 MB / 0.7608 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003829/0.8516, allocations: 259.8 kB / 0.761 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.8517, allocations: 16 kB / 0.761 GB, free: 7.457 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005877/0.8523, allocations: 51.94 kB / 0.7611 GB, free: 7.406 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.8524, allocations: 64.86 kB / 0.7612 GB, free: 7.344 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-05/0.8525, allocations: 31.98 kB / 0.7612 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006172/0.8531, allocations: 435 kB / 0.7616 GB, free: 6.891 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8531, allocations: 0 / 0.7616 GB, free: 6.891 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001045/0.8542, allocations: 319.1 kB / 0.7619 GB, free: 6.578 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 (84): * Single equations (assignments): 81 * 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.001578/0.8558, allocations: 0.6092 MB / 0.7625 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001718/0.8575, allocations: 0.7679 MB / 0.7632 GB, free: 5.398 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.8575, allocations: 3.984 kB / 0.7632 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009217/0.8584, allocations: 0.4931 MB / 0.7637 GB, free: 4.891 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.8596, allocations: 258.8 kB / 0.764 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004198/0.8639, allocations: 2.184 MB / 0.7661 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006599/0.8645, allocations: 1.024 MB / 0.7671 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.8648, allocations: 107.4 kB / 0.7672 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of SimCode: time 8.52e-07/0.8649, allocations: 4 kB / 0.7672 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of Templates: time 0.02544/0.8903, allocations: 17.94 MB / 0.7847 GB, free: 15.38 MB / 0.6075 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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.SkyClearnessCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessFunctions.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.SkyClearnessCalcHelperMain.o] Error 1