Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 104.5 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.001647/0.001647, allocations: 190.3 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.36/1.36, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8023/0.8023, allocations: 135.1 MB / 426.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 60.05 kB / 0.506 GB, free: 8.402 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3203, allocations: 80.91 MB / 0.585 GB, free: 25.41 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.005446/0.3258, allocations: 4.92 MB / 0.5898 GB, free: 21.55 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1504/0.4762, allocations: 150.9 MB / 0.7372 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001239/0.4775, allocations: 23.88 kB / 0.7372 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009488/0.4785, allocations: 198.1 kB / 0.7374 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002377/0.4809, allocations: 0.5742 MB / 0.7379 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002368/0.4833, allocations: 0.8914 MB / 0.7388 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002049/0.4853, allocations: 1.577 MB / 0.7403 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001567/0.4869, allocations: 1.065 MB / 0.7414 GB, free: 9.957 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.4879, allocations: 0.6811 MB / 0.742 GB, free: 9.273 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009889/0.4889, allocations: 0.735 MB / 0.7428 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000384/0.4893, allocations: 176 kB / 0.7429 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.4905, allocations: 0.5074 MB / 0.7434 GB, free: 7.855 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005193/0.491, allocations: 418.6 kB / 0.7438 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000934/0.492, allocations: 0.785 MB / 0.7446 GB, free: 6.656 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002557/0.4945, allocations: 2.13 MB / 0.7467 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4945, allocations: 0 / 0.7467 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.703e-06/0.4946, allocations: 0 / 0.7467 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.615e-05/0.4946, allocations: 0 / 0.7467 GB, free: 4.52 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: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.003876/0.4985, allocations: 1.771 MB / 0.7484 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.4986, allocations: 12.03 kB / 0.7484 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001176/0.4997, allocations: 234.9 kB / 0.7486 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.5012, allocations: 0.8913 MB / 0.7495 GB, free: 1.52 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-05/0.5013, allocations: 106.9 kB / 0.7496 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002039/0.5015, allocations: 136 kB / 0.7497 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3023/0.8038, allocations: 1.419 MB / 0.7511 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.59e-05/0.8039, allocations: 3.594 kB / 0.7511 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002921/0.8042, allocations: 61.66 kB / 0.7512 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.794e-05/0.8042, allocations: 35.47 kB / 0.7512 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003593/0.8078, allocations: 1.513 MB / 0.7527 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007392/0.8152, allocations: 3.778 MB / 0.7564 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002004/0.8173, allocations: 0.9512 MB / 0.7573 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008428/0.8181, allocations: 402.2 kB / 0.7577 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001217/0.8183, allocations: 46.14 kB / 0.7577 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001258/0.8195, allocations: 0.5861 MB / 0.7583 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=104): time 4.529e-06/0.8196, allocations: 0 / 0.7583 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=104): time 0.004153/0.8237, allocations: 1.475 MB / 0.7598 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.067e-05/0.8238, allocations: 196 kB / 0.7599 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.8249, allocations: 0.7593 MB / 0.7607 GB, free: 159.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.997e-05/0.825, allocations: 46.92 kB / 0.7607 GB, free: 159.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004002/0.8254, allocations: 0.5543 MB / 0.7613 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/0.8256, allocations: 346.8 kB / 0.7616 GB, free: 158.9 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003167/0.8259, allocations: 215.6 kB / 0.7618 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.791e-05/0.826, allocations: 353.3 kB / 0.7621 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006746/0.8267, allocations: 358.7 kB / 0.7625 GB, free: 158.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007849/0.8275, allocations: 473.7 kB / 0.7629 GB, free: 158 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.829, allocations: 0.8342 MB / 0.7638 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.829, allocations: 0 / 0.7638 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002282/0.8313, allocations: 1.115 MB / 0.7648 GB, free: 157 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.8313, allocations: 9.688 kB / 0.7649 GB, free: 157 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.8313, allocations: 0.9688 kB / 0.7649 GB, free: 157 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006257/0.832, allocations: 80.2 kB / 0.7649 GB, free: 157 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009452/0.8329, allocations: 224.5 kB / 0.7651 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001801/0.8347, allocations: 1.654 MB / 0.7668 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008761/0.8356, allocations: 110.9 kB / 0.7669 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.219e-05/0.8357, allocations: 47.95 kB / 0.7669 GB, free: 155 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 (125): * Single equations (assignments): 124 * 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.000532/0.8363, allocations: 313.1 kB / 0.7672 GB, free: 154.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/0.8365, allocations: 106.7 kB / 0.7673 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002952/0.8395, allocations: 1.385 MB / 0.7687 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.8395, allocations: 12 kB / 0.7687 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.8395, allocations: 0 / 0.7687 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.8395, allocations: 11.91 kB / 0.7687 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003936/0.8435, allocations: 2.561 MB / 0.7712 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.8435, allocations: 0 / 0.7712 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000778/0.8443, allocations: 195.7 kB / 0.7714 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004661/0.8447, allocations: 77.08 kB / 0.7714 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.374e-05/0.8448, allocations: 28.58 kB / 0.7715 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00164/0.8465, allocations: 1.684 MB / 0.7731 GB, free: 148.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.8465, allocations: 0 / 0.7731 GB, free: 148.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002145/0.8487, allocations: 1.17 MB / 0.7743 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004584/0.8491, allocations: 315.4 kB / 0.7746 GB, free: 147 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002031/0.8493, allocations: 31.84 kB / 0.7746 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007829/0.8501, allocations: 55.89 kB / 0.7746 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.8503, allocations: 80.88 kB / 0.7747 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.172e-05/0.8504, allocations: 38.95 kB / 0.7748 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007181/0.8511, allocations: 0.5693 MB / 0.7753 GB, free: 146.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8511, allocations: 0 / 0.7753 GB, free: 146.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001085/0.8522, allocations: 408.6 kB / 0.7757 GB, free: 145.8 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 (115): * Single equations (assignments): 112 * 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.001394/0.8536, allocations: 0.6049 MB / 0.7763 GB, free: 145.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002922/0.8565, allocations: 1.29 MB / 0.7776 GB, free: 144.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.8566, allocations: 4 kB / 0.7776 GB, free: 144.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009846/0.8576, allocations: 0.6058 MB / 0.7782 GB, free: 143.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/0.859, allocations: 318.3 kB / 0.7785 GB, free: 143.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004647/0.8636, allocations: 2.403 MB / 0.7808 GB, free: 140.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000797/0.8644, allocations: 1.161 MB / 0.7819 GB, free: 139.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000437/0.8649, allocations: 147.4 kB / 0.7821 GB, free: 139.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.012e-06/0.8649, allocations: 0 / 0.7821 GB, free: 139.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.02578/0.8907, allocations: 23.74 MB / 0.8053 GB, free: 115.8 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.IncidenceAngleFunctions.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.SolarGeometry.Examples.IncidenceAngleCalcHelperMain.o] Error 1