Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.BaseClasses.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001244/0.001244, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001141/0.001141, allocations: 187.9 kB / 17.2 MB, free: 5.684 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.303/1.303, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7988/0.7988, allocations: 135.2 MB / 426.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001893, allocations: 75.86 kB / 0.5061 GB, free: 8.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.3747, allocations: 80.9 MB / 0.5851 GB, free: 25.52 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic): time 0.004851/0.3796, allocations: 4.109 MB / 0.5891 GB, free: 22.3 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1711/0.5507, allocations: 150.5 MB / 0.736 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007097/0.5515, allocations: 15.94 kB / 0.736 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005248/0.552, allocations: 170.5 kB / 0.7362 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001384/0.5534, allocations: 467.8 kB / 0.7366 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001711/0.5551, allocations: 0.7749 MB / 0.7374 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001111/0.5563, allocations: 1.157 MB / 0.7385 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008652/0.5571, allocations: 0.6098 MB / 0.7391 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005198/0.5577, allocations: 426.5 kB / 0.7395 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005008/0.5582, allocations: 436.2 kB / 0.7399 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001414/0.5583, allocations: 104 kB / 0.74 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007829/0.5591, allocations: 443.6 kB / 0.7404 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002605/0.5594, allocations: 267.1 kB / 0.7407 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004478/0.5598, allocations: 497.3 kB / 0.7412 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001568/0.5614, allocations: 1.425 MB / 0.7426 GB, free: 8.844 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.316e-05/0.5614, allocations: 7.984 kB / 0.7426 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.613e-06/0.5615, allocations: 0 / 0.7426 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.119e-05/0.5615, allocations: 4 kB / 0.7426 GB, free: 8.832 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.00206/0.5635, allocations: 1.311 MB / 0.7439 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.5636, allocations: 21.03 kB / 0.7439 GB, free: 7.449 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008617/0.5645, allocations: 171.5 kB / 0.744 GB, free: 7.281 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009719/0.5654, allocations: 0.7033 MB / 0.7447 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.326e-05/0.5655, allocations: 58 kB / 0.7448 GB, free: 6.48 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.526e-05/0.5656, allocations: 72 kB / 0.7449 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.567, allocations: 0.8559 MB / 0.7457 GB, free: 5.512 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.567, allocations: 0 / 0.7457 GB, free: 5.512 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.534e-05/0.5671, allocations: 36 kB / 0.7457 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.5671, allocations: 23.98 kB / 0.7457 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.5688, allocations: 1.05 MB / 0.7468 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003524/0.5723, allocations: 2.343 MB / 0.7491 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001276/0.5736, allocations: 0.7126 MB / 0.7498 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004782/0.5741, allocations: 263.5 kB / 0.75 GB, free: 1.016 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.257e-05/0.5742, allocations: 36.66 kB / 0.75 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007708/0.575, allocations: 431 kB / 0.7505 GB, free: 0.5391 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=71): time 1.763e-06/0.575, allocations: 0 / 0.7505 GB, free: 0.5391 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71): time 0.2493/0.8243, allocations: 1.05 MB / 0.7515 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.8244, allocations: 197.3 kB / 0.7517 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007582/0.8252, allocations: 0.5891 MB / 0.7522 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.885e-05/0.8252, allocations: 38.27 kB / 0.7523 GB, free: 165.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002165/0.8255, allocations: 375.4 kB / 0.7526 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.8256, allocations: 234.7 kB / 0.7529 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/0.8258, allocations: 152.3 kB / 0.753 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.956e-05/0.8259, allocations: 374.5 kB / 0.7534 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004559/0.8264, allocations: 235 kB / 0.7536 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004888/0.8269, allocations: 322.4 kB / 0.7539 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009372/0.8278, allocations: 0.5452 MB / 0.7544 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.8278, allocations: 4.281 kB / 0.7544 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00174/0.8296, allocations: 0.7613 MB / 0.7552 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.8296, allocations: 6.25 kB / 0.7552 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.8296, allocations: 0.9688 kB / 0.7552 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005835/0.8302, allocations: 79.78 kB / 0.7553 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005796/0.8308, allocations: 152.3 kB / 0.7554 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001817/0.8326, allocations: 1.627 MB / 0.757 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005789/0.8332, allocations: 77.48 kB / 0.7571 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.283e-05/0.8333, allocations: 35.86 kB / 0.7571 GB, free: 162 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 (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.0003458/0.8336, allocations: 250.2 kB / 0.7573 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.8338, allocations: 79.16 kB / 0.7574 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002209/0.836, allocations: 0.9572 MB / 0.7583 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.836, allocations: 11.69 kB / 0.7584 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.836, allocations: 3.875 kB / 0.7584 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.836, allocations: 3.516 kB / 0.7584 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009171/0.837, allocations: 0.8266 MB / 0.7592 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.837, allocations: 0 / 0.7592 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005881/0.8376, allocations: 142.7 kB / 0.7593 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004345/0.838, allocations: 77.23 kB / 0.7594 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.486e-05/0.8381, allocations: 21.41 kB / 0.7594 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001556/0.8396, allocations: 1.652 MB / 0.761 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.8396, allocations: 0.5 kB / 0.761 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00178/0.8414, allocations: 0.8307 MB / 0.7618 GB, free: 159 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000263/0.8417, allocations: 247.5 kB / 0.7621 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.8418, allocations: 18.41 kB / 0.7621 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004892/0.8423, allocations: 54.8 kB / 0.7621 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.8424, allocations: 61.19 kB / 0.7622 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-05/0.8425, allocations: 29.05 kB / 0.7622 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004252/0.8429, allocations: 428.3 kB / 0.7626 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8429, allocations: 2.312 kB / 0.7626 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007436/0.8437, allocations: 281.5 kB / 0.7629 GB, free: 158.4 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 (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.001703/0.8454, allocations: 0.6099 MB / 0.7635 GB, free: 158.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001908/0.8473, allocations: 0.9265 MB / 0.7644 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.8473, allocations: 5 kB / 0.7644 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006888/0.848, allocations: 482.1 kB / 0.7649 GB, free: 157.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.8493, allocations: 279.8 kB / 0.7651 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.8523, allocations: 1.681 MB / 0.7668 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.8526, allocations: 0.9941 MB / 0.7677 GB, free: 155.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.8528, allocations: 109.8 kB / 0.7679 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of SimCode: time 4.5e-07/0.8528, allocations: 0 / 0.7679 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.0154/0.8682, allocations: 16.9 MB / 0.7844 GB, free: 138.3 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.makefile make -j1 -f IDEAS_dev_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-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.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.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.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.o] Error 1