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.001314/0.001314, allocations: 109.5 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.001261/0.001261, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7918/0.7918, allocations: 135.1 MB / 426.3 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 66.64 kB / 0.5863 GB, free: 21.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1834, allocations: 80.92 MB / 0.6653 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic): time 0.006634/0.19, allocations: 4.118 MB / 0.6693 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.7155/0.9056, allocations: 150.5 MB / 0.8162 GB, free: 8.488 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009077/0.9065, allocations: 18.09 kB / 0.8163 GB, free: 8.484 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005734/0.9071, allocations: 159.8 kB / 0.8164 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001512/0.9087, allocations: 479.3 kB / 0.8169 GB, free: 8.207 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001855/0.9105, allocations: 0.7921 MB / 0.8176 GB, free: 7.953 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001055/0.9116, allocations: 1.166 MB / 0.8188 GB, free: 7.637 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007445/0.9124, allocations: 0.5958 MB / 0.8194 GB, free: 7.457 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004418/0.9128, allocations: 426.8 kB / 0.8198 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004456/0.9133, allocations: 442.9 kB / 0.8202 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.9134, allocations: 99.22 kB / 0.8203 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007971/0.9142, allocations: 477 kB / 0.8207 GB, free: 7.031 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.9144, allocations: 269.5 kB / 0.821 GB, free: 6.938 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003526/0.9148, allocations: 498 kB / 0.8215 GB, free: 6.641 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00143/0.9162, allocations: 1.467 MB / 0.8229 GB, free: 5.586 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.9162, allocations: 0 / 0.8229 GB, free: 5.586 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9162, allocations: 2.406 kB / 0.8229 GB, free: 5.586 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.261e-05/0.9162, allocations: 0 / 0.8229 GB, free: 5.586 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.001992/0.9182, allocations: 1.312 MB / 0.8242 GB, free: 4.535 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.9183, allocations: 14.95 kB / 0.8242 GB, free: 4.535 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008921/0.9192, allocations: 181.9 kB / 0.8244 GB, free: 4.445 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.9203, allocations: 0.7187 MB / 0.8251 GB, free: 3.852 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.223e-05/0.9204, allocations: 58.5 kB / 0.8251 GB, free: 3.828 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.113e-05/0.9204, allocations: 74.97 kB / 0.8252 GB, free: 3.805 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.9218, allocations: 0.8485 MB / 0.826 GB, free: 3.25 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.9218, allocations: 6.719 kB / 0.826 GB, free: 3.246 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.232e-05/0.9219, allocations: 35.33 kB / 0.8261 GB, free: 3.219 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.9219, allocations: 20.03 kB / 0.8261 GB, free: 3.219 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.9235, allocations: 1.055 MB / 0.8271 GB, free: 2.715 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003399/0.9269, allocations: 2.317 MB / 0.8294 GB, free: 0.9219 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.9281, allocations: 0.6938 MB / 0.8301 GB, free: 0.5781 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004518/0.9286, allocations: 278.2 kB / 0.8303 GB, free: 448 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 6.934e-05/0.9286, allocations: 25.11 kB / 0.8303 GB, free: 436 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007151/0.9294, allocations: 420.8 kB / 0.8308 GB, free: 156 kB / 0.5919 GB Notification: Performance of pre-optimization done (n=71): time 2.675e-06/0.9294, allocations: 0 / 0.8308 GB, free: 156 kB / 0.5919 GB Notification: Performance of matching and sorting (n=71): time 0.002825/0.9322, allocations: 1.067 MB / 0.8318 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.9323, allocations: 191.9 kB / 0.832 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006929/0.933, allocations: 0.5839 MB / 0.8325 GB, free: 15 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.12e-05/0.9331, allocations: 40.95 kB / 0.8326 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002759/0.9334, allocations: 376.8 kB / 0.8329 GB, free: 14.62 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.9336, allocations: 232.9 kB / 0.8332 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002175/0.9338, allocations: 149.4 kB / 0.8333 GB, free: 14.34 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.934, allocations: 376.2 kB / 0.8337 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004356/0.9344, allocations: 244.1 kB / 0.8339 GB, free: 13.86 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005255/0.9349, allocations: 325.8 kB / 0.8342 GB, free: 13.67 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009368/0.9359, allocations: 0.5421 MB / 0.8347 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.9359, allocations: 0 / 0.8347 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001664/0.9376, allocations: 0.769 MB / 0.8355 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.9376, allocations: 5.156 kB / 0.8355 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.9376, allocations: 3.938 kB / 0.8355 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005748/0.9382, allocations: 82.2 kB / 0.8356 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000554/0.9387, allocations: 146.2 kB / 0.8357 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002228/0.941, allocations: 1.631 MB / 0.8373 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006021/0.9416, allocations: 76.56 kB / 0.8374 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.31e-05/0.9417, allocations: 34.22 kB / 0.8374 GB, free: 11.23 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 (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.0003904/0.9421, allocations: 249.6 kB / 0.8377 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.9422, allocations: 78.14 kB / 0.8377 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002046/0.9443, allocations: 0.9642 MB / 0.8387 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.9443, allocations: 9.688 kB / 0.8387 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.9443, allocations: 0 / 0.8387 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.9443, allocations: 3.984 kB / 0.8387 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009103/0.9452, allocations: 0.8162 MB / 0.8395 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.9452, allocations: 0 / 0.8395 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000506/0.9457, allocations: 137.4 kB / 0.8396 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004196/0.9462, allocations: 74.88 kB / 0.8397 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-05/0.9462, allocations: 23.36 kB / 0.8397 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001739/0.948, allocations: 1.661 MB / 0.8413 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.948, allocations: 0 / 0.8413 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.9497, allocations: 0.8257 MB / 0.8421 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003435/0.95, allocations: 246.9 kB / 0.8424 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.665e-05/0.9501, allocations: 17.28 kB / 0.8424 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004779/0.9506, allocations: 61.97 kB / 0.8424 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.9507, allocations: 58.33 kB / 0.8425 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.135e-05/0.9508, allocations: 28.05 kB / 0.8425 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005105/0.9513, allocations: 433.7 kB / 0.8429 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9513, allocations: 0 / 0.8429 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008035/0.9521, allocations: 282 kB / 0.8432 GB, free: 7.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 (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.001413/0.9536, allocations: 0.5956 MB / 0.8438 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001477/0.9551, allocations: 0.7486 MB / 0.8445 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.9551, allocations: 4.062 kB / 0.8445 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007908/0.9559, allocations: 478.1 kB / 0.845 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.957, allocations: 290.9 kB / 0.8453 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00356/0.9606, allocations: 1.646 MB / 0.8469 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005182/0.9611, allocations: 0.9954 MB / 0.8478 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.9614, allocations: 107.4 kB / 0.8479 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of SimCode: time 6.22e-07/0.9614, allocations: 0 / 0.8479 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of Templates: time 0.02157/0.983, allocations: 17.13 MB / 0.8647 GB, free: 2.414 MB / 0.6231 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