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.001076/0.001076, allocations: 92.55 kB / 16.02 MB, free: 76 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.001385/0.001386, allocations: 178.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.305/1.305, allocations: 223.3 MB / 241 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.915/0.915, allocations: 135.3 MB / 427.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003473, allocations: 12.81 kB / 0.5082 GB, free: 4.75 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1523, allocations: 82.31 MB / 0.5886 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.004618/0.1569, allocations: 3.776 MB / 0.5923 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4126/0.5695, allocations: 146.6 MB / 0.7355 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008222/0.5704, allocations: 14.78 kB / 0.7355 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006971/0.5711, allocations: 140.2 kB / 0.7357 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001782/0.5729, allocations: 396 kB / 0.736 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002288/0.5752, allocations: 0.7079 MB / 0.7367 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00169/0.5769, allocations: 1.119 MB / 0.7378 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001183/0.5781, allocations: 0.6533 MB / 0.7385 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007388/0.5788, allocations: 311.3 kB / 0.7387 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007064/0.5796, allocations: 343 kB / 0.7391 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002112/0.5798, allocations: 21.38 kB / 0.7391 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0011/0.5809, allocations: 386.7 kB / 0.7395 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002824/0.5812, allocations: 177 kB / 0.7396 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0006888/0.5819, allocations: 434.2 kB / 0.74 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.5835, allocations: 1.138 MB / 0.7412 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.5836, allocations: 0 / 0.7412 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.744e-06/0.5836, allocations: 0 / 0.7412 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.955e-05/0.5836, allocations: 0 / 0.7412 GB, free: 11.98 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.002585/0.5862, allocations: 1.182 MB / 0.7423 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.5863, allocations: 7.594 kB / 0.7423 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00127/0.5875, allocations: 213.8 kB / 0.7425 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.5888, allocations: 0.7254 MB / 0.7432 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.085e-05/0.5889, allocations: 65.69 kB / 0.7433 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.5891, allocations: 85.34 kB / 0.7434 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/0.591, allocations: 0.9614 MB / 0.7443 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.5911, allocations: 0 / 0.7443 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/0.5912, allocations: 45.59 kB / 0.7444 GB, free: 9.977 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.247e-05/0.5912, allocations: 25.94 kB / 0.7444 GB, free: 9.973 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0021/0.5933, allocations: 1.13 MB / 0.7455 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004384/0.5977, allocations: 2.591 MB / 0.748 GB, free: 7.48 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.5992, allocations: 0.8283 MB / 0.7488 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005369/0.5997, allocations: 288.3 kB / 0.7491 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006948/0.6005, allocations: 477.9 kB / 0.7496 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008395/0.6013, allocations: 439.8 kB / 0.75 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=73): time 2.906e-06/0.6013, allocations: 0 / 0.75 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73): time 0.002967/0.6043, allocations: 1.113 MB / 0.7511 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.6044, allocations: 195.5 kB / 0.7513 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008905/0.6053, allocations: 0.6054 MB / 0.7518 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.249e-05/0.6054, allocations: 37.7 kB / 0.7519 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000339/0.6057, allocations: 400.2 kB / 0.7523 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002134/0.606, allocations: 240.4 kB / 0.7525 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-05/0.6061, allocations: 65.69 kB / 0.7526 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.6062, allocations: 382.7 kB / 0.7529 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005514/0.6068, allocations: 249.9 kB / 0.7532 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006056/0.6074, allocations: 343 kB / 0.7535 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.6085, allocations: 0.576 MB / 0.754 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.6085, allocations: 0 / 0.754 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00191/0.6104, allocations: 0.7981 MB / 0.7548 GB, free: 1.742 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.6105, allocations: 8 kB / 0.7548 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.6105, allocations: 0 / 0.7548 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007502/0.6112, allocations: 76.88 kB / 0.7549 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007071/0.612, allocations: 159.8 kB / 0.7551 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/0.6142, allocations: 1.524 MB / 0.7565 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000727/0.6149, allocations: 91.39 kB / 0.7566 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.762e-05/0.615, allocations: 39.97 kB / 0.7567 GB, free: 15.71 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.0005182/0.6155, allocations: 249.7 kB / 0.7569 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.6157, allocations: 83 kB / 0.757 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00235/0.6181, allocations: 1.005 MB / 0.758 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.6181, allocations: 8 kB / 0.758 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.6181, allocations: 4.031 kB / 0.758 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.6181, allocations: 11.92 kB / 0.758 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003344/0.6215, allocations: 1.896 MB / 0.7598 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.6215, allocations: 2.875 kB / 0.7598 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005854/0.6221, allocations: 147.7 kB / 0.76 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005093/0.6226, allocations: 88.84 kB / 0.7601 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.249e-05/0.6227, allocations: 23.98 kB / 0.7601 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00178/0.6245, allocations: 1.54 MB / 0.7616 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.6245, allocations: 4.891 kB / 0.7616 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.6263, allocations: 0.9335 MB / 0.7625 GB, free: 9.488 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003884/0.6267, allocations: 271.7 kB / 0.7628 GB, free: 9.203 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001335/0.6269, allocations: 16 kB / 0.7628 GB, free: 9.188 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006268/0.6275, allocations: 73.14 kB / 0.7629 GB, free: 9.117 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.6277, allocations: 60.8 kB / 0.7629 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-05/0.6277, allocations: 36.84 kB / 0.763 GB, free: 9.023 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000577/0.6283, allocations: 435 kB / 0.7634 GB, free: 8.602 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.6283, allocations: 0 / 0.7634 GB, free: 8.602 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001/0.6293, allocations: 315.2 kB / 0.7637 GB, free: 8.293 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.001542/0.6309, allocations: 0.6298 MB / 0.7643 GB, free: 7.871 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001638/0.6325, allocations: 0.78 MB / 0.765 GB, free: 7.078 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.6325, allocations: 0 / 0.765 GB, free: 7.078 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008929/0.6334, allocations: 0.4929 MB / 0.7655 GB, free: 6.574 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.6348, allocations: 257.5 kB / 0.7658 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004347/0.6391, allocations: 2.247 MB / 0.768 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000637/0.6398, allocations: 1.023 MB / 0.769 GB, free: 3.004 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.6401, allocations: 107.4 kB / 0.7691 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of SimCode: time 8.92e-07/0.6401, allocations: 0 / 0.7691 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of Templates: time 0.02321/0.6633, allocations: 17.83 MB / 0.7865 GB, free: 1.117 MB / 0.5919 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