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.001359/0.001359, allocations: 106.6 kB / 16.27 MB, free: 6.414 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.001253/0.001253, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.335/1.335, 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.9179/0.9179, allocations: 135.1 MB / 426.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 71.88 kB / 0.506 GB, free: 8.402 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3378, allocations: 80.9 MB / 0.585 GB, free: 25.21 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic): time 0.0049/0.3428, allocations: 4.114 MB / 0.589 GB, free: 22 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1496/0.4924, allocations: 150.4 MB / 0.7359 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007866/0.4932, allocations: 19.88 kB / 0.736 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007095/0.4939, allocations: 158.5 kB / 0.7361 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001832/0.4958, allocations: 477.5 kB / 0.7366 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002069/0.4979, allocations: 0.7763 MB / 0.7373 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001423/0.4993, allocations: 1.157 MB / 0.7385 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000985/0.5003, allocations: 0.6021 MB / 0.739 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000665/0.501, allocations: 426.5 kB / 0.7395 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006463/0.5017, allocations: 434.1 kB / 0.7399 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002475/0.5019, allocations: 103.9 kB / 0.74 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009832/0.5029, allocations: 447.6 kB / 0.7404 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003207/0.5032, allocations: 263.2 kB / 0.7406 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006711/0.5039, allocations: 497.3 kB / 0.7411 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002011/0.5059, allocations: 1.433 MB / 0.7425 GB, free: 8.773 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.506, allocations: 0 / 0.7425 GB, free: 8.773 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.232e-06/0.506, allocations: 3.938 kB / 0.7425 GB, free: 8.77 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.674e-05/0.506, allocations: 0 / 0.7425 GB, free: 8.77 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.002689/0.5087, allocations: 1.315 MB / 0.7438 GB, free: 7.402 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.5088, allocations: 9.109 kB / 0.7438 GB, free: 7.395 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009933/0.5098, allocations: 171.5 kB / 0.744 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.5108, allocations: 0.7033 MB / 0.7447 GB, free: 6.48 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.032e-05/0.5109, allocations: 62 kB / 0.7447 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.511, allocations: 76 kB / 0.7448 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.5125, allocations: 0.8481 MB / 0.7456 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.5125, allocations: 0 / 0.7456 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.927e-05/0.5126, allocations: 32 kB / 0.7457 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.576e-05/0.5126, allocations: 23.98 kB / 0.7457 GB, free: 5.402 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001712/0.5144, allocations: 1.054 MB / 0.7467 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00371/0.5181, allocations: 2.354 MB / 0.749 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.5194, allocations: 0.7096 MB / 0.7497 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004944/0.5199, allocations: 271.5 kB / 0.75 GB, free: 0.9375 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.163e-05/0.52, allocations: 28.66 kB / 0.75 GB, free: 0.9102 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008147/0.5208, allocations: 429.1 kB / 0.7504 GB, free: 484 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=71): time 2.224e-06/0.5208, allocations: 4 kB / 0.7504 GB, free: 480 kB / 0.5762 GB Notification: Performance of matching and sorting (n=71): time 0.2468/0.7677, allocations: 1.053 MB / 0.7514 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.7678, allocations: 189.8 kB / 0.7516 GB, free: 165.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009064/0.7687, allocations: 0.5959 MB / 0.7522 GB, free: 165 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.973e-05/0.7687, allocations: 41.52 kB / 0.7522 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002571/0.769, allocations: 369.4 kB / 0.7526 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.7692, allocations: 236.8 kB / 0.7528 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002361/0.7694, allocations: 147.2 kB / 0.7529 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.7695, allocations: 381.4 kB / 0.7533 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005288/0.7701, allocations: 231.4 kB / 0.7535 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005703/0.7707, allocations: 328.6 kB / 0.7538 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.7717, allocations: 0.5412 MB / 0.7544 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.7718, allocations: 3.562 kB / 0.7544 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001959/0.7737, allocations: 0.7607 MB / 0.7551 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.629e-05/0.7738, allocations: 6.453 kB / 0.7551 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.7738, allocations: 4.344 kB / 0.7551 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000642/0.7744, allocations: 82.12 kB / 0.7552 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006431/0.7751, allocations: 144.9 kB / 0.7553 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/0.777, allocations: 1.63 MB / 0.7569 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006942/0.7777, allocations: 85.56 kB / 0.757 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.122e-05/0.7778, allocations: 35.23 kB / 0.7571 GB, free: 161.8 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.0004034/0.7782, allocations: 252.3 kB / 0.7573 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001637/0.7784, allocations: 80.02 kB / 0.7574 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002383/0.7808, allocations: 0.9552 MB / 0.7583 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-05/0.7808, allocations: 9.797 kB / 0.7583 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.7808, allocations: 0 / 0.7583 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.7808, allocations: 7.547 kB / 0.7583 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.7819, allocations: 0.831 MB / 0.7591 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.7819, allocations: 0 / 0.7591 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006234/0.7825, allocations: 136 kB / 0.7593 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004778/0.783, allocations: 72.95 kB / 0.7593 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.005e-05/0.7831, allocations: 24.84 kB / 0.7594 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001652/0.7847, allocations: 1.656 MB / 0.761 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.7848, allocations: 0.5312 kB / 0.761 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.7867, allocations: 0.8278 MB / 0.7618 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002806/0.787, allocations: 246.7 kB / 0.762 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.7871, allocations: 19.59 kB / 0.762 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005282/0.7877, allocations: 52.53 kB / 0.7621 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.7878, allocations: 53.52 kB / 0.7621 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.092e-05/0.7879, allocations: 33.05 kB / 0.7622 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004784/0.7884, allocations: 430.8 kB / 0.7626 GB, free: 158.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.01e-07/0.7884, allocations: 0 / 0.7626 GB, free: 158.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008195/0.7892, allocations: 294.3 kB / 0.7629 GB, free: 158.2 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.001308/0.7905, allocations: 0.6042 MB / 0.7634 GB, free: 158 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002096/0.7926, allocations: 0.9214 MB / 0.7643 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.7926, allocations: 0 / 0.7643 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008002/0.7935, allocations: 478.8 kB / 0.7648 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.7946, allocations: 282.8 kB / 0.7651 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/0.7979, allocations: 1.684 MB / 0.7667 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.7983, allocations: 0.9932 MB / 0.7677 GB, free: 155.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002515/0.7985, allocations: 106.9 kB / 0.7678 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of SimCode: time 4.71e-07/0.7985, allocations: 0 / 0.7678 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.01614/0.8147, allocations: 16.9 MB / 0.7843 GB, free: 138.2 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