Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001391/0.001391, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001357/0.001357, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.389/1.389, 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/package.mo): time 0.8497/0.8497, allocations: 132.2 MB / 423.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 71.45 kB / 0.582 GB, free: 23.71 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.173, allocations: 80.21 MB / 0.6603 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.006367/0.1794, allocations: 4.142 MB / 0.6644 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5971/0.7765, allocations: 150.5 MB / 0.8113 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009817/0.7775, allocations: 19.94 kB / 0.8113 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.000737/0.7782, allocations: 166.2 kB / 0.8115 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002198/0.7805, allocations: 481.1 kB / 0.812 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002604/0.7831, allocations: 0.8031 MB / 0.8127 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001986/0.7851, allocations: 1.201 MB / 0.8139 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001352/0.7865, allocations: 0.6796 MB / 0.8146 GB, free: 11.18 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009069/0.7874, allocations: 462.8 kB / 0.815 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008017/0.7882, allocations: 478.9 kB / 0.8155 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002111/0.7885, allocations: 112.4 kB / 0.8156 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001231/0.7897, allocations: 495.6 kB / 0.8161 GB, free: 10.92 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002853/0.79, allocations: 285.4 kB / 0.8163 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005404/0.7906, allocations: 0.5256 MB / 0.8168 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00224/0.7928, allocations: 1.57 MB / 0.8184 GB, free: 9.91 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.279e-06/0.7928, allocations: 0.5625 kB / 0.8184 GB, free: 9.91 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.274e-06/0.7928, allocations: 0 / 0.8184 GB, free: 9.91 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.936e-05/0.7929, allocations: 0 / 0.8184 GB, free: 9.91 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.002916/0.7958, allocations: 1.379 MB / 0.8197 GB, free: 8.957 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.7958, allocations: 12 kB / 0.8197 GB, free: 8.953 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001552/0.7974, allocations: 206.8 kB / 0.8199 GB, free: 8.855 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00151/0.7989, allocations: 0.7406 MB / 0.8207 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.137e-05/0.799, allocations: 70.39 kB / 0.8207 GB, free: 8.227 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.7992, allocations: 89.44 kB / 0.8208 GB, free: 8.195 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002281/0.8015, allocations: 0.9527 MB / 0.8217 GB, free: 7.586 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/0.8015, allocations: 0 / 0.8217 GB, free: 7.586 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.8017, allocations: 35.81 kB / 0.8218 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.696e-05/0.8017, allocations: 22.72 kB / 0.8218 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002601/0.8043, allocations: 1.121 MB / 0.8229 GB, free: 7.027 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005206/0.8095, allocations: 2.441 MB / 0.8253 GB, free: 5.203 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003073/0.8126, allocations: 0.8834 MB / 0.8261 GB, free: 4.715 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007685/0.8134, allocations: 282.1 kB / 0.8264 GB, free: 4.578 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001058/0.8135, allocations: 32.64 kB / 0.8264 GB, free: 4.566 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001168/0.8147, allocations: 434 kB / 0.8269 GB, free: 4.285 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=73): time 3.406e-06/0.8147, allocations: 4 kB / 0.8269 GB, free: 4.281 MB / 0.5919 GB Notification: Performance of matching and sorting (n=73): time 0.004274/0.819, allocations: 1.091 MB / 0.8279 GB, free: 3.688 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.8192, allocations: 196.2 kB / 0.8281 GB, free: 3.457 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001081/0.8203, allocations: 0.5926 MB / 0.8287 GB, free: 3.113 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.581e-05/0.8204, allocations: 42.42 kB / 0.8287 GB, free: 3.07 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004327/0.8208, allocations: 401 kB / 0.8291 GB, free: 2.723 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002654/0.8211, allocations: 247.5 kB / 0.8293 GB, free: 2.512 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003293/0.8214, allocations: 149.6 kB / 0.8295 GB, free: 2.422 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000216/0.8217, allocations: 385.7 kB / 0.8299 GB, free: 2.051 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007678/0.8224, allocations: 241.1 kB / 0.8301 GB, free: 1.938 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009306/0.8234, allocations: 334.3 kB / 0.8304 GB, free: 1.742 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.8251, allocations: 0.5678 MB / 0.831 GB, free: 1.441 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.8251, allocations: 4 kB / 0.831 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002791/0.8279, allocations: 0.7897 MB / 0.8317 GB, free: 1.027 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.8279, allocations: 5.156 kB / 0.8317 GB, free: 1.027 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.8279, allocations: 2.688 kB / 0.8317 GB, free: 1.027 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006856/0.8286, allocations: 78.98 kB / 0.8318 GB, free: 0.9883 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008262/0.8295, allocations: 153 kB / 0.832 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002731/0.8322, allocations: 1.637 MB / 0.8336 GB, free: 15.35 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009245/0.8332, allocations: 84.2 kB / 0.8336 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.8333, allocations: 32.59 kB / 0.8337 GB, free: 15.28 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.0006214/0.8339, allocations: 261.8 kB / 0.8339 GB, free: 15.07 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000218/0.8341, allocations: 81.16 kB / 0.834 GB, free: 15.03 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003298/0.8374, allocations: 0.9967 MB / 0.835 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.8375, allocations: 9.656 kB / 0.835 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.8375, allocations: 0 / 0.835 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.8375, allocations: 8.016 kB / 0.835 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004658/0.8422, allocations: 1.902 MB / 0.8369 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.8422, allocations: 0 / 0.8369 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009419/0.8432, allocations: 145.1 kB / 0.837 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/0.8436, allocations: 71.97 kB / 0.8371 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.369e-05/0.8437, allocations: 25.86 kB / 0.8371 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001786/0.8455, allocations: 1.651 MB / 0.8387 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.8455, allocations: 6.219 kB / 0.8387 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.8474, allocations: 0.9142 MB / 0.8396 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003281/0.8478, allocations: 261.2 kB / 0.8398 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.8479, allocations: 24.78 kB / 0.8399 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005585/0.8485, allocations: 59.44 kB / 0.8399 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.8486, allocations: 61.8 kB / 0.84 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.314e-05/0.8487, allocations: 32.44 kB / 0.84 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005065/0.8492, allocations: 439.4 kB / 0.8404 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8492, allocations: 0 / 0.8404 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008076/0.85, allocations: 293.7 kB / 0.8407 GB, free: 10.31 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.001296/0.8513, allocations: 0.6121 MB / 0.8413 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001538/0.8529, allocations: 0.7749 MB / 0.8421 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.8529, allocations: 0 / 0.8421 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008834/0.8538, allocations: 0.4919 MB / 0.8425 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.8549, allocations: 280.7 kB / 0.8428 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003589/0.8585, allocations: 1.749 MB / 0.8445 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005818/0.8591, allocations: 1.015 MB / 0.8455 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003092/0.8594, allocations: 119.3 kB / 0.8456 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of SimCode: time 4.01e-07/0.8594, allocations: 0 / 0.8456 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of Templates: time 0.02228/0.8817, allocations: 17.83 MB / 0.863 GB, free: 4.859 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.makefile make -j1 -f IDEAS_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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.o] Error 1