Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 105.1 kB / 16.41 MB, free: 6.449 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.00162/0.00162, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.427/1.427, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7878/0.7878, allocations: 132.2 MB / 423.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001204, allocations: 70.09 kB / 0.582 GB, free: 23.72 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1628, allocations: 80.2 MB / 0.6603 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.006816/0.1697, allocations: 4.919 MB / 0.6651 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6104/0.7801, allocations: 150.8 MB / 0.8124 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009131/0.7811, allocations: 18.41 kB / 0.8124 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006183/0.7818, allocations: 196 kB / 0.8126 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001576/0.7834, allocations: 0.5635 MB / 0.8131 GB, free: 11.44 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001849/0.7852, allocations: 0.9368 MB / 0.8141 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001572/0.7868, allocations: 1.559 MB / 0.8156 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001281/0.7881, allocations: 1.145 MB / 0.8167 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008667/0.789, allocations: 0.6977 MB / 0.8174 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006625/0.7896, allocations: 0.728 MB / 0.8181 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001827/0.7898, allocations: 191.3 kB / 0.8183 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009208/0.7907, allocations: 0.5501 MB / 0.8188 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003208/0.7911, allocations: 439.2 kB / 0.8192 GB, free: 9.922 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005865/0.7917, allocations: 0.8081 MB / 0.82 GB, free: 9.305 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002131/0.7938, allocations: 2.318 MB / 0.8223 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.7938, allocations: 2.312 kB / 0.8223 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.242e-06/0.7938, allocations: 0 / 0.8223 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.263e-05/0.7939, allocations: 0 / 0.8223 GB, free: 7.648 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: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.002813/0.7967, allocations: 1.81 MB / 0.824 GB, free: 6.25 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.7967, allocations: 11.66 kB / 0.8241 GB, free: 6.246 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000961/0.7977, allocations: 242.4 kB / 0.8243 GB, free: 6.129 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/0.7989, allocations: 0.9245 MB / 0.8252 GB, free: 5.387 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.7991, allocations: 136.2 kB / 0.8253 GB, free: 5.309 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.7992, allocations: 147.5 kB / 0.8255 GB, free: 5.258 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002291/0.8015, allocations: 1.467 MB / 0.8269 GB, free: 4.348 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.8016, allocations: 0.5625 kB / 0.8269 GB, free: 4.348 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.8017, allocations: 63.22 kB / 0.827 GB, free: 4.301 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.604e-05/0.8017, allocations: 35.28 kB / 0.827 GB, free: 4.301 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002168/0.8039, allocations: 1.492 MB / 0.8284 GB, free: 3.578 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005451/0.8094, allocations: 3.872 MB / 0.8322 GB, free: 0.6914 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.8108, allocations: 0.9151 MB / 0.8331 GB, free: 240 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005624/0.8114, allocations: 372.2 kB / 0.8335 GB, free: 44 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 9.232e-05/0.8115, allocations: 42.77 kB / 0.8335 GB, free: 28 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009433/0.8124, allocations: 0.536 MB / 0.834 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=93): time 2.605e-06/0.8124, allocations: 4 kB / 0.834 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93): time 0.003143/0.8156, allocations: 1.373 MB / 0.8354 GB, free: 14.93 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.8157, allocations: 198.7 kB / 0.8356 GB, free: 14.71 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008975/0.8166, allocations: 0.7613 MB / 0.8363 GB, free: 14.27 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.77e-05/0.8167, allocations: 42.73 kB / 0.8364 GB, free: 14.23 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004186/0.8171, allocations: 0.5716 MB / 0.8369 GB, free: 13.72 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002198/0.8174, allocations: 308.6 kB / 0.8372 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000277/0.8176, allocations: 199 kB / 0.8374 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.8178, allocations: 345.3 kB / 0.8377 GB, free: 13 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005695/0.8183, allocations: 331.5 kB / 0.838 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006717/0.819, allocations: 429.8 kB / 0.8385 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.8203, allocations: 0.7678 MB / 0.8392 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.8203, allocations: 6.188 kB / 0.8392 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002138/0.8224, allocations: 1.023 MB / 0.8402 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.8225, allocations: 7.406 kB / 0.8402 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.8225, allocations: 0 / 0.8402 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000565/0.8231, allocations: 89.98 kB / 0.8403 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007932/0.8239, allocations: 193.8 kB / 0.8405 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/0.8258, allocations: 1.649 MB / 0.8421 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000762/0.8266, allocations: 102 kB / 0.8422 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.122e-05/0.8267, allocations: 47.39 kB / 0.8422 GB, free: 9.836 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (111): * Single equations (assignments): 110 * 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.0006007/0.8273, allocations: 327.1 kB / 0.8426 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.8275, allocations: 98.38 kB / 0.8426 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002716/0.8302, allocations: 1.285 MB / 0.8439 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.869e-06/0.8302, allocations: 13.03 kB / 0.8439 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.8303, allocations: 3.938 kB / 0.8439 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.8303, allocations: 6.891 kB / 0.8439 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003812/0.8341, allocations: 2.486 MB / 0.8464 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.8341, allocations: 0 / 0.8464 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007124/0.8348, allocations: 183.8 kB / 0.8465 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004202/0.8353, allocations: 72.73 kB / 0.8466 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.099e-05/0.8353, allocations: 31.97 kB / 0.8466 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001845/0.8372, allocations: 1.666 MB / 0.8483 GB, free: 4.332 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.8372, allocations: 0 / 0.8483 GB, free: 4.332 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002121/0.8393, allocations: 1.123 MB / 0.8493 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004048/0.8397, allocations: 311.7 kB / 0.8496 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.8399, allocations: 27.84 kB / 0.8497 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000671/0.8406, allocations: 65.34 kB / 0.8497 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.8407, allocations: 76.88 kB / 0.8498 GB, free: 2.703 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.788e-05/0.8408, allocations: 35.98 kB / 0.8498 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007125/0.8415, allocations: 0.5615 MB / 0.8504 GB, free: 2.113 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8415, allocations: 0 / 0.8504 GB, free: 2.113 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001075/0.8426, allocations: 398.6 kB / 0.8508 GB, free: 1.723 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 (107): * Single equations (assignments): 104 * 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.001396/0.844, allocations: 0.5971 MB / 0.8514 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00194/0.846, allocations: 0.9721 MB / 0.8523 GB, free: 380 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.846, allocations: 4.25 kB / 0.8523 GB, free: 376 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009932/0.847, allocations: 0.5786 MB / 0.8529 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.8482, allocations: 317.3 kB / 0.8532 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004875/0.8531, allocations: 2.357 MB / 0.8555 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007538/0.8539, allocations: 1.165 MB / 0.8566 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004024/0.8543, allocations: 139.4 kB / 0.8567 GB, free: 11.78 MB / 0.6231 GB Notification: Performance of SimCode: time 7.01e-07/0.8543, allocations: 0 / 0.8567 GB, free: 11.78 MB / 0.6231 GB Notification: Performance of Templates: time 0.0345/0.8888, allocations: 24.04 MB / 0.8802 GB, free: 3.777 MB / 0.6387 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.Examples.DirectTiltedSurfaceCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceFunctions.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.Examples.DirectTiltedSurfaceCalcHelperMain.o] Error 1