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.001578/0.001578, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002221/0.002221, allocations: 198.1 kB / 16.79 MB, free: 6.809 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.418/1.418, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9489/0.9489, allocations: 135.1 MB / 425.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 60.12 kB / 0.5053 GB, free: 5.777 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1937, allocations: 80.92 MB / 0.5843 GB, free: 5.02 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.006386/0.2001, allocations: 4.513 MB / 0.5887 GB, free: 496 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4853/0.6855, allocations: 148.3 MB / 0.7336 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008314/0.6863, allocations: 17.44 kB / 0.7336 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006161/0.687, allocations: 150.8 kB / 0.7337 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001528/0.6885, allocations: 413.9 kB / 0.7341 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001884/0.6904, allocations: 0.7132 MB / 0.7348 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001555/0.692, allocations: 1.227 MB / 0.736 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001254/0.6933, allocations: 0.8833 MB / 0.7369 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007772/0.694, allocations: 481.8 kB / 0.7373 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006108/0.6947, allocations: 0.5449 MB / 0.7379 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.6948, allocations: 82.25 kB / 0.7379 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009395/0.6958, allocations: 425.2 kB / 0.7383 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002799/0.6961, allocations: 286.2 kB / 0.7386 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005644/0.6966, allocations: 0.586 MB / 0.7392 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001572/0.6982, allocations: 1.362 MB / 0.7405 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.6982, allocations: 0 / 0.7405 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.112e-06/0.6983, allocations: 4 kB / 0.7405 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.749e-05/0.6983, allocations: 0 / 0.7405 GB, free: 10.05 MB / 0.5606 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.002811/0.7011, allocations: 1.59 MB / 0.7421 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.7011, allocations: 9.094 kB / 0.7421 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001012/0.7022, allocations: 212.8 kB / 0.7423 GB, free: 8.711 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.7033, allocations: 0.8117 MB / 0.7431 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.088e-05/0.7034, allocations: 85.05 kB / 0.7432 GB, free: 8.004 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.7036, allocations: 112.4 kB / 0.7433 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/0.7056, allocations: 1.142 MB / 0.7444 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.7056, allocations: 0 / 0.7444 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.771e-05/0.7058, allocations: 46.12 kB / 0.7444 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.7058, allocations: 28.47 kB / 0.7445 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001937/0.7077, allocations: 1.232 MB / 0.7457 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004777/0.7125, allocations: 3.008 MB / 0.7486 GB, free: 4.348 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.7139, allocations: 0.7842 MB / 0.7494 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005105/0.7144, allocations: 294.7 kB / 0.7496 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.011e-05/0.7145, allocations: 29.34 kB / 0.7497 GB, free: 3.613 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008865/0.7154, allocations: 459.2 kB / 0.7501 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=78): time 2.515e-06/0.7154, allocations: 0 / 0.7501 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of matching and sorting (n=78): time 0.003032/0.7184, allocations: 1.139 MB / 0.7512 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.7185, allocations: 188.6 kB / 0.7514 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008943/0.7194, allocations: 0.6882 MB / 0.7521 GB, free: 1.062 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.173e-05/0.7195, allocations: 42.36 kB / 0.7521 GB, free: 1.016 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003784/0.7199, allocations: 0.4996 MB / 0.7526 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00022/0.7201, allocations: 256.2 kB / 0.7528 GB, free: 260 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002557/0.7204, allocations: 158.5 kB / 0.753 GB, free: 92 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000192/0.7206, allocations: 390.8 kB / 0.7534 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004949/0.7211, allocations: 261.8 kB / 0.7536 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006124/0.7217, allocations: 351.1 kB / 0.754 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.7228, allocations: 0.603 MB / 0.7545 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.7228, allocations: 0 / 0.7545 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001883/0.7247, allocations: 0.8447 MB / 0.7554 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.7247, allocations: 10.03 kB / 0.7554 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.7247, allocations: 0 / 0.7554 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006169/0.7254, allocations: 84.86 kB / 0.7555 GB, free: 13.53 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006485/0.726, allocations: 155.8 kB / 0.7556 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002215/0.7283, allocations: 1.525 MB / 0.7571 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006785/0.7289, allocations: 83.28 kB / 0.7572 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.825e-05/0.729, allocations: 35.97 kB / 0.7572 GB, free: 11.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.0004547/0.7295, allocations: 287.8 kB / 0.7575 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.7296, allocations: 86.88 kB / 0.7576 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002382/0.732, allocations: 1.034 MB / 0.7586 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.7321, allocations: 8 kB / 0.7586 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.7321, allocations: 0 / 0.7586 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.7321, allocations: 3.984 kB / 0.7586 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.7333, allocations: 0.9816 MB / 0.7596 GB, free: 9.141 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.7334, allocations: 0 / 0.7596 GB, free: 9.141 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000609/0.734, allocations: 147.8 kB / 0.7597 GB, free: 8.996 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005396/0.7345, allocations: 80.77 kB / 0.7598 GB, free: 8.914 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.862e-05/0.7346, allocations: 23.98 kB / 0.7598 GB, free: 8.891 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001883/0.7365, allocations: 1.55 MB / 0.7613 GB, free: 7.203 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.7365, allocations: 0 / 0.7613 GB, free: 7.203 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.7384, allocations: 0.881 MB / 0.7622 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003734/0.7388, allocations: 271.6 kB / 0.7624 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.739, allocations: 16 kB / 0.7624 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005648/0.7395, allocations: 64.7 kB / 0.7625 GB, free: 5.934 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.7397, allocations: 60.91 kB / 0.7626 GB, free: 5.875 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.6e-05/0.7398, allocations: 27.98 kB / 0.7626 GB, free: 5.848 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006751/0.7405, allocations: 0.4912 MB / 0.7631 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.21e-07/0.7405, allocations: 0 / 0.7631 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009331/0.7414, allocations: 338.9 kB / 0.7634 GB, free: 5.027 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.001543/0.743, allocations: 0.5973 MB / 0.764 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00164/0.7446, allocations: 0.7992 MB / 0.7648 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.7446, allocations: 4 kB / 0.7648 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009319/0.7456, allocations: 0.5048 MB / 0.7652 GB, free: 3.32 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.7467, allocations: 271.6 kB / 0.7655 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004656/0.7514, allocations: 2.53 MB / 0.768 GB, free: 0.5117 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007836/0.7522, allocations: 1.078 MB / 0.769 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.7525, allocations: 111.4 kB / 0.7691 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of SimCode: time 2.534e-06/0.7526, allocations: 8 kB / 0.7691 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of Templates: time 0.0286/0.7812, allocations: 20.07 MB / 0.7887 GB, free: 11.27 MB / 0.6075 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