Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.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.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001185/0.001185, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.227/1.227, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7313/0.7313, allocations: 135.1 MB / 426.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 64 kB / 0.5862 GB, free: 21.76 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.132, allocations: 80.93 MB / 0.6653 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.006275/0.1383, allocations: 4.507 MB / 0.6697 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.446/0.5843, allocations: 150.6 MB / 0.8168 GB, free: 8.742 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006145/0.585, allocations: 21.59 kB / 0.8168 GB, free: 8.734 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005264/0.5856, allocations: 182.8 kB / 0.817 GB, free: 8.633 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001327/0.5869, allocations: 0.4957 MB / 0.8174 GB, free: 8.426 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001595/0.5885, allocations: 0.8307 MB / 0.8183 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001038/0.5896, allocations: 1.318 MB / 0.8195 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009457/0.5905, allocations: 0.9281 MB / 0.8204 GB, free: 7.305 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005936/0.5911, allocations: 0.5378 MB / 0.821 GB, free: 6.957 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005322/0.5916, allocations: 0.5668 MB / 0.8215 GB, free: 6.523 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.5918, allocations: 141.4 kB / 0.8217 GB, free: 6.523 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007861/0.5926, allocations: 0.511 MB / 0.8222 GB, free: 6.344 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002507/0.5928, allocations: 345.6 kB / 0.8225 GB, free: 6.066 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004546/0.5933, allocations: 0.6413 MB / 0.8231 GB, free: 5.57 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001653/0.595, allocations: 1.835 MB / 0.8249 GB, free: 4.211 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.595, allocations: 0 / 0.8249 GB, free: 4.211 MB / 0.5919 GB Notification: Performance of FrontEnd: time 9.91e-07/0.595, allocations: 0 / 0.8249 GB, free: 4.211 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.637e-05/0.595, allocations: 0 / 0.8249 GB, free: 4.211 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002154/0.5972, allocations: 1.583 MB / 0.8265 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.5972, allocations: 11.23 kB / 0.8265 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008137/0.598, allocations: 215 kB / 0.8267 GB, free: 2.867 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.5991, allocations: 0.8343 MB / 0.8275 GB, free: 2.188 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.552e-05/0.5992, allocations: 83.39 kB / 0.8276 GB, free: 2.148 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.5993, allocations: 112.5 kB / 0.8277 GB, free: 2.113 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.6009, allocations: 1.14 MB / 0.8288 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.601, allocations: 2.469 kB / 0.8288 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.72e-05/0.6011, allocations: 50.36 kB / 0.8288 GB, free: 1.34 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.217e-05/0.6011, allocations: 31.53 kB / 0.8289 GB, free: 1.336 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.6028, allocations: 1.228 MB / 0.8301 GB, free: 0.75 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003913/0.6067, allocations: 2.969 MB / 0.833 GB, free: 14.51 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.6079, allocations: 0.7726 MB / 0.8337 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004435/0.6084, allocations: 298.8 kB / 0.834 GB, free: 13.97 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 7.174e-05/0.6084, allocations: 29.31 kB / 0.834 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006968/0.6091, allocations: 453 kB / 0.8345 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.124e-06/0.6092, allocations: 2.094 kB / 0.8345 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of matching and sorting (n=78): time 0.002631/0.6118, allocations: 1.14 MB / 0.8356 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.418e-05/0.6119, allocations: 192.3 kB / 0.8358 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007357/0.6126, allocations: 0.6933 MB / 0.8364 GB, free: 12.42 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.642e-05/0.6127, allocations: 40.45 kB / 0.8365 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000337/0.6131, allocations: 0.4973 MB / 0.837 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.6132, allocations: 254.6 kB / 0.8372 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002137/0.6135, allocations: 158.1 kB / 0.8374 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.6136, allocations: 398.5 kB / 0.8377 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004379/0.6141, allocations: 256.6 kB / 0.838 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005304/0.6146, allocations: 350.6 kB / 0.8383 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009662/0.6156, allocations: 0.598 MB / 0.8389 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.6156, allocations: 0 / 0.8389 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001681/0.6173, allocations: 0.8487 MB / 0.8397 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.6173, allocations: 6.281 kB / 0.8397 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.6173, allocations: 2.906 kB / 0.8397 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005246/0.6178, allocations: 79.28 kB / 0.8398 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005801/0.6184, allocations: 156.7 kB / 0.84 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001909/0.6204, allocations: 1.637 MB / 0.8416 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005855/0.621, allocations: 97.48 kB / 0.8417 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.908e-05/0.621, allocations: 31.89 kB / 0.8417 GB, free: 8.391 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 (92): * Single equations (assignments): 91 * 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.0003768/0.6214, allocations: 277 kB / 0.842 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.6216, allocations: 90.16 kB / 0.842 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002013/0.6236, allocations: 1.023 MB / 0.843 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.6236, allocations: 9.75 kB / 0.843 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.6236, allocations: 0 / 0.843 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.6236, allocations: 3.984 kB / 0.843 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009691/0.6246, allocations: 0.9814 MB / 0.844 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.6246, allocations: 4 kB / 0.844 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005409/0.6252, allocations: 148 kB / 0.8442 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003816/0.6255, allocations: 67.97 kB / 0.8442 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.88e-05/0.6256, allocations: 27.8 kB / 0.8442 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001663/0.6273, allocations: 1.661 MB / 0.8459 GB, free: 5.109 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.6273, allocations: 6.156 kB / 0.8459 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.6289, allocations: 0.8938 MB / 0.8467 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002969/0.6292, allocations: 260.6 kB / 0.847 GB, free: 4.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.6293, allocations: 24.77 kB / 0.847 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004738/0.6298, allocations: 49.27 kB / 0.8471 GB, free: 4.348 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.6299, allocations: 63.28 kB / 0.8471 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-05/0.63, allocations: 32.27 kB / 0.8472 GB, free: 4.281 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005226/0.6305, allocations: 499 kB / 0.8476 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6305, allocations: 0 / 0.8476 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0007399/0.6313, allocations: 342.2 kB / 0.848 GB, free: 3.465 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.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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.001214/0.6325, allocations: 0.5887 MB / 0.8485 GB, free: 3.055 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001419/0.6339, allocations: 0.8089 MB / 0.8493 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.634, allocations: 0 / 0.8493 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007954/0.6348, allocations: 0.5002 MB / 0.8498 GB, free: 1.727 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.6358, allocations: 302.4 kB / 0.8501 GB, free: 1.453 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003564/0.6394, allocations: 1.993 MB / 0.852 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005556/0.64, allocations: 1.082 MB / 0.8531 GB, free: 14.31 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002803/0.6403, allocations: 115.4 kB / 0.8532 GB, free: 14.2 MB / 0.6231 GB Notification: Performance of SimCode: time 2.3e-07/0.6403, allocations: 0 / 0.8532 GB, free: 14.2 MB / 0.6231 GB Notification: Performance of Templates: time 0.02248/0.6627, allocations: 20.19 MB / 0.8729 GB, free: 10.03 MB / 0.6387 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.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.Examples.DiffuseIsotropicCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicFunctions.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.Examples.DiffuseIsotropicCalcHelperMain.o] Error 1