Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.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/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.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 112.5 kB / 16.37 MB, free: 6.344 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.0009959/0.0009959, allocations: 185.5 kB / 17.3 MB, free: 5.898 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.282/1.282, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7685/0.7685, allocations: 132.2 MB / 423.4 MB, free: 6.645 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 61.94 kB / 0.5819 GB, free: 23.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1544, allocations: 80.22 MB / 0.6603 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic): time 0.005447/0.1599, allocations: 4.11 MB / 0.6643 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4968/0.6567, allocations: 150.4 MB / 0.8112 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006454/0.6574, allocations: 20.94 kB / 0.8112 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0004811/0.6579, allocations: 160.3 kB / 0.8114 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001258/0.6592, allocations: 473.4 kB / 0.8118 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001516/0.6607, allocations: 0.7912 MB / 0.8126 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008992/0.6616, allocations: 1.17 MB / 0.8137 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006964/0.6623, allocations: 0.5985 MB / 0.8143 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004691/0.6628, allocations: 420 kB / 0.8147 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004259/0.6632, allocations: 447.5 kB / 0.8152 GB, free: 11 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.6634, allocations: 101.5 kB / 0.8152 GB, free: 11 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007051/0.6641, allocations: 472 kB / 0.8157 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002204/0.6643, allocations: 262.1 kB / 0.8159 GB, free: 10.92 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003728/0.6647, allocations: 497 kB / 0.8164 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001407/0.6661, allocations: 1.47 MB / 0.8179 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.6661, allocations: 0 / 0.8179 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.282e-06/0.6661, allocations: 0 / 0.8179 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.029e-05/0.6662, allocations: 0 / 0.8179 GB, free: 10.06 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.002013/0.6682, allocations: 1.317 MB / 0.8191 GB, free: 9.168 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.6682, allocations: 14.31 kB / 0.8192 GB, free: 9.168 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008999/0.6691, allocations: 179.1 kB / 0.8193 GB, free: 9.082 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.6702, allocations: 0.7211 MB / 0.82 GB, free: 8.566 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.57e-05/0.6702, allocations: 57.59 kB / 0.8201 GB, free: 8.543 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.475e-05/0.6703, allocations: 73.84 kB / 0.8202 GB, free: 8.52 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.6716, allocations: 0.8491 MB / 0.821 GB, free: 7.965 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.6717, allocations: 0 / 0.821 GB, free: 7.965 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.747e-05/0.6718, allocations: 35.84 kB / 0.821 GB, free: 7.938 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.6718, allocations: 18.69 kB / 0.821 GB, free: 7.938 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.6733, allocations: 1.053 MB / 0.8221 GB, free: 7.438 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003264/0.6766, allocations: 2.319 MB / 0.8243 GB, free: 5.668 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.6778, allocations: 0.7055 MB / 0.825 GB, free: 5.316 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004463/0.6783, allocations: 265.5 kB / 0.8253 GB, free: 5.184 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 8.075e-05/0.6784, allocations: 34.92 kB / 0.8253 GB, free: 5.168 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006879/0.6791, allocations: 419.5 kB / 0.8257 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=71): time 2.104e-06/0.6791, allocations: 0 / 0.8257 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of matching and sorting (n=71): time 0.002774/0.6819, allocations: 1.063 MB / 0.8267 GB, free: 4.316 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.547e-05/0.682, allocations: 187.3 kB / 0.8269 GB, free: 4.098 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006386/0.6826, allocations: 0.5924 MB / 0.8275 GB, free: 3.75 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.135e-05/0.6827, allocations: 42.11 kB / 0.8275 GB, free: 3.707 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002641/0.683, allocations: 378.9 kB / 0.8279 GB, free: 3.371 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001732/0.6831, allocations: 235 kB / 0.8281 GB, free: 3.176 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/0.6834, allocations: 145.3 kB / 0.8283 GB, free: 3.09 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.6835, allocations: 384.4 kB / 0.8286 GB, free: 2.723 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000451/0.684, allocations: 225.6 kB / 0.8289 GB, free: 2.613 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005338/0.6845, allocations: 330.6 kB / 0.8292 GB, free: 2.418 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009772/0.6855, allocations: 0.5379 MB / 0.8297 GB, free: 2.129 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.6855, allocations: 6.906 kB / 0.8297 GB, free: 2.125 MB / 0.5919 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001692/0.6872, allocations: 0.7623 MB / 0.8304 GB, free: 1.734 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.6872, allocations: 10.73 kB / 0.8305 GB, free: 1.73 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.6873, allocations: 0 / 0.8305 GB, free: 1.73 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005747/0.6878, allocations: 82.22 kB / 0.8305 GB, free: 1.691 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005661/0.6884, allocations: 147.8 kB / 0.8307 GB, free: 1.656 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.6904, allocations: 1.626 MB / 0.8323 GB, free: 60 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005988/0.691, allocations: 81.89 kB / 0.8323 GB, free: 4 kB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.611e-05/0.6911, allocations: 34.34 kB / 0.8324 GB, free: 15.99 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 (83): * Single equations (assignments): 82 * 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.0003299/0.6915, allocations: 254.1 kB / 0.8326 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.6916, allocations: 78.19 kB / 0.8327 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002072/0.6937, allocations: 0.9596 MB / 0.8336 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.6937, allocations: 7.906 kB / 0.8336 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.6937, allocations: 2.562 kB / 0.8336 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.6937, allocations: 7.984 kB / 0.8336 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008531/0.6946, allocations: 0.8224 MB / 0.8344 GB, free: 14.58 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.6946, allocations: 2.094 kB / 0.8344 GB, free: 14.58 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005304/0.6951, allocations: 133.3 kB / 0.8346 GB, free: 14.55 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004228/0.6956, allocations: 74.84 kB / 0.8346 GB, free: 14.52 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.753e-05/0.6956, allocations: 21.27 kB / 0.8347 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00181/0.6974, allocations: 1.662 MB / 0.8363 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.6975, allocations: 0 / 0.8363 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.6991, allocations: 0.824 MB / 0.8371 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002835/0.6994, allocations: 250.8 kB / 0.8373 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.281e-05/0.6995, allocations: 20.3 kB / 0.8374 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005105/0.7, allocations: 51.08 kB / 0.8374 GB, free: 12.17 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.7002, allocations: 60.81 kB / 0.8375 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.244e-05/0.7003, allocations: 31.98 kB / 0.8375 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000528/0.7008, allocations: 422.2 kB / 0.8379 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7008, allocations: 0 / 0.8379 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008348/0.7016, allocations: 289.7 kB / 0.8382 GB, free: 11.8 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 (82): * Single equations (assignments): 79 * 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.001407/0.7031, allocations: 0.6052 MB / 0.8388 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001411/0.7045, allocations: 0.7452 MB / 0.8395 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.7045, allocations: 3.203 kB / 0.8395 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007858/0.7053, allocations: 488.7 kB / 0.84 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.7063, allocations: 290 kB / 0.8402 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003336/0.7097, allocations: 1.647 MB / 0.8418 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.7102, allocations: 0.9916 MB / 0.8428 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002643/0.7105, allocations: 111.4 kB / 0.8429 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of SimCode: time 5.41e-07/0.7105, allocations: 0 / 0.8429 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of Templates: time 0.02053/0.731, allocations: 16.9 MB / 0.8594 GB, free: 8.438 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.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/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.DiffuseIsotropicCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicFunctions.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.DiffuseIsotropicCalcHelperMain.o] Error 1