Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001713/0.001713, allocations: 108.4 kB / 16.41 MB, free: 6.504 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.00159/0.00159, allocations: 185.6 kB / 17.34 MB, free: 5.758 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.49/1.49, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8748/0.8748, allocations: 135.2 MB / 426.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 69.66 kB / 0.5863 GB, free: 21.63 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.176/0.1779, allocations: 80.93 MB / 0.6654 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.006641/0.1845, allocations: 4.149 MB / 0.6694 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6143/0.7988, allocations: 150.9 MB / 0.8168 GB, free: 8.641 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009235/0.7997, allocations: 20.25 kB / 0.8168 GB, free: 8.633 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006436/0.8003, allocations: 169 kB / 0.817 GB, free: 8.543 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001805/0.8022, allocations: 472.5 kB / 0.8174 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002094/0.8042, allocations: 0.8025 MB / 0.8182 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001463/0.8057, allocations: 1.195 MB / 0.8194 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008029/0.8065, allocations: 0.507 MB / 0.8199 GB, free: 7.57 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007574/0.8073, allocations: 459.9 kB / 0.8203 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006293/0.8079, allocations: 480.6 kB / 0.8208 GB, free: 6.996 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.808, allocations: 113.6 kB / 0.8209 GB, free: 6.996 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.8091, allocations: 490.1 kB / 0.8213 GB, free: 6.809 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002987/0.8094, allocations: 289 kB / 0.8216 GB, free: 6.582 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005297/0.8099, allocations: 0.5315 MB / 0.8221 GB, free: 6.172 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002208/0.8121, allocations: 1.566 MB / 0.8237 GB, free: 5.027 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.8121, allocations: 4 kB / 0.8237 GB, free: 5.023 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.364e-06/0.8121, allocations: 1.844 kB / 0.8237 GB, free: 5.023 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.82e-05/0.8122, allocations: 0 / 0.8237 GB, free: 5.023 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.002615/0.8148, allocations: 1.41 MB / 0.8251 GB, free: 3.898 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.8148, allocations: 15.16 kB / 0.8251 GB, free: 3.895 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/0.816, allocations: 204.5 kB / 0.8253 GB, free: 3.797 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.8172, allocations: 0.7529 MB / 0.826 GB, free: 3.176 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.909e-05/0.8173, allocations: 68.12 kB / 0.8261 GB, free: 3.148 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.8174, allocations: 83.81 kB / 0.8261 GB, free: 3.121 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001701/0.8191, allocations: 0.9472 MB / 0.8271 GB, free: 2.516 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/0.8191, allocations: 6.5 kB / 0.8271 GB, free: 2.512 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.83e-05/0.8192, allocations: 35.97 kB / 0.8271 GB, free: 2.484 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.8192, allocations: 23.03 kB / 0.8271 GB, free: 2.484 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001833/0.8211, allocations: 1.12 MB / 0.8282 GB, free: 1.957 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004337/0.8254, allocations: 2.449 MB / 0.8306 GB, free: 108 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/0.8277, allocations: 0.8453 MB / 0.8314 GB, free: 15.62 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005486/0.8283, allocations: 260.3 kB / 0.8317 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.247e-05/0.8284, allocations: 32.09 kB / 0.8317 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008477/0.8292, allocations: 435.8 kB / 0.8321 GB, free: 15.19 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=73): time 2.204e-06/0.8292, allocations: 0 / 0.8321 GB, free: 15.19 MB / 0.6075 GB Notification: Performance of matching and sorting (n=73): time 0.002954/0.8322, allocations: 1.102 MB / 0.8332 GB, free: 14.58 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.8323, allocations: 190.3 kB / 0.8334 GB, free: 14.36 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007982/0.8331, allocations: 0.601 MB / 0.834 GB, free: 14 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.419e-05/0.8332, allocations: 38.52 kB / 0.834 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000382/0.8336, allocations: 405.2 kB / 0.8344 GB, free: 13.61 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002354/0.8338, allocations: 257.8 kB / 0.8346 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002407/0.834, allocations: 149.8 kB / 0.8348 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000216/0.8343, allocations: 385.1 kB / 0.8352 GB, free: 12.92 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005059/0.8348, allocations: 247.4 kB / 0.8354 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/0.8354, allocations: 337.2 kB / 0.8357 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.8365, allocations: 0.5627 MB / 0.8363 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.8365, allocations: 0 / 0.8363 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001926/0.8384, allocations: 0.7939 MB / 0.837 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.8385, allocations: 11.23 kB / 0.837 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.8385, allocations: 0 / 0.837 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005932/0.8391, allocations: 82.69 kB / 0.8371 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006194/0.8397, allocations: 147.6 kB / 0.8373 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.842, allocations: 1.637 MB / 0.8389 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007369/0.8427, allocations: 83.45 kB / 0.8389 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.701e-05/0.8428, allocations: 31.02 kB / 0.839 GB, free: 10.14 MB / 0.6075 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.0005102/0.8433, allocations: 263.6 kB / 0.8392 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.8435, allocations: 86.39 kB / 0.8393 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002327/0.8458, allocations: 0.9903 MB / 0.8403 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.8458, allocations: 11.06 kB / 0.8403 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.8458, allocations: 6.984 kB / 0.8403 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.8458, allocations: 3.984 kB / 0.8403 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003431/0.8493, allocations: 1.892 MB / 0.8421 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.8493, allocations: 0 / 0.8421 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005562/0.8498, allocations: 147.5 kB / 0.8423 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004253/0.8502, allocations: 68.55 kB / 0.8424 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.666e-05/0.8503, allocations: 25.73 kB / 0.8424 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002115/0.8524, allocations: 1.665 MB / 0.844 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.8524, allocations: 3.938 kB / 0.844 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002017/0.8544, allocations: 0.9179 MB / 0.8449 GB, free: 5.805 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004277/0.8549, allocations: 261.9 kB / 0.8452 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.855, allocations: 20.98 kB / 0.8452 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005834/0.8556, allocations: 67.84 kB / 0.8452 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.8557, allocations: 61 kB / 0.8453 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.687e-05/0.8558, allocations: 27.89 kB / 0.8453 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005979/0.8564, allocations: 438.7 kB / 0.8457 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of sort global known variables: time 7e-08/0.8564, allocations: 0 / 0.8457 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009093/0.8573, allocations: 303.3 kB / 0.846 GB, free: 5.137 MB / 0.6075 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 (85): * Single equations (assignments): 82 * 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.001951/0.8593, allocations: 0.6093 MB / 0.8466 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001744/0.861, allocations: 0.7429 MB / 0.8473 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.861, allocations: 8 kB / 0.8474 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009453/0.8619, allocations: 468.2 kB / 0.8478 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.8632, allocations: 277.8 kB / 0.8481 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004299/0.8675, allocations: 1.775 MB / 0.8498 GB, free: 1.848 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007442/0.8683, allocations: 1.019 MB / 0.8508 GB, free: 0.8047 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.8687, allocations: 107.4 kB / 0.8509 GB, free: 0.7031 MB / 0.6075 GB Notification: Performance of SimCode: time 8.91e-07/0.8687, allocations: 4 kB / 0.8509 GB, free: 0.6992 MB / 0.6075 GB Notification: Performance of Templates: time 0.02935/0.898, allocations: 17.88 MB / 0.8684 GB, free: 14.83 MB / 0.6387 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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.RelativeAirMassCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassFunctions.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.RelativeAirMassCalcHelperMain.o] Error 1