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.001135/0.001135, allocations: 107.5 kB / 16.41 MB, free: 6.496 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.001113/0.001113, allocations: 189.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.192/1.192, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7055/0.7055, allocations: 135.1 MB / 426.3 MB, free: 4.098 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 61.16 kB / 0.5862 GB, free: 21.55 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1246, allocations: 80.93 MB / 0.6653 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.005813/0.1304, allocations: 4.508 MB / 0.6697 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4264/0.5569, allocations: 150.6 MB / 0.8168 GB, free: 8.207 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006519/0.5576, allocations: 19.97 kB / 0.8168 GB, free: 8.199 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005256/0.5581, allocations: 179.1 kB / 0.817 GB, free: 8.102 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001285/0.5594, allocations: 0.4948 MB / 0.8174 GB, free: 7.891 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001568/0.561, allocations: 0.8155 MB / 0.8182 GB, free: 7.613 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0009654/0.562, allocations: 1.324 MB / 0.8195 GB, free: 7.25 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009034/0.5629, allocations: 0.9155 MB / 0.8204 GB, free: 6.934 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004602/0.5634, allocations: 0.5344 MB / 0.8209 GB, free: 6.754 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005045/0.5639, allocations: 0.5784 MB / 0.8215 GB, free: 6.406 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.564, allocations: 141.7 kB / 0.8216 GB, free: 6.406 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007266/0.5648, allocations: 0.5026 MB / 0.8221 GB, free: 6.23 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002605/0.565, allocations: 344.3 kB / 0.8225 GB, free: 5.957 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004438/0.5655, allocations: 0.6391 MB / 0.8231 GB, free: 5.461 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001469/0.567, allocations: 1.839 MB / 0.8249 GB, free: 4.102 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.567, allocations: 0 / 0.8249 GB, free: 4.102 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.613e-06/0.567, allocations: 2.438 kB / 0.8249 GB, free: 4.102 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.264e-05/0.567, allocations: 4 kB / 0.8249 GB, free: 4.098 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.002075/0.5691, allocations: 1.586 MB / 0.8264 GB, free: 2.855 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.059e-05/0.5691, allocations: 11.58 kB / 0.8265 GB, free: 2.855 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008126/0.5699, allocations: 215.1 kB / 0.8267 GB, free: 2.75 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/0.571, allocations: 0.8305 MB / 0.8275 GB, free: 2.074 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.524e-05/0.571, allocations: 83.55 kB / 0.8275 GB, free: 2.035 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.5712, allocations: 113 kB / 0.8277 GB, free: 1.996 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.5728, allocations: 1.142 MB / 0.8288 GB, free: 1.262 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.5728, allocations: 0 / 0.8288 GB, free: 1.262 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.92e-05/0.5729, allocations: 45.53 kB / 0.8288 GB, free: 1.227 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.5729, allocations: 28.44 kB / 0.8288 GB, free: 1.227 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001685/0.5746, allocations: 1.235 MB / 0.83 GB, free: 0.6328 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003781/0.5784, allocations: 2.964 MB / 0.8329 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.5796, allocations: 0.7701 MB / 0.8337 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004355/0.58, allocations: 294.6 kB / 0.834 GB, free: 13.86 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 7.231e-05/0.5801, allocations: 36.23 kB / 0.834 GB, free: 13.84 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006868/0.5808, allocations: 452.7 kB / 0.8344 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 1.884e-06/0.5808, allocations: 3.938 kB / 0.8344 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of matching and sorting (n=78): time 0.002582/0.5834, allocations: 1.131 MB / 0.8355 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/0.5835, allocations: 194.6 kB / 0.8357 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007293/0.5843, allocations: 0.6965 MB / 0.8364 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.233e-05/0.5843, allocations: 40.92 kB / 0.8365 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000326/0.5846, allocations: 0.4969 MB / 0.8369 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.5848, allocations: 254.5 kB / 0.8372 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002197/0.585, allocations: 161.9 kB / 0.8373 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.5852, allocations: 387.3 kB / 0.8377 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004375/0.5856, allocations: 256.6 kB / 0.8379 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005278/0.5862, allocations: 360.7 kB / 0.8383 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009596/0.5871, allocations: 0.5971 MB / 0.8389 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.5872, allocations: 0 / 0.8389 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001675/0.5888, allocations: 0.844 MB / 0.8397 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.5889, allocations: 6 kB / 0.8397 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.5889, allocations: 2.094 kB / 0.8397 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005181/0.5894, allocations: 83.42 kB / 0.8398 GB, free: 10 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005791/0.59, allocations: 160.6 kB / 0.8399 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001982/0.592, allocations: 1.629 MB / 0.8415 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000575/0.5926, allocations: 98.3 kB / 0.8416 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-05/0.5926, allocations: 34.59 kB / 0.8417 GB, free: 8.281 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.0003852/0.593, allocations: 282.3 kB / 0.8419 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.5932, allocations: 89.28 kB / 0.842 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002064/0.5952, allocations: 1.031 MB / 0.843 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.5953, allocations: 10.84 kB / 0.843 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.5953, allocations: 0 / 0.843 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.5953, allocations: 7.969 kB / 0.843 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.5963, allocations: 0.9781 MB / 0.844 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.5963, allocations: 0 / 0.844 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005307/0.5969, allocations: 144.6 kB / 0.8441 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003933/0.5973, allocations: 74.72 kB / 0.8442 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.202e-05/0.5973, allocations: 26.8 kB / 0.8442 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001657/0.599, allocations: 1.654 MB / 0.8458 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.599, allocations: 0 / 0.8458 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.6006, allocations: 0.8868 MB / 0.8467 GB, free: 4.52 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003043/0.601, allocations: 267.6 kB / 0.847 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.6011, allocations: 20.22 kB / 0.847 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004913/0.6016, allocations: 61.72 kB / 0.847 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.6017, allocations: 58.47 kB / 0.8471 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.187e-05/0.6018, allocations: 39.91 kB / 0.8471 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005402/0.6023, allocations: 495 kB / 0.8476 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6023, allocations: 0 / 0.8476 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0007964/0.6031, allocations: 342.9 kB / 0.8479 GB, free: 3.324 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.001203/0.6043, allocations: 0.5949 MB / 0.8485 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00143/0.6058, allocations: 0.7971 MB / 0.8493 GB, free: 2.102 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6058, allocations: 192 / 0.8493 GB, free: 2.102 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008004/0.6066, allocations: 0.5119 MB / 0.8498 GB, free: 1.578 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.6077, allocations: 309 kB / 0.8501 GB, free: 1.301 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003552/0.6112, allocations: 1.985 MB / 0.852 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005621/0.6118, allocations: 1.082 MB / 0.8531 GB, free: 14.16 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000278/0.6121, allocations: 119.4 kB / 0.8532 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of SimCode: time 2.1e-07/0.6121, allocations: 0 / 0.8532 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of Templates: time 0.02309/0.6352, allocations: 20.06 MB / 0.8728 GB, free: 10 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