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.001611/0.001611, allocations: 108.6 kB / 16.41 MB, free: 6.453 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.001593/0.001593, allocations: 183 kB / 17.34 MB, free: 5.734 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.452/1.452, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8422/0.8422, allocations: 135.2 MB / 426.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 70.11 kB / 0.5863 GB, free: 21.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1686, allocations: 80.94 MB / 0.6653 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.006884/0.1755, allocations: 4.503 MB / 0.6697 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.7124/0.8878, allocations: 151.1 MB / 0.8172 GB, free: 7.887 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.8892, allocations: 16.31 kB / 0.8173 GB, free: 7.883 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0007956/0.89, allocations: 194 kB / 0.8174 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00261/0.8926, allocations: 0.5027 MB / 0.8179 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002632/0.8952, allocations: 0.8193 MB / 0.8187 GB, free: 7.23 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002212/0.8974, allocations: 1.32 MB / 0.82 GB, free: 6.863 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00119/0.8986, allocations: 0.6778 MB / 0.8207 GB, free: 6.629 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009436/0.8996, allocations: 0.5357 MB / 0.8212 GB, free: 6.449 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007236/0.9003, allocations: 0.5683 MB / 0.8218 GB, free: 6.035 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.9005, allocations: 142.6 kB / 0.8219 GB, free: 6.035 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.9017, allocations: 0.5018 MB / 0.8224 GB, free: 5.852 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003426/0.902, allocations: 348.3 kB / 0.8227 GB, free: 5.574 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006185/0.9026, allocations: 0.6398 MB / 0.8234 GB, free: 5.078 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002551/0.9052, allocations: 1.852 MB / 0.8252 GB, free: 3.703 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.9052, allocations: 4 kB / 0.8252 GB, free: 3.699 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.254e-06/0.9052, allocations: 0 / 0.8252 GB, free: 3.699 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.04e-05/0.9052, allocations: 0 / 0.8252 GB, free: 3.699 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.002961/0.9082, allocations: 1.624 MB / 0.8267 GB, free: 2.418 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.9082, allocations: 11.27 kB / 0.8268 GB, free: 2.418 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009811/0.9092, allocations: 225.4 kB / 0.827 GB, free: 2.305 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/0.9106, allocations: 0.8339 MB / 0.8278 GB, free: 1.625 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.236e-05/0.9107, allocations: 83.86 kB / 0.8279 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.9108, allocations: 109.4 kB / 0.828 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002124/0.913, allocations: 1.147 MB / 0.8291 GB, free: 0.8086 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.913, allocations: 0 / 0.8291 GB, free: 0.8086 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.9131, allocations: 46.53 kB / 0.8291 GB, free: 0.7734 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.195e-05/0.9131, allocations: 30.5 kB / 0.8292 GB, free: 0.7734 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002067/0.9152, allocations: 1.235 MB / 0.8304 GB, free: 184 kB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005058/0.9203, allocations: 2.978 MB / 0.8333 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.9217, allocations: 0.727 MB / 0.834 GB, free: 13.56 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005297/0.9222, allocations: 269.3 kB / 0.8342 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.146e-05/0.9223, allocations: 31.5 kB / 0.8343 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008258/0.9231, allocations: 450.9 kB / 0.8347 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.895e-06/0.9231, allocations: 4 kB / 0.8347 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of matching and sorting (n=78): time 0.003089/0.9262, allocations: 1.141 MB / 0.8358 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/0.9263, allocations: 200.3 kB / 0.836 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009487/0.9273, allocations: 0.6865 MB / 0.8367 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.312e-05/0.9274, allocations: 39.86 kB / 0.8367 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004672/0.9278, allocations: 0.5077 MB / 0.8372 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002428/0.9281, allocations: 271.2 kB / 0.8375 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002559/0.9283, allocations: 163.1 kB / 0.8376 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000234/0.9286, allocations: 392 kB / 0.838 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005114/0.9291, allocations: 263.8 kB / 0.8383 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000624/0.9297, allocations: 353.5 kB / 0.8386 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.9308, allocations: 0.599 MB / 0.8392 GB, free: 10 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.9308, allocations: 0 / 0.8392 GB, free: 10 MB / 0.6075 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001922/0.9327, allocations: 0.8449 MB / 0.84 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.9328, allocations: 6.469 kB / 0.84 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.9328, allocations: 2.75 kB / 0.84 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005979/0.9334, allocations: 83.69 kB / 0.8401 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006486/0.934, allocations: 160.6 kB / 0.8402 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/0.9364, allocations: 1.623 MB / 0.8418 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007567/0.9372, allocations: 87.42 kB / 0.8419 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-05/0.9372, allocations: 35.09 kB / 0.842 GB, free: 7.816 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.0005988/0.9378, allocations: 285.8 kB / 0.8422 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.938, allocations: 108.3 kB / 0.8423 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002301/0.9403, allocations: 1.019 MB / 0.8433 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.9403, allocations: 7.5 kB / 0.8433 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.9403, allocations: 0 / 0.8433 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.9403, allocations: 3.984 kB / 0.8433 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00133/0.9417, allocations: 0.9818 MB / 0.8443 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.9417, allocations: 0 / 0.8443 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005809/0.9423, allocations: 145.6 kB / 0.8444 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004284/0.9427, allocations: 75.25 kB / 0.8445 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.457e-05/0.9427, allocations: 22.83 kB / 0.8445 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002112/0.9448, allocations: 1.669 MB / 0.8462 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.9448, allocations: 0 / 0.8462 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/0.9468, allocations: 0.8908 MB / 0.847 GB, free: 4.035 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004087/0.9472, allocations: 273.5 kB / 0.8473 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.9473, allocations: 21.16 kB / 0.8473 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005214/0.9478, allocations: 53.72 kB / 0.8474 GB, free: 3.75 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.948, allocations: 63.22 kB / 0.8474 GB, free: 3.715 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.701e-05/0.9481, allocations: 30.39 kB / 0.8474 GB, free: 3.707 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007451/0.9488, allocations: 496.4 kB / 0.8479 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.9488, allocations: 3.938 kB / 0.8479 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009816/0.9498, allocations: 346.9 kB / 0.8483 GB, free: 3.023 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.001964/0.9518, allocations: 0.5979 MB / 0.8488 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001784/0.9535, allocations: 0.7739 MB / 0.8496 GB, free: 1.824 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.9535, allocations: 0 / 0.8496 GB, free: 1.824 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009309/0.9545, allocations: 484.2 kB / 0.8501 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.9557, allocations: 305.8 kB / 0.8503 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004446/0.9601, allocations: 2.032 MB / 0.8523 GB, free: 15 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007744/0.9609, allocations: 1.078 MB / 0.8534 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003276/0.9612, allocations: 119.3 kB / 0.8535 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of SimCode: time 8.82e-07/0.9612, allocations: 0 / 0.8535 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of Templates: time 0.0314/0.9927, allocations: 20.22 MB / 0.8732 GB, free: 9.57 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