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.001412/0.001412, allocations: 101.5 kB / 15.99 MB, free: 6.359 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.001524/0.001523, allocations: 194.5 kB / 16.91 MB, free: 6.191 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.373/1.373, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.835/0.835, allocations: 135.1 MB / 425.9 MB, free: 4.328 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002285, allocations: 59.91 kB / 0.5055 GB, free: 8.754 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4658/0.4681, allocations: 80.92 MB / 0.5845 GB, free: 25.16 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.005989/0.4741, allocations: 4.512 MB / 0.5889 GB, free: 21.64 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1684/0.6426, allocations: 148.4 MB / 0.7338 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.6439, allocations: 15.94 kB / 0.7338 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009132/0.6448, allocations: 142.8 kB / 0.734 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002233/0.6471, allocations: 436.4 kB / 0.7344 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00231/0.6494, allocations: 0.7348 MB / 0.7351 GB, free: 68 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001965/0.6514, allocations: 1.308 MB / 0.7364 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001519/0.6529, allocations: 0.9194 MB / 0.7373 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00102/0.654, allocations: 0.5331 MB / 0.7378 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009401/0.6549, allocations: 0.5793 MB / 0.7384 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003582/0.6553, allocations: 140 kB / 0.7385 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.6565, allocations: 483.6 kB / 0.739 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004601/0.657, allocations: 346.9 kB / 0.7393 GB, free: 11.72 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009576/0.6579, allocations: 0.645 MB / 0.7399 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001886/0.6598, allocations: 1.38 MB / 0.7413 GB, free: 9.691 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.6598, allocations: 0 / 0.7413 GB, free: 9.691 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.406e-06/0.6598, allocations: 0 / 0.7413 GB, free: 9.691 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.146e-05/0.6599, allocations: 3.938 kB / 0.7413 GB, free: 9.688 MB / 0.5762 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.003296/0.6632, allocations: 1.591 MB / 0.7428 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.6633, allocations: 9.109 kB / 0.7428 GB, free: 8.039 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/0.6644, allocations: 207.1 kB / 0.743 GB, free: 7.836 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.6658, allocations: 0.8131 MB / 0.7438 GB, free: 6.98 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.118e-05/0.6659, allocations: 82.3 kB / 0.7439 GB, free: 6.898 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000181/0.6661, allocations: 112 kB / 0.744 GB, free: 6.789 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00235/0.6684, allocations: 1.142 MB / 0.7451 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.926e-05/0.6685, allocations: 0 / 0.7451 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/0.6686, allocations: 48 kB / 0.7452 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/0.6686, allocations: 28 kB / 0.7452 GB, free: 5.508 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002214/0.6708, allocations: 1.242 MB / 0.7464 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005661/0.6765, allocations: 3.029 MB / 0.7494 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.6779, allocations: 0.7677 MB / 0.7501 GB, free: 388 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005057/0.6784, allocations: 294.7 kB / 0.7504 GB, free: 92 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.513e-05/0.6785, allocations: 40.61 kB / 0.7504 GB, free: 52 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3305/1.009, allocations: 446.7 kB / 0.7509 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 3.176e-06/1.009, allocations: 0.9062 kB / 0.7509 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=78): time 0.003318/1.012, allocations: 1.134 MB / 0.752 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/1.012, allocations: 196.9 kB / 0.7522 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/1.014, allocations: 0.6839 MB / 0.7528 GB, free: 164 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.409e-05/1.014, allocations: 41.2 kB / 0.7529 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000397/1.014, allocations: 0.5015 MB / 0.7534 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000182/1.014, allocations: 253.6 kB / 0.7536 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002801/1.014, allocations: 161.8 kB / 0.7538 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001345/1.015, allocations: 392.8 kB / 0.7541 GB, free: 163 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005481/1.015, allocations: 260.6 kB / 0.7544 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006499/1.016, allocations: 350.9 kB / 0.7547 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/1.017, allocations: 0.5999 MB / 0.7553 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/1.017, allocations: 5.562 kB / 0.7553 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002264/1.019, allocations: 0.8333 MB / 0.7561 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/1.019, allocations: 7.453 kB / 0.7561 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/1.019, allocations: 4.406 kB / 0.7561 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000659/1.02, allocations: 86.22 kB / 0.7562 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007367/1.021, allocations: 162.8 kB / 0.7564 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/1.023, allocations: 1.63 MB / 0.758 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000725/1.024, allocations: 91.59 kB / 0.758 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.092e-05/1.024, allocations: 34.73 kB / 0.7581 GB, free: 160.6 MB / 0.5762 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.0005337/1.024, allocations: 286.4 kB / 0.7584 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001917/1.025, allocations: 89.5 kB / 0.7584 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002613/1.027, allocations: 1.022 MB / 0.7594 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/1.027, allocations: 8.906 kB / 0.7594 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/1.027, allocations: 4.469 kB / 0.7594 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/1.027, allocations: 3.703 kB / 0.7595 GB, free: 159.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/1.028, allocations: 0.9816 MB / 0.7604 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/1.028, allocations: 0 / 0.7604 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000604/1.029, allocations: 149.8 kB / 0.7606 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004631/1.03, allocations: 72.5 kB / 0.7606 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.097e-05/1.03, allocations: 23.98 kB / 0.7606 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00154/1.031, allocations: 1.668 MB / 0.7623 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/1.031, allocations: 0 / 0.7623 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/1.033, allocations: 0.8856 MB / 0.7631 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000367/1.033, allocations: 270.5 kB / 0.7634 GB, free: 157 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/1.034, allocations: 19.31 kB / 0.7634 GB, free: 157 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005559/1.034, allocations: 54.3 kB / 0.7635 GB, free: 157 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/1.034, allocations: 67.97 kB / 0.7635 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.089e-05/1.034, allocations: 36.42 kB / 0.7636 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007852/1.035, allocations: 498.9 kB / 0.764 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.035, allocations: 0 / 0.764 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001366/1.037, allocations: 339.6 kB / 0.7644 GB, free: 156.6 MB / 0.5762 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.001769/1.038, allocations: 0.5921 MB / 0.7649 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00243/1.041, allocations: 1 MB / 0.7659 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/1.041, allocations: 0 / 0.7659 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008365/1.042, allocations: 0.5 MB / 0.7664 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001228/1.043, allocations: 305.3 kB / 0.7667 GB, free: 155.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00386/1.047, allocations: 2.54 MB / 0.7692 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/1.047, allocations: 1.086 MB / 0.7702 GB, free: 151.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002877/1.047, allocations: 111.4 kB / 0.7703 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.442e-06/1.047, allocations: 0 / 0.7703 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.02058/1.068, allocations: 20.07 MB / 0.7899 GB, free: 131.7 MB / 0.5762 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++14 -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